/kargnas-skills:skill-finderfrom kargnas-skills
Discovers and ranks SKILL.md packages from the npx skills marketplace and GitHub, evaluating by content depth and polish rather than stars or install counts.
Ships in kargnas-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ONE SENTENCE: Discover installable SKILL.md packages for a task and rank by real human iteration (semantic polish-days) + content depth — not stars or install counts.
This skill owns the skill-evaluation workflow. The raw GitHub search that feeds it is owned by the oss-finder skill (backends, PAT pool, polish-day scripts), which must be installed next to this skill: <skills-dir>/oss-finder/ where <skills-dir> is the directory containing this skill. skill-finder builds the query, delegates the sweep, then applies the quality gates below.
Fire both at the start of every discovery request, concurrently (async), then union the results into one candidate pool. This is NOT a fallback chain.
| Surface | Tool | Role |
|---|---|---|
| MARKETPLACE | npx skills find <query> (Path A) | skills.sh install-count signal + install recipe |
| GITHUB | the oss-finder skill → <skills-dir>/oss-finder/scripts/finder.py (Path B) | GitHub-wide SKILL.md sweep, polish-day ranked, across REST + Blackbird + grep.app + PAT pool |
Precondition not met — ASK the user, never silent-skip. oss-finder's Step 0 (python3 <skills-dir>/oss-finder/scripts/gh_pool.py --check) runs before the GitHub surface launches. If it reports SETUP NEEDED (PAT pool missing or gh not logged in), relay the exact gap to the user and collect the setup before re-launching that surface — do not run Path B without it. If npx/network fails, report the actual error.
VERIFY [S-PAR]: before printing any candidate table, both surfaces launched (or paused for user input on an unmet precondition) and each surface's raw candidate count is reported. A pool from a single surface undercounts the long tail.
A locally-installed skill that already looks like a fit MUST NOT narrow, defer, or cancel the sweep. Local skills (whatever registries your agent reads, the session's pre-loaded list) are frozen snapshots, NOT live search results. Run both surfaces in full even when an on-disk skill seems to cover the topic — "there is already a similar one installed" is never a reason to downgrade the search.
| Rationalization | Reality |
|---|---|
| "Local already has it, done." | Local is a frozen copy; a newer, more-polished upstream may exist. Search. |
| "Running the full sweep is overkill here." | The sweep IS the job — skipping it defeats skill-finder. |
| "I'll just recommend the local one and stop." | Recommending without searching is exactly the laziness this gate blocks. |
npx skills)npx skills find <query>
Returns lines like vercel-labs/agent-skills@vercel-react-best-practices with a https://skills.sh/... URL.
Install-target warning: npx skills add ... -g can fan out through every agent-home convention at once. Stage the upstream package in a temporary HOME, then copy exactly ONE selected skill dir into the user-approved target. See references/install.md for the staging recipe, the "install under a different name" step, and the collision check (test ! -e "{target}").
VERIFY: the chosen target has SKILL.md, its name: frontmatter matches the directory name, and no command created a second install location or a registry-to-registry symlink.
If the first query returns ≤3 candidates OR none has a description matching the actual workflow (vs. matching the term by accident — e.g. braindump returning a file-dump CLI), the query was too generic. Re-run with 2-3 synonym variants, the user-language verb (reorder, consolidate) instead of the noun-form, and a non-English variant when the workflow is culturally loaded. Stop variant-bombing after 4 marketplace queries — if nothing surfaces, Path A is genuinely empty for this niche; rely on the GitHub surface.
npx skills find orders by install count — a popularity proxy, NOT a quality proxy. Viral / SEO-friendly / generic-named skills bubble up; production-grade skills with descriptive-but-unsearchable names stay buried. When the top results have wildly different install counts, MUST fetch all top-5 skills.sh pages and judge by content depth (see [S4b]), not install count.
Skills.sh pages can be stale or hide the real repo path. Do NOT assume skills.sh/<owner>/<repo>/<skill> means the file lives at <skill>/SKILL.md in the repo root.
gh api repos/{owner}/{repo}/git/trees/HEAD?recursive=1 --jq '.tree[].path' and search for the skill slug / domain tokens.stale/404 and demote even if installs are high.npx skills find returns skills.sh results regardless of repo visibility. High-install skills can be private repos that fail on npx skills add with an auth error. Verify before recommending:
gh api repos/<owner>/<repo> --jq '.private' 2>/dev/null # true = private (will fail install); false = public
If the top candidate is private, demote it and note ⛔ private repo.
When the user wants comparison ("most novel / best for X"): multi-query sweep (3-5 related terms, parallel) → fetch each candidate's https://skills.sh/<owner>/<repo>/<skill> page → compare on differentiation, not popularity → recommend "borrow ideas, don't install" when overlap is high.
| Variant rule | Required? |
|---|---|
| Original English term | MUST |
Root/stem form if the original is derived (refactor if user said refactoring) | MUST |
| 中文 equivalent | MUST when the topic has cross-lingual presence |
| 한국어 equivalent | SHOULD |
| Synonyms / alternative names | SHOULD (2-4 extra) |
VERIFY: ≥3 variants; ≥1 non-English for any plausibly cross-lingual topic. Morphology matters — include BOTH root and derived forms (refactor/refactoring, deploy/deployment). Hand-tuned author-style names (humanizer-ja, patina) beat translation-perfect ones (自然な日本語生成スキル).
OSS_ROOT="<skills-dir>/oss-finder" # sibling of this skill's directory
python3 "$OSS_ROOT/scripts/gh_pool.py" --check # oss-finder Step 0 — stop and ask on SETUP NEEDED
python3 "$OSS_ROOT/scripts/finder.py" \
--query "{PRIMARY_TERM}" --variants {VARIANT_1} {VARIANT_2} {VARIANT_3} \
--top 15 --max-candidates 30 --per-query 12 --workers 6
The sweep already fans out across the REST API, the Blackbird web index, grep.app, and the PAT pool (oss-finder [S-PAR]/[S2b]). Do NOT re-implement backends here — if a backend precondition is unmet, oss-finder reports it; relay to the user.
VERIFY: finder.py prints [4/4] ranking... and a markdown table; cache at ~/.cache/oss-finder/{slug}.json. If < 5 SKILL.md candidates for a plausibly-popular topic, the variant list is too narrow → return to [S1], add variants, re-run. Do NOT rank an under-enumerated pool.
The sweep's content match is polluted (e.g. "resume" also matches resume/continue execution). Filter on the skill FOLDER, not the body:
grep -iE '/[A-Za-z0-9-]*({TOPIC_TOKEN_1}|{TOPIC_TOKEN_2})[A-Za-z0-9-]*/SKILL\.md$' /tmp/pool.txt | sort -u
Workflow/agent-behavior topics (proactive-agent, task-discovery, action-item, standup-to-tasks) predictably surface viral mega-repos that matched a generic token ("agent"/"task") by accident. Recognize the signature, treat Path A (marketplace) as primary, and judge by [S4b] depth. Full signature + build-vs-borrow rule: references/path-b-high-star-offtopic-noise.md.
Polish-days are a discovery heuristic, not a recommendation. Before reporting "longest polish" or using polish-days to pick a winner, inspect actual SKILL.md diffs for the top 3 candidates and compute semantic polish-days.
MUST fetch per-day diffs for each top-3 candidate:
gh api "repos/{OWNER}/{REPO}/commits?path={SKILL_PATH}&per_page=100" \
--jq '.[] | {sha:.sha, date:(.commit.author.date|.[0:10]), msg:.commit.message}'
gh api "repos/{OWNER}/{REPO}/commits/{SHA}" \
--jq '.files[] | select(.filename=="{SKILL_PATH}") | .patch' # per SHA
Classify each UTC day:
| Diff content on that day | Class |
|---|---|
| Adds/changes task behavior, workflow, domain rules, examples, VERIFY steps, API usage, or concrete heuristics | ✅ semantic |
| Same UTC day has both semantic and cosmetic commits | ✅ semantic (mention mixed-day churn) |
Frontmatter reshape only (category, tags, allowed-tools) | ❌ cosmetic |
| Repo-wide migration / mass formatting churn | ❌ cosmetic |
| Hero image, website, artifact plumbing | ❌ cosmetic |
Body moved into references/ without better agent instructions | ❌ cosmetic |
semantic_days = count(distinct UTC days where class=✅). MUST report both numbers when semantic_days < raw_days * 0.7.
IF BLOCKED (rate-limited or >200 commits): sample the oldest 3 + median 3 + newest 3 commits, classify those 9, report semantic polish-days (sampled 9/N). Do NOT skip classification.
VERIFY: each top-3 candidate printed a raw=NN / semantic=MM pair (or a sampled pair). A row with only one polish number violates [S-DIFF].
finder.py tags each row: 🏆 battle-tested (16+ semantic days), ✨ well-polished (6-15), 🔧 iterated (2-5), 💨 drive-by (1). VERIFY: the top row is ≥🔧 iterated, OR the user is told no battle-tested skill exists for this topic.
Install counts AND polish-days measure MAINTENANCE, not CURRENCY. In fast-moving spaces (AI video, agent frameworks, image-gen tooling, codegen stacks) the highest-install, most-polished, official incumbent is often last season's winner, already displaced by a successor that is sitting at #2 in your own table with steep star growth and daily commits. Before crowning #1 in any tooling category younger than ~3 years:
web_search("{incumbent} vs {newer candidate} {current-year}") sweep and check the DATES of comparison/tutorial content. Where recent (last 4-8 weeks) content converges is the current generation; if all the incumbent's tutorials are from early in the year and recent ones cover the successor, the trend moved.VERIFY: for any AI-tooling topic, the report names the release dates compared and the comparison-content check that was run.
[S4a] Topic match — search relevance ≠ content relevance. Fetch the SKILL.md head:
gh api "repos/{OWNER}/{REPO}/contents/{PATH}" --jq '.content' | base64 -d | head -60
Tag ✅ on-topic / ❌ off-topic-demote / ❌ stub-demote.
[S4b] Content depth — frontmatter alone lies. Fetch one representative reference/pattern file and compare structure.
Tag 🏆 production-grade / ⚠️ check use-case fit / 🪀 toy-demote. For humanizer / writing-style skills, add a one-paragraph prompt-quality judgment (trigger conditions, exclusion conditions, per-language pattern packs), not just polish-days.
| Situation | Run review? |
|---|---|
| Top-1 semantic polish ≥16 AND user just wants the winner | ❌ Skip |
| Top-3 within 2 polish-days of each other | ✅ Lightweight |
| User says "리뷰/후기/평가/is it actually good/real users/should I install" | ✅ Lightweight |
| User asks for full social signal / deep research | ✅ Deep (last30days) |
Lightweight (web search, ~30s per repo) — three parallel searches; the third matters because Reddit users use the bare skill name (often /skillname):
web_search("{owner}/{repo} site:reddit.com")
web_search("{repo-name} OR /{repo-name} site:reddit.com")
web_search("{repo-name} skill review OR opinion OR experience")
False-positive guard: only count a hit when the subreddit is dev/agent-focused (r/ClaudeAI, r/ClaudeCode, r/codex, r/AI_Agents, r/LocalLLaMA, …), OR the thread mentions claude/codex/cursor/skill/agent/MCP, OR the owner handle appears. Tag ⭐ praised / ⚠️ complaints / 🔇 silent / mixed. Anchor test: run the pattern against mvanhorn/last30days-skill first (heavily discussed) — 0 hits there means the pattern is broken.
Print the ranked table + a one-paragraph rationale for #1, mentioning in order: (1) semantic polish-day count AND raw count; (2) first/last edit dates; (3) cosmetic-day ratio if semantic < raw*0.7; (4) why it ranks above the highest-star alternative; (5) [S4a] topic tag + [S4b] depth tag; (6) if [S5] ran, one-line social summary.
MUST NOT present polish-days as a single number when [S-DIFF] produced two — show the semantic value first. VERIFY: the deliverable contains the literal substring semantic polish-days or semantic= for #1 and for any top-3 row where semantic_days < raw_days * 0.7.
Community skills MUST NOT be installed with blind global fan-out. Before installing, ask the user to choose exactly one destination skills directory and install only there; never create registry-to-registry symlinks or copies. When several skills should be bundled, use the standard lifecycle: skill-manager first (umbrella/merge structure), then skill-prompter (harden wording). MUST NOT build a bundle that only works by installing every source skill and adding mutual references. See references/install.md for the staging recipe, collision check, rename-on-install, installing a raw GitHub repo via git clone, and the script-dependency gotchas.
npx skills init).After exhausting Path A + the GitHub sweep + 2 query reformulations, if the top results are all adjacent-but-not-matching, generic copy-editing tools when you need contextual logic, or star-leaders that fail [S4] content inspection — STOP searching. Writing a custom skill is faster than the next 3 reformulations. The niche is genuinely yours (not just under-searched) when: the task involves the user's personal voice/language/workflow; it spans 2+ languages with user-specific rules; the right answer needs the user's memory/people files first; existing community skills assume a generic English use case.
SETUP NEEDED) and collect user input.semantic polish-days when semantic diverges from raw by ≥30%.gh search code backend loops here.--cache for repeat searches within 24h.| Var | Meaning |
|---|---|
<skills-dir> | The directory that contains this skill's folder (and the sibling oss-finder/) |
{PRIMARY_TERM} | The user's main topic in their original language |
{VARIANT_N} | One additional search variant (other language or synonym) |
{OWNER}/{REPO} | A GitHub repository identifier |
{PATH} | Relative path to a SKILL.md inside that repo |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kargnas/skills --plugin kargnas-skillsOther plugins' skills for the same job
13 skills in this plugin
/ai-readyUse only when the user asks to make the repo AI-ready or AI-optimized (AGENTS.md migration, debugging/testing setup, docs). Do not run on your own./git-loreCaptures, queries, and configures decision context in native Git trailers. Use for non-trivial commit messages, decisions, rejected alternatives, follow-ups, Lore history queries, pull request decision summaries, or Lore rules in agent instructions./humanizer-kill-gptRuns a cross-language cleanup for writing tells shared by large frontier LLMs, not only GPT: English source constructs that survive other language translation and language-surface translationese. Use only when the user asks to remove AI/GPT tells from text (de-GPT, GPT 티, AI 티, 번역체 GPT, 자폐 말투 — colloquial shorthand for rigid or over-complete model prose, not a claim about autism)./minimal-frontendA default fallback design system for app UI and standalone HTML report pages, covering theme tokens, type and density scale, status colors, container-first responsive rules, anti-slop, and accessibility. Use when starting frontend work in a project with no existing design system, when asked to make a report./minimal-patch-with-subagentsMinimal patching workflow that debates fix options across parallel independent subagents and applies the smallest safe diff. Use only when you want risk-free code, and to code real minimal that only needs to fix the issue./oss-finderFinds battle-tested open-source repos, libraries, frameworks, CLI tools, or code on GitHub, ranked by README polish-days instead of stars. Also the shared GitHub code-search backend toolkit — rotating PAT pool, grep.app, Blackbird web index, BigQuery/GHArchive, and the code-search fallback chain. Use for 'find a library/framework/tool for X', 'battle-tested repo', GitHub-wide code search, or when `gh search code` rate-limits. Finding installable SKILL.md agent-skill packages goes to the skill-finder skill (it delegates its GitHub sweep here).