| name | skill-seekers |
| description | 从文档网站、代码库和 GitHub 仓库自动生成 LLM Skills,支持 Claude、OpenCode 等多个 AI 平台 |
| version | 2.7.4 |
Skill Seekers - AI Skill 自动生成工具
概述
Skill Seekers 是一个强大的自动化工具,可以将文档网站、GitHub 仓库、PDF 文件和本地代码库转换为生产就绪的 AI Skills。支持 Claude Code、OpenCode、Cursor、Windsurf 等多个 AI 平台。
核心能力:
- 🌐 文档网站抓取与分析
- 🐙 GitHub 仓库深度解析
- 📄 PDF 文档提取(含 OCR)
- 💻 本地代码库分析(支持多语言 AST)
- 🔄 多源统一打包
- ✨ AI 增强优化
- 🤖 多平台自动适配
前置要求
pip install skill-seekers
uv pip install skill-seekers
pip install skill-seekers[all]
环境变量配置(可选):
export ANTHROPIC_API_KEY=sk-ant-xxx
export GITHUB_TOKEN=ghp_xxx
export GOOGLE_API_KEY=xxx
export OPENAI_API_KEY=sk-xxx
快速开始
方式 1: 分析本地代码库 (推荐用于现有项目)
skill-seekers-codebase --directory /path/to/project --output output/my-skill/
skill-seekers-codebase --directory ./myproject \
--depth full \
--ai-mode local \
--output output/myproject/
skill-seekers-codebase --directory ./myproject \
--skip-patterns \
--skip-test-examples \
--output output/myproject/
方式 2: 抓取文档网站
skill-seekers scrape --config configs/react.json
skill-seekers scrape \
--url https://react.dev/ \
--name react \
--description "React framework for building UIs"
skill-seekers estimate --config configs/react.json
方式 3: 分析 GitHub 仓库
skill-seekers github --repo facebook/react
skill-seekers github --repo django/django \
--include-issues \
--max-issues 100 \
--include-changelog \
--include-releases
export GITHUB_TOKEN=ghp_your_token
skill-seekers github --repo owner/private-repo --profile work
方式 4: 提取 PDF 文档
skill-seekers pdf --pdf docs/manual.pdf --name myskill
skill-seekers pdf --pdf docs/manual.pdf --name myskill \
--extract-tables \
--ocr \
--parallel \
--workers 8
skill-seekers pdf --pdf docs/encrypted.pdf --password mypass --name myskill
核心命令
1. 一键安装工作流
最快速的端到端流程 - 从配置到上传的完全自动化:
skill-seekers install --config react
skill-seekers install --config configs/custom.json
skill-seekers install --config godot --unlimited
skill-seekers install --config react --dry-run
skill-seekers install --config django --no-upload
执行的 5 个阶段:
- ✅ 获取配置(如果提供配置名)
- ✅ 抓取文档(尊重速率限制)
- ✅ AI 增强(必需,质量提升 3/10 → 9/10)
- ✅ 打包 Skill
- ✅ 上传到 Claude(如果设置了 API key)
2. 统一多源抓取
组合文档 + GitHub + PDF 为一个技能,带冲突检测:
skill-seekers unified --config configs/react_unified.json
cat > configs/myframework_unified.json << 'EOF'
{
"name": "myframework",
"description": "从文档和代码生成完整框架知识",
"merge_mode": "rule-based",
"sources": [
{
"type": "documentation",
"base_url": "https://docs.myframework.com/",
"extract_api": true,
"max_pages": 200
},
{
"type": "github",
"repo": "owner/myframework",
"include_code": true,
"code_analysis_depth": "surface"
}
]
}
EOF
skill-seekers unified --config configs/myframework_unified.json
冲突检测功能:
- 🔴 代码中缺失(高优先级): 有文档但未实现
- 🟡 文档中缺失(中优先级): 已实现但未记录
- ⚠️ 签名不匹配: 参数或类型不同
- ℹ️ 描述不匹配: 说明不一致
3. 打包和上传
skill-seekers package output/react/
skill-seekers package output/react/ --upload
skill-seekers upload output/react.zip
skill-seekers package output/react/ --target claude
skill-seekers package output/react/ --target gemini
skill-seekers package output/react/ --target openai
skill-seekers package output/react/ --target markdown
4. 安装到 AI 代理
skill-seekers install-agent output/react/ --agent cursor
skill-seekers install-agent output/react/ --agent claude
skill-seekers install-agent output/react/ --agent all
skill-seekers install-agent output/react/ --agent opencode --force
skill-seekers install-agent output/react/ --agent cursor --dry-run
支持的 AI 代理:
- Claude Code (
~/.claude/skills/)
- OpenCode (
~/.config/opencode/skills/)
- Cursor (
.cursor/skills/)
- Windsurf (
~/.windsurf/skills/)
- VS Code / Copilot (
.github/skills/)
- Amp (
~/.amp/skills/)
- Goose (
~/.config/goose/skills/)
- Letta (
~/.letta/skills/)
- Aide (
~/.aide/skills/)
- Neovate Code (
~/.neovate/skills/)
5. 配置管理
skill-seekers config
skill-seekers config --github
skill-seekers config --show
skill-seekers config --test
skill-seekers config
6. 恢复中断的任务
skill-seekers resume --list
skill-seekers resume github_react_20260117_143022
skill-seekers resume --cleanup
高级功能
1. AI 增强
将基础 Skill (⭐⭐) 转换为专业教程 (⭐⭐⭐⭐⭐):
skill-seekers scrape --config configs/react.json --enhance
skill-seekers scrape --config configs/react.json --enhance-local
skill-seekers enhance output/react/ --ai-mode api
skill-seekers enhance output/react/ --ai-mode local
skill-seekers enhance output/react/ --ai-mode auto
skill-seekers enhance output/react/ --ai-mode none
增强内容包括:
- 🔍 步骤说明 - 自然语言解释
- 🔧 故障排除 - 诊断流程和解决方案
- 📋 前置条件 - 为什么需要 + 设置说明
- 🔗 下一步 - 相关指南、变体、学习路径
- 💡 用例场景 - 实际应用场景
2. 大型文档处理(10K-40K+ 页)
针对 Godot、AWS、Microsoft Docs 等超大文档:
skill-seekers estimate configs/godot.json
python3 -m skill_seekers.cli.split_config configs/godot.json --strategy router
for config in configs/godot-*.json; do
skill-seekers scrape --config $config &
done
wait
python3 -m skill_seekers.cli.generate_router configs/godot-*.json
python3 -m skill_seekers.cli.package_multi output/godot*/
3. 异步模式(2-3 倍速度提升)
skill-seekers scrape --config configs/react.json --async --workers 8
skill-seekers scrape --config configs/mydocs.json --async --workers 4
skill-seekers scrape --config configs/largedocs.json --async --workers 8 --no-rate-limit
性能对比:
- 同步模式(线程): ~18 页/秒, 120 MB 内存
- 异步模式: ~55 页/秒, 40 MB 内存
- 结果: 快 3 倍, 内存减少 66%!
4. 私有配置仓库
团队共享自定义配置(支持私有 Git 仓库):
export GITHUB_TOKEN=ghp_your_token_here
skill-seekers config
fetch_config(source="team", config_name="internal-api")
list_config_sources()
remove_config_source(name="team")
支持的平台:
- GitHub (
GITHUB_TOKEN)
- GitLab (
GITLAB_TOKEN)
- Gitea (
GITEA_TOKEN)
- Bitbucket (
BITBUCKET_TOKEN)
- 任何 Git 服务器(
GIT_TOKEN)
5. 速率限制策略
4 种策略处理 GitHub API 限制:
skill-seekers github --repo owner/repo --rate-limit-strategy prompt
skill-seekers github --repo owner/repo --rate-limit-strategy wait
skill-seekers github --repo owner/repo --rate-limit-strategy switch
skill-seekers github --repo owner/repo --rate-limit-strategy fail --non-interactive
配置文件示例
基础文档配置
{
"name": "react",
"description": "React documentation",
"base_url": "https://react.dev/",
"start_urls": [
"https://react.dev/learn",
"https://react.dev/reference"
],
"url_patterns": [
"https://react.dev/learn/**",
"https://react.dev/reference/**"
],
"categories": {
"api": ["reference", "api"],
"guides": ["learn", "tutorial"],
"examples": ["examples"]
},
"max_pages":
统一配置(文档 + GitHub)
{
"name": "myframework",
"description": "Complete framework knowledge",
"merge_mode": "rule-based",
"sources": [
{
"type": "documentation",
"base_url": "https://docs.myframework.com/",
"extract_api": true,
"max_pages": 200
},
{
"type": "github",
"repo": "owner/myframework",
"include_code": true,
"include_issues": true,
"max_issues": 50
GitHub 配置
{
"name": "react-github",
"repo": "facebook/react",
"include_code": true,
"include_issues": true,
"max_issues": 100,
"include_changelog": true,
"include_releases": true,
"code_analysis_depth": "deep",
"languages": ["javascript", "typescript"]
}
常用工作流
工作流 1: 快速生成文档 Skill
skill-seekers estimate --url https://docs.example.com
skill-seekers scrape \
--url https://docs.example.com \
--name example \
--description "Example documentation"
skill-seekers enhance output/example/ --ai-mode local
skill-seekers package output/example/
skill-seekers install-agent output/example/ --agent opencode
工作流 2: GitHub 仓库深度分析
export GITHUB_TOKEN=ghp_your_token
skill-seekers github --repo owner/repo \
--include-issues \
--include-changelog \
--include-releases \
--code-analysis-depth deep
skill-seekers enhance output/repo/ --ai-mode local
skill-seekers package output/repo/
skill-seekers install-agent output/repo/ --agent all
工作流 3: 统一多源 Skill
cat > configs/unified.json << 'EOF'
{
"name": "myproject",
"merge_mode": "rule-based",
"sources": [
{"type": "documentation", "base_url": "https://docs.myproject.com/"},
{"type": "github", "repo": "owner/myproject"},
{"type": "pdf", "pdf_path": "docs/manual.pdf"}
]
}
EOF
skill-seekers unified --config configs/unified.json
skill-seekers detect-conflicts output/myproject/
skill-seekers enhance output/myproject/ --ai-mode local
skill-seekers package output/myproject/
skill-seekers upload output/myproject.zip
工作流 4: 本地代码库 Skill
skill-seekers-codebase \
--directory /path/to/project \
--depth full \
--ai-mode local \
--output output/myproject/
skill-seekers package output/myproject/ --no-open
skill-seekers install-agent output/myproject/ --agent opencode
skill-seekers install-agent output/myproject/ --agent claude
命令参数速查
通用参数
| 参数 | 说明 | 默认值 |
|---|
--config FILE | 配置文件路径 | - |
--output DIR | 输出目录 | output/<name>/ |
--name NAME | Skill 名称 | 从配置推断 |
--force | 强制覆盖已有文件 | false |
--dry-run | 预览不执行 | false |
抓取参数
| 参数 | 说明 | 默认值 |
|---|
--url URL | 文档 URL | - |
--max-pages N | 最大页数 | 500 |
--async | 启用异步模式 | false |
--workers N | 工作线程数 | 4 |
--skip-scrape | 跳过抓取(使用缓存) | false |
--enhance | API 增强 | false |
--enhance-local | 本地增强 | false |
GitHub 参数
| 参数 | 说明 | 默认值 |
|---|
--repo OWNER/NAME | 仓库名 | - |
--include-issues | 包含 Issues | false |
--max-issues N | 最大 Issues 数 | 50 |
--include-changelog | 包含 CHANGELOG | false |
--include-releases | 包含 Releases | false |
--code-analysis-depth | 代码分析深度 | surface |
--profile NAME | GitHub 配置文件 | default |
代码库分析参数
| 参数 | 说明 | 默认值 |
|---|
--directory DIR | 项目目录 | - |
--depth LEVEL | 分析深度 | deep |
--ai-mode MODE | AI 增强模式 | auto |
--skip-patterns | 跳过模式检测 | false |
--skip-test-examples | 跳过测试示例 | false |
打包参数
| 参数 | 说明 | 默认值 |
|---|
--target PLATFORM | 目标平台 | claude |
--upload | 自动上传 | false |
--no-open | 不打开输出目录 | false |
故障排除
问题 1: GitHub 速率限制
症状: "API rate limit exceeded (60/hour)"
解决方案:
export GITHUB_TOKEN=ghp_your_token
skill-seekers config
skill-seekers github --repo owner/repo --rate-limit-strategy wait
问题 2: 增强失败
症状: "Enhancement failed: API key not found"
解决方案:
skill-seekers enhance output/myskill/ --ai-mode local
export ANTHROPIC_API_KEY=sk-ant-xxx
skill-seekers enhance output/myskill/ --ai-mode api
问题 3: 大型文档抓取超时
症状: 抓取 10K+ 页时超时或崩溃
解决方案:
skill-seekers split-config configs/large.json --strategy router
for config in configs/large-*.json; do
skill-seekers scrape --config $config &
done
wait
skill-seekers generate-router configs/large-*.json
问题 4: 安装到 AI 代理失败
症状: "Agent path not found: ~/.config/opencode/skills/"
解决方案:
mkdir -p ~/.config/opencode/skills/
skill-seekers install-agent output/myskill/ --agent opencode --force
ls -la ~/.config/opencode/skills/myskill/
问题 5: PDF 提取失败
症状: "PDF extraction failed: OCR not available"
解决方案:
pip install pytesseract Pillow
brew install tesseract
sudo apt-get install tesseract-ocr
skill-seekers pdf --pdf docs/scanned.pdf --name myskill --ocr
输出结构
生成的 Skill 目录结构:
output/myskill/
├── SKILL.md # 主文档(增强后的概述)
├── skill.yaml # 元数据配置
├── references/ # 参考文档
│ ├── api/ # API 参考
│ ├── guides/ # 指南
│ ├── examples/ # 示例代码
│ └── tutorials/ # 教程
├── knowledge/ # 知识库
│ ├── patterns.json # 代码模式
│ ├── examples.json # 提取的示例
│ └── quick_reference.md # 快速参考
└── metadata/ # 元数据
├── source_info.json # 源信息
├── stats.json # 统计信息
└── conflicts.json # 冲突报告(如有)
打包后的文件:
myskill.zip # Claude AI
myskill-gemini.tar.gz # Google Gemini
myskill-openai.zip # OpenAI ChatGPT
myskill-markdown.zip # 通用 Markdown
最佳实践
1. 选择合适的分析深度
surface: 快速(1-2 分钟),基础信息
deep: 标准(5-10 分钟),推荐用于大多数项目
full: 完整(20-60 分钟),用于复杂大型项目
c3x: 超深度(20-60 分钟),包含设计模式和架构分析
2. 利用缓存加速
skill-seekers scrape --config configs/react.json
skill-seekers scrape --config configs/react.json --skip-scrape
skill-seekers enhance output/react/ --ai-mode local
3. 组合使用多个源
{
"sources": [
{"type": "documentation", "base_url": "https://docs.example.com/"},
{"type": "github", "repo": "owner/repo"},
{"type": "pdf", "pdf_path": "docs/manual.pdf"},
{"type": "local", "directory": "/path/to/code"}
]
}
4. 使用评估避免浪费时间
skill-seekers estimate --config configs/large.json
if [ pages > 1000 ]; then
skill-seekers split-config configs/large.json --strategy router
fi
5. 批量处理多个项目
for config in configs/*.json; do
echo "Processing $config..."
skill-seekers install --config "$config" --no-upload
done
for dir in output/*/; do
skill-seekers package "$dir"
done
for zip in output/*.zip; do
dir="${zip%.zip}"
skill-seekers install-agent "$dir" --agent all
done
相关资源
更新日志
v2.7.4 (最新)
- ✅ 智能速率限制管理
- ✅ 多 GitHub 账户配置
- ✅ 恢复中断任务
- ✅ CI/CD 非交互模式
- ✅ 自助配置向导
v2.6.0
- ✅ 三流 GitHub 架构(代码/文档/洞察)
- ✅ 统一代码库分析器
- ✅ C3.x 深度分析
- ✅ 增强路由生成
v2.5.0
- ✅ 多 LLM 平台支持(Claude/Gemini/OpenAI/Markdown)
- ✅ 平台特定打包
- ✅ 可选依赖安装
v2.4.0
- ✅ MCP SDK v1.25.0 升级
- ✅ FastMCP 框架
- ✅ 多代理支持(5 个 AI 代理)
- ✅ HTTP + stdio 传输
许可证
MIT License - 详见 LICENSE 文件
快速链接: