Github Skill Mine

Mine GitHub repos (stars≥1k, recent commit) + awesome-* lists to extract reusable SKILL patterns.

jajabong Updated

File contents

GitHub Skill Mine — Extract Reusable Patterns

针对学习循环的 GitHub 专项调研。

When to use

  • learning-loop 触发后,GitHub 这一路调研
  • 需要在 GitHub 找 star 高、最近活跃、未 archived 的实现范式
  • 需要扫 awesome-* 列表做二次筛选

流程

1. 搜仓库(GitHub Search API)

gh search repos "<query>" \
    --limit 20 \
    --json name,fullName,stargazersCount,pushedAt,isArchived,description \
    --jq '.[] | select(.isArchived == false)'

筛选:stars ≥ 1000 + pushedAt 在最近 1 年。

2. 抓 awesome-* 列表(GitHub raw)

curl -sL "https://raw.githubusercontent.com/<owner>/awesome-<topic>/main/README.md" \
    | grep -E "^\s*[-*]\s*\[" | head -50

3. 读目标 repo 的关键文件(opencode 派单)

派 opencode 用 --allow-read 读:

  • README.md(5 分钟定位)
  • docs/ 或 examples/(实际用法)
  • .claude/skills/、SKILL.md、agentskills/(看是否有现成 skill 可借鉴)

4. 输出

写到 ~/.hermes/scratch/research/<task_id>/github.md

  • 候选 repo 列表 + stars + 最后提交
  • 每个候选的"能否借鉴"判断
  • 提取出的核心模式(API / 工作流 / 范式)

Output format (给 learning-loop 用)

## 候选 1: <owner>/<repo>
- stars: 1234, last commit: 2026-07-15
- 借鉴价值: yes
- 提取模式: <1-2 句核心>

Anti-patterns

  • 抄大段代码(提取模式,不要 paste)
  • 选 archived repo(即使 star 高)
  • 选无 README 的 repo

jajabong/hermes-skills-index/tree/main/skills/github-skill-mine commit 8ae3140ae2

Frequently asked questions

npx skillmds@latest add jajabong/github-skill-mine