en un clic
github-doc-maintainer
// 全自动检索 GitHub 热门仓库,分析并维护项目文档,自动提交 PR。用于发现文档问题(死链、typo、过时内容等)并自动修复提交。当用户需要批量维护开源项目文档、自动提 PR 修复文档问题时触发此技能。
// 全自动检索 GitHub 热门仓库,分析并维护项目文档,自动提交 PR。用于发现文档问题(死链、typo、过时内容等)并自动修复提交。当用户需要批量维护开源项目文档、自动提 PR 修复文档问题时触发此技能。
Compress text semantically with iterative validation, anchor checksums, and verified information preservation.
东方财富金融数据查询工具。支持行情数据(股价、资金流向、估值)、财务数据(财报、股东结构、高管信息)、关系与经营数据。通过自然语言查询,如"东方财富最新价"、"贵州茅台市盈率"。当用户需要查询股票、基金、指数、板块等金融数据时使用此skill。需要先配置apikey才能使用。
东方财富资讯搜索工具。基于东方财富妙想搜索能力,用于获取金融相关的新闻、公告、研报、政策、交易规则、事件分析、影响解读等时效性信息。支持个股资讯、板块新闻、宏观分析等。当用户需要搜索金融资讯、了解市场动态、查看研报解读时使用此skill。需要先配置apikey才能使用。
东方财富智能选股工具。支持基于自然语言查询筛选股票,包括行情指标、财务指标等条件;可查询指定行业/板块内的股票;支持A股、港股、美股。当用户需要选股、筛选股票、按条件查找股票时使用此skill。需要先配置apikey才能使用。
Compress files to reduce storage and transfer size. Use this skill when users ask to shrink PDFs or images, optimize upload/share size, or balance quality and size. Supports PDF compression and image compression with Python-first workflows plus Node.js fallback when Python dependencies are unavailable.
Use Model Context Protocol servers to access external tools and data sources. Enable AI agents to discover and execute tools from configured MCP servers (legal databases, APIs, database connectors, weather services, etc.).
| name | github-doc-maintainer |
| description | 全自动检索 GitHub 热门仓库,分析并维护项目文档,自动提交 PR。用于发现文档问题(死链、typo、过时内容等)并自动修复提交。当用户需要批量维护开源项目文档、自动提 PR 修复文档问题时触发此技能。 |
全自动检索 GitHub 热门仓库,发现并修复文档问题,自动提交 PR。
1. 检索 → 2. 分析 → 3. 修复 → 4. 提交 PR
使用 scripts/fetch_repos.py 检索仓库:
# 按 star 数排序(默认)
python3 scripts/fetch_repos.py --language go --min-stars 1000 --limit 50
# 按最近趋势
python3 scripts/fetch_repos.py --trending --language python --since weekly
# 按 topic 搜索
python3 scripts/fetch_repos.py --topic documentation --min-stars 100
输出:/tmp/gh_repos_YYYYMMDD_HHMMSS.json
使用 scripts/analyze_docs.py 分析仓库文档健康度:
# 分析已检索的仓库列表
python3 scripts/analyze_docs.py --input /tmp/gh_repos_*.json --workers 5
# 只检查 README
python3 scripts/analyze_docs.py --input repos.json --readme-only
检测的问题类型:
输出:/tmp/doc_issues_YYYYMMDD_HHMMSS.json
使用 scripts/generate_fixes.py:
python3 scripts/generate_fixes.py --input /tmp/doc_issues_*.json --output ./fixes/
生成结构:
./fixes/
├── owner_repo/
│ ├── README.md.fixed # 修复后的文档
│ ├── fixes.json # 修复详情
│ └── pr_description.md # PR 描述模板
使用 scripts/select_fixes.py 交互式选择要提交的修复:
# 交互式选择
python3 scripts/select_fixes.py --input ./fixes/
# 自动选择全部
python3 scripts/select_fixes.py --input ./fixes/ --auto-select all
# 自动选择指定项
python3 scripts/select_fixes.py --input ./fixes/ --auto-select "1,3,5"
选择方式:
all - 选择全部none - 取消全部1,3,5 - 选择第 1、3、5 项1-5 - 选择第 1 到 5 项-2 - 排除第 2 项(先选全部再排除)使用 scripts/submit_prs.py:
# 需要配置 GH_TOKEN 环境变量
export GH_TOKEN="ghp_xxxxxxxx"
# 批量提交(确认模式)
python3 scripts/submit_prs.py --input ./fixes/ --confirm
# 全自动模式(无需确认)
python3 scripts/submit_prs.py --input ./fixes/ --auto
PR 流程:
doc-fix-YYYYMMDD)一键执行全流程:
# 全自动模式(无需确认,提交所有)
python3 scripts/auto_maintain.py \
--language go \
--min-stars 1000 \
--limit 20 \
--auto
# 交互式选择模式(推荐)
python3 scripts/auto_maintain.py \
--language go \
--min-stars 1000 \
--limit 20 \
--select
# 干跑测试(不实际提交)
python3 scripts/auto_maintain.py \
--language go \
--min-stars 1000 \
--limit 20 \
--dry-run
需要 Personal Access Token(classic):
public_repo - 访问公共仓库repo - 如果需要访问私有仓库export GH_TOKEN="ghp_xxxxxxxx"
GitHub API 限制:
脚本会自动处理速率限制和重试。
编辑 references/check_rules.json 添加自定义检查规则:
--dry-run 检查.github/CONTRIBUTING.md 中的特殊要求cat OPTIMIZATION.md
pip install requests urllib3 beautifulsoup4 pyspellchecker
或运行:
pip install -r scripts/requirements.txt