github-explore
Use when the user wants to search/discover/summarize/audit GitHub (find repos about X, explore a topic's landscape, what's trending, repo overview, similar…
от MiniMax-AI★ 30 звёзд на GitHub
Установить github-explore в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
GitHub CLI (gh) + Discovery Scripts
Overview
两个层:scripts/ 里 9 个 Python 脚本负责搜索/发现/审计(统一过滤 fork/archived、默认 star 下限、智能去重、relevance 排序、分层摘要+落盘),直接调用 gh 负责管理操作(建 repo、提 PR、改 label、跑 workflow 等)。脚本已做搜索 gotchas 处理,发现类请求优先用脚本。
所有脚本输出格式 --format {table,json,markdown},默认 markdown(分层摘要 + 落盘),json 供管道处理,table 窄终端 ASCII 视图。注意:不会因为 stdout 被管道就自动切 JSON——要 JSON 必须显式 --format json(见 Common Pitfalls #1)。
安全边界(Security boundaries)
- 默认只读:9 个发现类脚本(find_repos / discover / explore / trending / repo_summary / find_similar / code_search / search_issues / org_landscape)只读,不改远端状态。
- 写操作需确认(全
commands-*.md适用,含commands-auth-config.md与commands-search-format.md):管理类gh写命令会改变远端状态、本机凭据或配置。执行前必须向用户明确:目标(哪个 repo / org / 资源 / host)、影响范围(改什么、是否可逆、是否触发下游)、最小改动数据,并得到明确确认后再执行。未经确认绝不执行写操作。具体适用范围与例外见 references/SECURITY-NOTES.md。- 远端写:create / update / delete / close / merge / dispatch / rerun / cancel / set-default / fork / deploy-key …
- 凭据写(
commands-auth-config.md):gh auth login/logout/switch/setup-git/refresh --scopes …——影响本机 git credential helper 与 token scopes,refresh --scopes是权限提升。 - 配置写(
commands-auth-config.md):gh config set …/gh config clear-cache——改~/.config/gh/。 - API mutation(
commands-search-format.md):gh api --method POST|PUT|DELETE|PATCH …;gh api graphql中含mutation的 query——可触达任意 GitHub 资源(含 admin endpoint),影响面比gh issue/gh pr子命令更广。
- 禁止回显 token:认证诊断只用
gh auth status(不回显 token)。禁用gh auth token、gh auth status --show-token、--with-token注入;GH_TOKEN仅用于自动化(CI),不得打印到 transcript。 - 错误脱敏(honest scope):9 个发现脚本内部走
_lib.warn/die()的redact_secrets()路径,自动遮ghp_*/github_pat_*/Bearer */token=*/GH_TOKEN=*/GITHUB_TOKEN=*形态。但 agent 在 Bash 工具里直接跑gh …时,stderr 不经过 Python wrapper,原样进 transcript——分享前手动管道gh <cmd> 2>&1 | python scripts/redact_stderr.py。脱敏是 best-effort,非常规 token 形态仍可能漏出。 GH_HOST/ GitHub Enterprise 风险:GH_HOST会切换所有gh子命令的 API 流量目的地(纯 git 操作如git push不受GH_HOST影响,跟git remote走);默认github.com。切到 GHES on-prem(github.acme.com)必须用GH_ENTERPRISE_TOKEN而非GH_TOKEN;切到 GHEC 租户(*.ghe.com)用GH_TOKEN。--hostname不是全局 flag,只在auth/api/attestation等约 11 个子命令上存在;通用切换姿势是GH_HOST=... gh <cmd>或gh auth switch --hostname X。gh auth status默认枚举所有已认证 host,不是只校验当前。skill 不限制、不校验、不警告 host 值——用户负责确保目的地正确;跨 host 误调用 = 跨凭据泄漏(写错组织的 issue / 错仓库开 PR / 错 token 触发 GHES workflow)。
When to Use
- 「找 X 相关的 repo」「search repos about Y」→
find_repos.py - 「摸清 X 领域全貌」「map out the field」→
discover.py(快)或explore.py(有目的地多维度) - 「最近热门 / trending」→
trending.py - 「这个 repo 怎么样 / overview」→
repo_summary.py - 「跟 X 类似 / alternatives」→
find_similar.py - 「找代码片段 / where is pattern used」→
code_search.py - 「找 issue/PR」→
search_issues.py - 「审计整个 org / 按语言/活跃度/主题分组」→
org_landscape.py - 「建 repo / 提 PR / 改 label / 跑 workflow」→ 直接
gh(命令索引见 references/ 下的 commands-* 系列,按类型查);写操作执行前必须明确目标/影响/最小数据并得到用户确认(见「安全边界」) - 不要用脚本做:管理类写操作(创建/修改/删除)。
When to use which script — the deeper logic
- 单维问题(搜 repo / 看 repo / 找 issue)→ 单发脚本。
find_repos.py是默认起点。 - 多词自由文本:
find_repos默认跑双 scope(in:readme+ 默认 scope)再 union,用「star 数 + 软 relevance 加成」排序——没有这个,高星通用 repo(如 ollama 之于 "observability platform")会挤掉更对题的小项目。--no-semantic关掉回到单搜索。 - 稀疏结果:
find_repos返回 <5 且无 narrowing qualifier 时,stderr 会提示改用explore.py配显式 axes——概念型主题单轴搜覆盖不了。 - 数据驱动拓主题:
discover.py从 seed 结果自动挖 topics 再逐个搜。快、便宜,但质量取决于 seed 是否干净。适合没有清晰维度概念时。 - 有目的地语义探索("map multi-agent collaboration")→
explore.py+ 内联 axes。agent 决定维度,脚本并行执行并输出软验证信号(awesome 交叉、跨轴计数、canonical 召回)。字段级探索用这个。 discover机会主义快;explore刻意广。默认决策:先find_repos,稀疏或多维就升级explore。
Quick start
# 搜索(多词自由文本自动双 scope + relevance)
python scripts/find_repos.py "vector database" --language python --min-stars 500
# 自动拓主题(快)
python scripts/discover.py "agent framework" --depth 6 --per-topic 5
# 有目的地多维度探索(inline axes,agent 定维度)
python scripts/explore.py "multi-agent" \
--axis "framework|multi-agent framework in:readme; collaborative agents in:readme" \
--axis "protocol|A2A; ANP; agent-to-agent"
# 时间窗 trending
python scripts/trending.py --window 7d --language rust
python scripts/trending.py --window 1m --topic llm --min-stars 100
# 单发
python scripts/repo_summary.py langchain-ai/langchain --format markdown
python scripts/find_similar.py vercel/next.js --limit 20
python scripts/code_search.py "def authenticate" --language python
python scripts/code_search.py "useEffect" --org vercel --extension tsx
python scripts/search_issues.py "memory leak" --repo langchain-ai/langchain
python scripts/search_issues.py "is:open is:issue label:bug" --org langchain-ai
# Org 审计
python scripts/org_landscape.py vercel --group-by language
python scripts/org_landscape.py langchain-ai --group-by activity
Common options (多数脚本共享)
- `--format {table,json,
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- .gitignore
- README.md
- README_zh.md
- references/SECURITY-NOTES.md
- references/commands-auth-config.md
- references/commands-cicd.md
- references/commands-misc.md
- references/commands-repo-issue-pr.md
- references/commands-search-format.md
- scripts/__init__.py
- scripts/_lib.py
- scripts/code_search.py
- scripts/discover.py
- scripts/explore.py
- scripts/find_repos.py
- scripts/find_similar.py
- scripts/org_landscape.py
- scripts/redact_stderr.py
- scripts/repo_summary.py
- scripts/run_tests.py
- scripts/schemas/explore.schema.json
- scripts/schemas/repo.schema.json
- scripts/schemas/repo_summary.schema.json
- scripts/search_issues.py
- scripts/trending.py
FAQ
Что делает скилл github-explore?
Use when the user wants to search/discover/summarize/audit GitHub (find repos about X, explore a topic's landscape, what's trending, repo overview, similar projects, code search, issue/PR search, org audit) or run gh CLI operations. Prefer scripts/ for discovery; raw gh commands for management ops.
Как установить скилл github-explore?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл github-explore запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…