← 返回 Skills 市场
lizhijun

LovTrip Video to Article

作者 KLeo · GitHub ↗ · v1.1.0
cross-platform ✓ 安全检测通过
279
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install lovtrip-video2article
功能描述
视频转文章 / YouTube Video to Article — 使用 Gemini AI 将视频转为结构化文章。当用户需要将 YouTube 视频转换为文章时使用。
使用说明 (SKILL.md)

视频转文章 / YouTube Video to Article

LovTrip (lovtrip.app) — AI 驱动的旅行规划平台。视频转文章功能可将旅行 Vlog 自动转为图文攻略,发布到 LovTrip 攻略

使用 Google Gemini 2.5 Pro 分析 YouTube 视频内容,自动生成结构化文章(标题 + 作者 + 摘要 + Markdown 正文)。

Setup / 配置

方式 1: MCP Server(推荐)

{
  "mcpServers": {
    "lovtrip": {
      "command": "npx",
      "args": ["-y", "lovtrip@latest", "mcp"],
      "env": {
        "GEMINI_API_KEY": "your-gemini-api-key"
      }
    }
  }
}

方式 2: 独立脚本(零依赖)

无需安装完整 lovtrip,直接运行 scripts/video2article.mjs

GEMINI_API_KEY=your-key node scripts/video2article.mjs "https://www.youtube.com/watch?v=VIDEO_ID"

工具说明

video2article

参数 类型 必需 说明
videoUrl string YouTube 视频 URL
language string 输出语言,默认 "Chinese (Simplified)"
prompt string 自定义提示词(覆盖默认)

支持的语言: Chinese (Simplified), English, Japanese, Korean, Spanish, French, German

输出格式

{
  "title": "文章标题",
  "author": "YouTube 频道名",
  "summary": "2-4 句摘要",
  "body": "## 正文\
\
Markdown 格式的完整文章..."
}

使用示例

MCP 工具调用

video2article({
  videoUrl: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  language: "Chinese (Simplified)"
})

自定义提示词

video2article({
  videoUrl: "https://www.youtube.com/watch?v=...",
  language: "English",
  prompt: "Focus on the technical details and create a tutorial-style article."
})

CLI 调用

lovtrip video2article "https://www.youtube.com/watch?v=..."

默认提示词逻辑

默认以第一人称视角撰写,结构包含:

  1. 引人入胜的标题
  2. 2-4 句概括性摘要
  3. 详细正文(Markdown 格式,含标题、加粗、列表)

author 字段自动提取视频的 YouTube 频道名。

注意事项

  • 需要有效的 GEMINI_API_KEY(Google AI Studio 获取)
  • 使用 Gemini 2.5 Pro 模型
  • 视频需为公开可访问的 YouTube 链接
  • 生成耗时取决于视频长度(通常 10-60 秒)
  • 内容可能被 Gemini 安全过滤器拦截(如包含敏感内容)

在线体验


Powered by LovTrip — AI Travel Planning Platform

安全使用建议
This skill appears coherent and does what it says: it will send the provided YouTube URL (and thus the video for processing) to Google Gemini using your GEMINI_API_KEY to generate an article. Before installing/using it: 1) Only use with public or shareable videos — private or copyrighted content will be sent to Google. 2) Protect your GEMINI_API_KEY (don't paste it into public places); prefer setting it in a secure environment rather than exposing it in shared shell histories or logs. 3) Be aware of cost and content-moderation implications of calling Gemini (long videos may consume more quota). 4) If you need assurance about how the video is delivered (direct URL fetch vs. required download), test in a safe environment. If you want stricter privacy, avoid sending sensitive videos to third-party APIs.
功能分析
Type: OpenClaw Skill Name: lovtrip-video2article Version: 1.1.0 The skill bundle provides a legitimate utility for converting YouTube videos into structured articles using the Google Gemini API. The code in `scripts/video2article.mjs` is transparent, using standard Node.js fetch to interact with the official Google Generative Language endpoint, and the `SKILL.md` instructions are consistent with the stated functionality without any signs of prompt injection or malicious intent.
能力评估
Purpose & Capability
The name/description (YouTube video → article) matches the provided script and SKILL.md. The repo and instructions only require a GEMINI_API_KEY and either an MCP wrapper or the included Node script; these are expected for calling Google Gemini.
Instruction Scope
SKILL.md and the script stay within scope: they ask for a YouTube URL and a GEMINI_API_KEY, then call the Gemini generateContent API. Note: the script places the video URL into a fileData.fileUri field so the Gemini service (Google) will be asked to fetch/process the video — this means the video content (and its URL) is transmitted to Google. That is coherent with the stated purpose but is privacy-relevant and worth the user's attention.
Install Mechanism
No install spec is provided and the skill is instruction-only with a single Node.js script. There is no network download/install of third-party artifacts by the skill itself, which is the lowest-risk install model.
Credentials
Only GEMINI_API_KEY is required and is used as the API key in the generated request URL — this is proportionate to calling the Google Gemini API. Minor caution: embedding API keys in URL query parameters may appear in logs/proxies; avoid exposing the key in shared logs or public command histories.
Persistence & Privilege
The skill does not request persistent/always-on privileges, does not modify other skills or system-wide settings, and is not force-included. Autonomous invocation is allowed by default but not combined with other concerning privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lovtrip-video2article
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lovtrip-video2article 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Add lovtrip.app website links, online experience section
v1.0.0
Initial release: YouTube video to structured article using Gemini AI
元数据
Slug lovtrip-video2article
版本 1.1.0
许可证
累计安装 1
当前安装数 1
历史版本数 2
常见问题

LovTrip Video to Article 是什么?

视频转文章 / YouTube Video to Article — 使用 Gemini AI 将视频转为结构化文章。当用户需要将 YouTube 视频转换为文章时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 279 次。

如何安装 LovTrip Video to Article?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lovtrip-video2article」即可一键安装,无需额外配置。

LovTrip Video to Article 是免费的吗?

是的,LovTrip Video to Article 完全免费(开源免费),可自由下载、安装和使用。

LovTrip Video to Article 支持哪些平台?

LovTrip Video to Article 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 LovTrip Video to Article?

由 KLeo(@lizhijun)开发并维护,当前版本 v1.1.0。

💬 留言讨论