将 Google Trends 关键词分类为搜索意图并生成 SEO 页面结构建议。适用于根据搜索量和增长率确定内容优先级、标题层级、内链与 Schema 类型。
npx skills add https://github.com/kennyzir/7deer_skills --skill google-trends-to-pages
这个 skill 提供从 Google Trends 数据到 SEO 页面规划的两个代码模块:规则式关键词分析和 TypeScript 页面结构生成。它输出内容骨架,不会直接生成可部署页面。
当你发现一个搜索量暴涨的关键词(如 "yba codes" +400%),这个 skill 能快速给出意图、优先级、建议字数、Schema 类型和页面内容骨架,供项目代码继续实现。
interface TrendKeyword {
query: string; // "how to get fuga in jujutsu infinite"
searchVolume: number; // 相对搜索量 (0-100)
growthRate: string; // "+90%"
category: string; // "Gaming"
relatedQueries: string[]; // 相关搜索词
}
使用 resources/intent_classifier.py 将关键词分类为:
resources/page_structure_generator.ts 根据意图选择结构生成函数:
Transactional → generateCodesPageStructure
Informational → generateGuidePageStructure
Navigational → generateComparisonPageStructure(聚合页结构)
Commercial → generateComparisonPageStructure
自动生成页面的:
根据页面类型自动注入:
# 输入
Keyword: "yba codes"
Growth: +400%
Intent: Transactional
# AI 自动生成
- /yba/page.tsx (完整的代码页面)
- 包含 Active/Expired 代码分区
- 一键复制按钮
- FAQPage Schema
- 多语言支持 (codigos, коды)
# 输入
Keyword: "how to get fuga in jujutsu infinite"
Growth: +90%
Intent: Informational
# AI 自动生成
- /handbook/how-to-get-fuga/page.tsx
- 5 步骤详细指南
- HowTo Schema
- YouTube 视频嵌入位置
- Reddit 讨论链接
- 相关内部链接 (Domain Expansion, Maximum Scroll)
resources/intent_classifier.py使用确定性关键词规则分类搜索意图,并根据搜索量和增长率计算优先级:
def classify_intent(keyword: str) -> str:
"""
基于关键词特征判断搜索意图
规则:
- 包含 "codes", "free", "redeem" → Transactional
- 包含 "how to", "guide", "tutorial" → Informational
- 包含 "best", "top", "vs" → Commercial
- 包含 "wiki", "list", "all" → Navigational
"""
# 实现逻辑...
resources/page_structure_generator.ts根据分类结果生成代码页、指南页或对比/聚合页的标题、Meta、章节、FAQ、内链和 Schema 骨架。该模块不包含可直接复制的页面模板,也不评估关键词难度、预估流量或竞争对手数量;这些数据必须由外部研究提供。
# 从 Google Trends 导出 CSV
# 使用 intent_classifier.py 批量分类
# 按优先级排序 (搜索量 × 增长率)
# 自动生成前 10 个页面
生成的页面必须包含:
// 1. 在 Python 流程中导入 analyze_keyword 生成分类和优先级
// 2. 在 TypeScript 项目中导入 generatePageStructure 生成内容骨架
// 3. 根据目标项目实现页面,再运行该项目自己的 build/lint
# .github/workflows/trend-pages.yml
name: Generate Trend Pages
on:
schedule:
- cron: '0 0 * * 1' # 每周一运行
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Fetch Google Trends
- name: Classify Intent
- name: Generate Pages
- name: Create PR
准备好开始使用了吗? 从 Google Trends 导出你的关键词列表,让 AI 帮你生成第一批高流量页面!
Take kennyzir/google-trends-to-pages from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.