Youtube Game Keywords logo

Youtube Game Keywords

Community
kennyzir
youtube-game-keywords

YouTube 订阅频道游戏关键词提取工具。自动抓取订阅频道视频,识别游戏关键词, 归类为 Roblox / 独立游戏 / 主机PC 等赛道,生成结构化日报。 触发词:YouTube 游戏关键词日报 / YouTube 订阅源 / 游戏热度 / YouTube game keywords。

Overview

Publisherkennyzir
Repository7deer_skills
Skill nameyoutube-game-keywords
Stars
329
Forks
143
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kennyzir on GitHub. Read the source before you install it.

Installation

Install the Youtube Game Keywords AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kennyzir/7deer_skills/tree/main/youtube-game-keywords
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kennyzir/7deer_skills.git /tmp/7deer_skills
mkdir -p .claude/skills
cp -r /tmp/7deer_skills/youtube-game-keywords .claude/skills/youtube-game-keywords
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Youtube Game Keywords in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Youtube Game Keywords on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Youtube Game Keywords is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

YouTube Game Keywords Skill

从 YouTube 订阅频道抓取游戏相关内容,识别游戏关键词并生成结构化日报。


🚀 快速开始

前置要求

依赖说明
OpenClaw本 skill 运行于 OpenClaw 环境(https://openclaw.ai)
飞书 Bot需要已配置好的飞书 Bot 和 feishu_doc / message 工具权限
Browser 工具 + YouTube 登录态用于抓取订阅页(⚠️ 必须已登录 YouTube,见下方说明)
OpenClaw Browser 配置详见"Browser 配置说明"章节

飞书 Bot 所需权限

权限名称权限标识用途
云文档docx:document创建飞书云文档写入日报
发消息im:message:send_as_bot向用户发送飞书消息
读取消息im:message消息交互(可选)

💡 权限开通路径:飞书开放平台 → 应用 → 权限管理 → 搜索权限名称 → 开通

环境变量

变量说明必需
FEISHU_TARGET_USER飞书通知目标用户的 open_id可选(默认发给当前对话用户)

⏰ 定时任务配置

本 skill 支持设置为每天自动执行。在 OpenClaw 中创建以下 cron job 即可:

创建命令:

openclaw cron add \
  --name "YouTube Game Keywords 日报" \
  --schedule "0 10 * * *" \
  --tz "Asia/Shanghai" \
  --payload-kind agentTurn \
  --payload-message "使用 youtube-game-keywords skill,执行 YouTube 订阅频道游戏关键词日报任务。按照 skill 完整流程执行:1. 先尝试运行官方脚本(超时则降级用 browser 抓 YouTube 订阅页)2. 整理游戏关键词日报 3. 发送飞书消息到飞书用户 4. 创建飞书云文档并写入完整报告 5. 在飞书消息里附上文档链接" \
  --payload-timeout 900 \
  --delivery-mode announce \
  --delivery-channel feishu

完整 Cron Job JSON(手动创建时使用):

json
{
  "name": "YouTube Game Keywords 日报",
  "schedule": { "kind": "cron", "expr": "0 10 * * *", "tz": "Asia/Shanghai" },
  "sessionTarget": "isolated",
  "payload": {
    "kind": "agentTurn",
    "message": "使用 youtube-game-keywords skill,执行 YouTube 订阅频道游戏关键词日报任务。按照 skill 完整流程执行:1. 先尝试运行官方脚本(超时则降级用 browser 抓 YouTube 订阅页)2. 整理游戏关键词日报 3. 发送飞书消息到飞书用户 4. 创建飞书云文档并写入完整报告 5. 在飞书消息里附上文档链接",
    "timeoutSeconds": 900
  },
  "delivery": {
    "mode": "announce",
    "channel": "feishu",
    "to": "user:YOUR_OPEN_ID",
    "accountId": "default",
    "bestEffort": true
  }
}

参数说明:

参数值说明
schedule.expr0 10 * * *每天 10:00 执行,可改为其他时间
delivery.touser:ou_xxxx替换为接收通知的飞书用户 open_id
timeoutSeconds90015 分钟超时,覆盖 browser 抓取耗时
sessionTargetisolated在独立 session 中运行,不影响主对话

🔐 Browser 配置说明(必须先完成)

为什么需要登录态?

YouTube 订阅页 /feed/subscriptions 未登录用户无法访问。不登录只看到"推荐订阅"内容,不是你的真实订阅列表。

OpenClaw 的 browser 和你的本地浏览器共享同一个浏览器 profile,所以:

  1. 你在 Chrome/Safari/Edge 里登录了 YouTube
  2. OpenClaw browser 打开订阅页就自动带着你的登录态

配置步骤

方法一:使用已有的 Chrome profile(推荐)

bash
# 找到你的 Chrome profile 目录
# macOS 默认:
# ~/Library/Application Support/Google/Chrome/

# 启动 OpenClaw browser 使用指定 profile
openclaw browser start --profile ~/Library/Application\ Support/Google/Chrome/Default

# 然后在浏览器里手动登录 YouTube(只需一次)

方法二:启动独立的 Chrome profile 供 OpenClaw 专用

bash
# 1. 创建新的 Chrome profile 目录
mkdir -p ~/openclaw-browser-profile

# 2. 启动 OpenClaw browser 指定该 profile
openclaw browser start --profile ~/openclaw-browser-profile

# 3. 首次使用:Browser 打开 https://www.youtube.com 并登录
# 以后每次运行都自动保持登录态

验证配置是否成功

在 OpenClaw 里执行:

javascript
browser(action=open, url="https://www.youtube.com/feed/subscriptions")
// 等页面加载(3-5秒),然后:
browser(action=snapshot)
// 如果看到"订阅"内容(频道列表)而不是"登录"提示,说明配置成功

⚠️ 常见问题

问题原因解决
页面显示"登录 YouTube"Browser 没有 YouTube 登录态手动在 OpenClaw browser 里登录 YouTube
能打开但视频列表为空订阅列表为空或页面没加载完页面需多次滚动触发懒加载
报错 "not logged in"fetch_subscriptions.sh 检测到未登录先在 browser 登录 YouTube
Cron 任务抓不到数据定时任务 browser session 和手动不同需确保 browser profile 持久化

📁 技能文件说明

youtube-game-keywords/
├── SKILL.md                        # Skill 标准格式(本文件)
├── README.md                       # 使用说明(含 Python 脚本模式)
└── scripts/
    ├── fetch_subscriptions.sh       # OpenClaw Agent 抓取脚本
    └── analyze_keywords.py         # 纯 Python 关键词分析(无需 API key)

📋 执行流程

Step 1:Browser 抓取 YouTube 订阅页

⚠️ 重要:执行此步前必须确认 OpenClaw browser 已登录 YouTube(见上方配置说明)。

javascript
browser(action=open, url="https://www.youtube.com/feed/subscriptions")

等页面加载完成后(建议等待 3-5 秒):

javascript
browser(action=snapshot, refs="aria")

必须多次滚动加载(因为是无限滚动列表):

javascript
browser(action=act, kind="press", key="End", times=5)

解析页面中的视频列表,提取:

  • title:视频标题
  • channel_name:频道名
  • view_text:播放量(如 "123K views")
  • published_text:发布时间(如 "2 days ago")
  • url:视频链接

Step 2:识别游戏关键词

使用 scripts/analyze_keywords.py(纯规则,无需 API key):

bash
python3 scripts/analyze_keywords.py data/videos.json --output data/report.txt

或直接用 Agent 做 LLM 分类。

游戏分类:

分类说明
RobloxRoblox 相关内容
独立游戏Deckbuilder / Roguelike / Horror / Adventure 等
主机/PC 大作3A/主流游戏
直播Twitch/直播相关
其他不属于以上类别

Step 3:整理日报格式

📺 YouTube 订阅频道日报 — YYYY-MM-DD

【今日概要】一句话总结今日最显著的 trend

【Roblox 赛道】
- [游戏名] — [频道] — [播放量] — [一句话描述]

【独立游戏赛道】
- [游戏名] — [频道] — [播放量] — [一句话描述]

【主机/PC 赛道】
- [游戏名] — [频道] — [播放量] — [一句话描述]

【值得关注的独立游戏】(播放量 >50K 的非 Roblox 游戏)
| 游戏 | 频道 | 播放 | 类型 | 亮点 |

【算法流量猎奇发现】(高播放量但非主流内容)
| 游戏 | 频道 | 播放 | 猎奇点 |

Step 4:发送飞书消息

javascript
message(action=send, channel="feishu", target="user:$FEISHU_TARGET_USER", message=日报全文)

Step 5:创建飞书云文档

javascript
feishu_doc(action=create, title="YouTube 订阅频道日报 YYYY-MM-DD", owner_open_id="$FEISHU_TARGET_USER")
feishu_doc(action=write, doc_token=<创建的文档token>, content=完整报告内容)

Step 6:在飞书消息里附上文档链接


🔧 Python 脚本模式(纯命令行,无需 Agent)

bash
# 1. 抓取数据
chmod +x scripts/fetch_subscriptions.sh
./scripts/fetch_subscriptions.sh ./data/videos.json

# 2. 分析关键词
python3 scripts/analyze_keywords.py ./data/videos.json --output ./data/report.txt

# 3. 查看报告
cat ./data/report.txt

⚠️ 独立运行同样需要在运行前确保 openclaw CLI 已登录 YouTube(在 browser 里登录一次即可)。


⚠️ 注意事项

  1. YouTube 登录态是必须项:Browser 未登录则完全无法抓取订阅页,这是 YouTube 的限制,无法绕过
  2. 播放量 >100K 的内容优先呈现
  3. 无游戏内容时:注明"今日订阅频道无游戏相关更新"
  4. open_id 获取:飞书用户 open_id 可在 Bot 收到消息时从事件 payload 中获取
  5. 本 skill 不包含任何 API Key,所有外部依赖通过环境变量或本地脚本接入
  6. Browser profile 必须持久化:定时任务场景下确保 browser profile 不会每次清空,导致重新需要登录

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Youtube Game Keywords AI skill do?

YouTube 订阅频道游戏关键词提取工具。自动抓取订阅频道视频,识别游戏关键词, 归类为 Roblox / 独立游戏 / 主机PC 等赛道,生成结构化日报。 触发词:YouTube 游戏关键词日报 / YouTube 订阅源 / 游戏热度 / YouTube game keywords。

Why use Youtube Game Keywords on TypingMind?

Because you install it once and use it with any model. Youtube Game Keywords is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Youtube Game Keywords in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kennyzir/7deer_skills/tree/main/youtube-game-keywords. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Youtube Game Keywords?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Youtube Game Keywords?

As many as you like. As long as a model supports skills, you can use Youtube Game Keywords with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Youtube Game Keywords AI skill free?

Yes. It is published on GitHub by kennyzir under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