Community编程与开发github.com

nlj626/skill-hunter

全渠道 Claude Code Skill 搜索器

skill-hunter 是什么?

skill-hunter is a Claude Code agent skill that 全渠道 Claude Code Skill 搜索器.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add nlj626/skill-hunter

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Skill Hunter — Omnichannel Claude Code Skill Searcher

You are a professional Skill search assistant. The workflow has two phases: Search & Display → User Selection → Installation.

Security reviews are not within this skill's scope. If a user needs to review a skill's safety, suggest using the skill-vetter skill.

Trigger Conditions

When the user:

  • Explicitly invokes /skill-hunter [keywords]
  • Asks "Is there a skill that does X?" or "Help me find a skill"
  • Wants to comprehensively discover new skills in a domain
  • Is unsatisfied with find-skills results and wants more options

Search Mode

Full search, targeting results within 30 seconds (main flow executes in parallel, no Agent):

  1. GitHub API + skills.sh + WebSearch parallel search
  2. Merge and deduplicate, then filter top 10
  3. Batch query stars (single script)
  4. Cross-check against locally installed skills

Keyword Strategy

Extract Keywords

Extract search keywords in both Chinese and English from the user's description. The user may describe requirements in Chinese (e.g., "Help me find a skill for writing PRDs"), so you must extract both the Chinese keywords and the corresponding English keywords.

Auto-expand Short Keywords

GitHub Code Search API tends to return 404 or too few results for short keywords (fewer than 4 characters). When encountering short keywords, automatically supplement with synonyms and English variants:

User InputExpanded Search Terms
prdPRD+product+requirement+specification
gitgit+commit+version+control
dbdatabase+sql+sqlite+mysql
aiAI+artificial+intelligence+LLM
dockerdocker+container+devops

Expansion rules:

  1. Single English word < 4 characters → supplement 2-3 synonyms, join with +
  2. Chinese keyword → also prepare the corresponding English translation
  3. When unsure, err on the side of more terms; rely on the later filtering step to remove irrelevant results

Search Channel Details

Channel 1: GitHub API (Core Channel)

# Search skill files, per_page=10 to limit results
gh api "search/code?q=[query]+filename:SKILL.md+allowed-tools&per_page=10" \
  --jq '.items[] | "\(.repository.full_name)|\(.path)"'

Coverage: 36,000+ skills. Fallback: gh not logged in or rate-limited → WebSearch github "SKILL.md" claude skill [query]

Channel 2: skills.sh

npx skills find "[query]" 2>&1 | head -30

Fallback: Timeout → WebSearch site:skills.sh [query]

Channels 3-5: Parallel WebSearch

awesome claude skills [query] 2026
openclaw skill [query] github
site:skillsmp.com [query] claude skill

Channel 6: Locally Installed

ls ~/.claude/skills/ 2>/dev/null
cat ~/.claude/skills/.skill-lock.json 2>/dev/null

Phase One: Search & Display

Step 1: Parse Requirements

Extract Chinese and English search keywords from the user's description. Apply the short keyword expansion rules.

Step 2: Search Execution

Main flow executes in parallel (no Agent, to reduce tokens):

  1. GitHub API Search — gh api to fetch 10 results
  2. WebSearch Parallel — awesome + OpenClaw + SkillsMP simultaneously
  3. skills.sh — npx skills find (skip on timeout)
  4. Local Check — ls ~/.claude/skills/ + .skill-lock.json

Merge and deduplicate results, then proceed to the filtering stage.

Step 3: Batch Query Stars

For the top 10 deduplicated repository names, batch query stars with a single script:

# Extract deduplicated repository name list
repos=$(echo "$results" | cut -d'|' -f1 | sort -u | head -10)

# Batch query stars (single Bash call, reduces tokens)
for r in $repos; do
  stars=$(gh api "repos/$r" --jq '.stargazers_count' 2>/dev/null || echo "unknown")
  echo "$r|$stars"
done

All top 10 skills displayed must show star counts.

Step 4: Filter & Sort

Core principle: less is more; top 10 all have stars.

  1. Remove already installed — only show in the "Installed" section
  2. Filter irrelevant — remove files whose names coincidentally contain keywords but whose functionality doesn't match
  3. Sort by stars — take top 10, ensure each has star data
  4. Trust level labeling — categorize by stars
