From second-claude-code
Discovers new skills from local directory, GitHub repos, and npm packages when current skills and built-ins cannot handle tasks. Enforces safety checks, candidate inspection, and scoring before recommendations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/second-claude-code:discoverThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Check existing tools before installing new ones.**
Check existing tools before installing new ones.
Find existing skills first, then search external marketplaces only when needed and safe. Discovery is registry-first: prefer the official/local/verified registry path before broader community search.
references/discover-scoring.md for the full workflow.references/discover-scoring.md).| Priority | Source | Condition | Trust Tier |
|---|---|---|---|
| 1 | Local skills/ directory | Always | Tier 1 (highest) |
| 2 | GitHub repos with SKILL.md | When gh is available | Tier 2 |
| 3 | npm packages with claude-code keyword | When npm is available | Tier 3 |
| 4 | General web search | Always available | Tier 4 (lowest) |
Trust tier scores: Tier 1 = 5, Tier 2 = 4, Tier 3 = 3, Tier 4 = 2. Bumps apply for verified orgs or scoped packages.
Each criterion is scored 1-5. The weighted sum produces a final score (1.0-5.0).
| Criterion | Weight | Scoring Guide |
|---|---|---|
| Relevance | 30% | 5 = exact match, 3 = partial overlap, 1 = tangential |
| Popularity | 20% | 5 = 1000+ stars, 3 = 100-999, 1 = <50 |
| Recency | 20% | 5 = updated within 30 days, 3 = within 6 months, 1 = >1 year stale |
| Dependencies | 15% | 5 = zero or minimal, 3 = moderate (5-15), 1 = heavy or native |
| Source trust | 15% | See trust tier mapping above |
| Score Range | Action |
|---|---|
4.0+ | Strong recommendation -- install with confidence |
3.0-3.9 | Viable with caveats -- list limitations |
<3.0 | Do NOT recommend. Suggest building a custom pipeline instead. |
references/discover-scoring.md).package.json for preinstall, install, or postinstall scripts. Flag packages with lifecycle scripts and apply a -1 score penalty. Packages with obfuscated or network-calling lifecycle scripts must be rejected entirely.Return a ranked list AND save results to ${CLAUDE_PLUGIN_DATA}/discovers/{query-slug}.json:
{
"query": "...",
"searched_at": "ISO-8601",
"built_in_check": { "capable": false, "reason": "Read tool handles PDFs up to 20 pages but cannot extract tables" },
"candidates": [{ "rank": 1, "name": "...", "source": "...", "score": 3.8, "install_cmd": "...", "inspection_notes": "..." }],
"recommendation": "install|build-custom|use-builtin"
}
searcher: { model: haiku, tools: [Bash, WebSearch], constraint: "return only real results; query sources in priority order" }
inspector: { model: sonnet, tools: [Bash, Read], constraint: "fetch and read README/SKILL.md for top 3; verify claims" }
evaluator: { model: sonnet, tools: [Read], constraint: "score consistently; show full breakdown with rationale" }
npx claudepluginhub unclejobs-ai/second-claude-code --plugin second-claude-codeSearches local, marketplace, GitHub, and web skill sources to avoid duplicating existing skills. Indexed results are ranked and presented with fork/extend options.
Searches 9 skill registries including SkillsMP, GitHub, and Anthropic Skills for agent skills. Scores by quality/security, paginates results up to 5, and installs locally/globally. Use on 'fetch/install/search skill' or 'MISSING EXTERNAL SKILL'.
Discovers, recommends, and installs skills from verified-skill.com registry. Guides users by tech/domain/project, lists/manages installed skills with npx vskill.