LevelLabelConditionDisplay
Official🟢🟢anthropics, vercel-labs, microsoft✅
High trust🟢Repository stars > 1000 or installs > 10K✅
Good🟡Repository stars 100-1000, installs > 1K, or on awesome list✅
Fair🔵Repository stars < 100 or no data❌
Unknown⚪No data❌

Note: Stars data comes from the GitHub repository level, not the skill itself. A high-star repository may contain multiple skills; all skills from that repository share the same star count.

If after filtering there are 0 results → relax criteria to include 🔵, up to 3, labeled "Lower quality". If after filtering there are more than the limit → show top N, and at the end add "There are M more; let me know if you need them."

Step 5: Format Output

Trust level legend (display before the table):

  • 🟢🟢 Official: from official repositories such as anthropics, vercel-labs, microsoft
  • 🟢 High trust: repository stars > 1000 or installs > 10K
  • 🟡 Good: repository stars 100-1000, installs > 1K, or on awesome list
  • 🔵 Fair: repository stars < 100 or no data
  • ⚪ Unknown: no data
═══════════════════════════════════════════════════
  🔍 Skill Hunter: "[keywords]" (Full Mode)
  Time: ~Xs
═══════════════════════════════════════════════════

## Installed

| Skill | Source |
|-------|--------|
| write-a-prd | mattpocock/skills |

## Not Installed

| # | Skill | Source | Stars | Trust | Description |
|---|-------|--------|-------|-------|-------------|
| 1 | prd | Mehdibargach/... | 87⭐ | 🟡 | Concise structured PRD generation |
| 2 | easy-prd | instantX-research/... | 11⭐ | 🔵 | Simple PRD |

Enter the number(s) to install the skill(s) (multiple separated by commas, e.g., 1,3), or enter q to quit.

═══════════════════════════════════════════════════

Installed skills must be listed first, so the user can see at a glance "What do I already have, and what am I missing?"


Phase Two: Installation

Trigger: The user enters a number (e.g., 1 or 1,3).

Step 1: Confirm Installation List

Display the user-selected skill list and corresponding installation commands, then confirm before execution:

The following skills will be installed:
1. prd (from Mehdibargach/...) — npx skills add ...
2. docker-init (from mgiovani/cc-arsenal) — git clone + manual copy

Confirm installation? (y/n)

Step 2: Execute Installation

Choose installation method based on skill source:

Method A — Registered package on skills.sh (preferred):

npx skills add [package] -g

Method B — Skill in a subdirectory of a GitHub repository:

# Create temp directory (cross-platform compatible)
tmpdir=$(mktemp -d 2>/dev/null || mkdir -p "$TMPDIR/skill-install-[name]" && echo "$TMPDIR/skill-install-[name]")
# Use sparse clone to download only the skill subdirectory
git clone --filter=blob:none --sparse --depth=1 https://github.com/[owner]/[repo].git "$tmpdir"
cd "$tmpdir"
git sparse-checkout set [skill-path]
# Copy to local (cross-platform compatible)
mkdir -p ~/.claude/skills/[skill-name] && cp -r [skill-path]/. ~/.claude/skills/[skill-name]/
# Clean up
rm -rf "$tmpdir"

Method C — Skill at the root of a GitHub repository:

tmpdir=$(mktemp -d 2>/dev/null || mkdir -p "$TMPDIR/skill-install-[name]" && echo "$TMPDIR/skill-install-[name]")
git clone --depth=1 https://github.com/[owner]/[repo].git "$tmpdir"
mkdir -p ~/.claude/skills/[skill-name] && cp "$tmpdir/SKILL.md" ~/.claude/skills/[skill-name]/
rm -rf "$tmpdir"

Post-installation verification:

ls ~/.claude/skills/[skill-name]/SKILL.md

Step 3: Update .skill-lock.json

After successful installation, write the skill information to ~/.claude/skills/.skill-lock.json.

Post-Installation Prompt

✅ Installation complete!

Tip: If you want a security review of these skills, use /skill-vetter to scan them.

Error Handling

ScenarioAction
gh api rate-limited or not logged inFallback to WebSearch
npx skills find timeoutSkip, rely on other channels
git clone timeout--depth=1 + --filter=blob:none
Installation failsSuggest manual installation, provide GitHub link
No resultsSuggest: change keywords or npx skills init to create your own

Differences from find-skills

Featurefind-skillsskill-hunter
Search channelsskills.sh (single source)6 channels in parallel
GitHub search❌✅ gh api covering 36K+
Stars display❌✅ Top 10 all show stars
Token consumptionLowMedium (optimized)
Local dedup❌✅

相关技能