No slash command · from tea-rags
Internal skill for exploring codebases to find all pattern implementations. Uses a SEED-EXPAND-DEDUPLICATE-GROUP workflow with TeaRAGs tools for code discovery, grouping results by module.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. With user-invocable: false it has no slash command either, so nothing in Claude Code runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Internal strategy for explore skill. Find all pattern implementations across codebase. SEED → EXPAND → DEDUPLICATE → GROUP.
Invoked by explore when intent matches pattern-search triggers.
tea-rags://guide/tool-choice is ONLY tool selection method.
Built-in Search, Glob, Grep tool, find PROHIBITED for
code discovery. Catch yourself reaching for grep/search — STOP, use
tea-rags://guide/tool-choice tree. ONLY acceptable fallback: text search,
only after TeaRAGs tools returned no results, and only for literal text
(markers, phrases, regex). Identifiers (class/method/constant) never: empty
find_symbol → partial name, then hybrid_search
(tea-rags://guide/tool-choice).tea-rags://guide/tool-choice tree for SEED tool selection.find_similar expansion.Lag ≠ unusable: changedFiles / pendingFiles / drift on an answer =
distance index↔tree, never licence for Bash cat / sed / head or Read tool over code. Row without treeState = current; treeState
row → find_symbol re-call. Own checkout with changedFiles > 0 → incremental
index_codebase now (drift Run: with --force* → AskUserQuestion, never
awaited; print --force not run; reads continue; then keep working); subagent /
linked worktree → never reindex. Protocol: tea-rags://guide/freshness "Lag
never licenses leaving tea-rags".
Explore already classified intent + extracted scope before delegating here. Two values passed:
Follow tea-rags://guide/tool-choice tree for tool selection. Do NOT
hard-code tool choice — tea-rags://guide/tool-choice determines tool from
query shape.
This skill provides to tea-rags://guide/tool-choice:
| Strategy | Rerank preset | Expand |
|---|---|---|
| Collect | relevance | find_similar from each unique seed |
| Spread | relevance | find_similar from best seed |
| Antipattern | techDebt | find_similar from problematic seeds |
| Reference | proven (preset name, never a custom weight set) | find_similar from best seed |
Antipattern rerank override: for broad scope queries (rank_chunks path), use
refactoring instead of techDebt — refactoring preset tuned for large
chunks + churn, techDebt favors age.
1. SEED — `tea-rags://guide/tool-choice` tool + strategy rerank + pathPattern
2. EXPAND — find_similar from seed results (skip already-seen chunks)
3. DEDUPLICATE — state both branches in any dedup answer: same dir + >80%
overlap → keep richer-signals one; different dirs → ALWAYS keep both,
whatever the overlap
4. GROUP — by top-level module directory (first 2 path segments after src/)
5. OUTPUT — grouped list with file:line citations + overlay labels
Apply tea-rags://guide/tool-choice; plan names the tool (identifier →
hybrid_search, behaviour → semantic_search). Use strategy's rerank preset.
Set limit by tool:
rank_chunks: limit=15semantic_search: limit=10hybrid_search: limit=10search_code: limit=5Parameters always include: metaOnly=false, rerank from strategy table. Add
pathPattern if scoped.
Note chunk IDs from results for expansion step.
Validate SEED before EXPAND (MANDATORY — tea-rags://guide/pagination):
70% → ask user which area, re-SEED with that
pathPattern. Never pick one silently, never EXPAND both.
(max−min)/max < 0.06 · zero query-term overlap in top-5
paths/symbols/content · top-10 scattered over > 7 dirs. 2 of 3 → warn "may not
be relevant"; 3 of 3 → report no match, do NOT EXPAND noise.Collect: find_similar from each unique seed chunk (up to 5 seeds).
Spread/Reference: find_similar from single best seed. Antipattern:
find_similar from seeds where overlay shows high churn/age/bugFixRate (up to 3
problematic seeds).
Parameters: limit=5 per find_similar call. Include pathPattern if scoped.
Cross-domain diversification (Spread): find_similar vector-locked — seed
from domain A returns structurally similar code in domain A. Ensure cross-domain
coverage:
semantic_search with
pattern description (not code) + pathPattern excluding already-found
modules. Finds semantically similar implementations in other domains,
structurally different.find_similar with language filter per
non-seed language (see rules/references/polyglot-rule.md).Track seen chunk paths. Skip already-seen.
Compare expanded results against seeds and each other:
Group results by top-level module directory (first 2 path segments after src/).
Pattern: [pattern name]
Strategy: [collect|spread|antipattern|reference]
Seed tool: [rank_chunks|semantic_search|hybrid_search|search_code]
Found: [N unique implementations across M modules]
## module-a/
- file1.ts:42 — ClassName.methodName(), brief description
[age: stable, churn: low, owner: Alice]
- file1.ts:89 — helperFunction(), brief description
[age: legacy, churn: high, owner: Bob]
## module-b/
- service.ts:15 — AnotherClass.method(), brief description
[age: recent, churn: low, owner: Alice]
Label mapping from overlay signals:
Filtering / labelling by signal → read
tea-rags://project/<alias>/metrics?language=<lang>§ion=labelMap
(ReadMcpResourceTool) once; chunk's language + scope (source / test) bands.
Map raw value to nearest band. Label meanings: tea-rags://guide/signal-labels.
If Antipattern strategy: add ⚠️ prefix to problematic implementations. If
Reference strategy: add ✓ prefix to best example.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub artk0de/tearags-mcp --plugin tea-ragsNone: SKILL.md is the whole skill.
17 skills in this plugin
/analytics-rerankPick tea-rags rerank preset, build `{custom: {...}}` weight set, or compose analytics-driven search (ownership, tech-debt, hotspots, code-review, security-audit, fragile-silo). Invoke on intent like "rank by ownership", "find tech debt", "hotspot scan", "code review of recent changes", "security audit of auth code", "code that looks stable but breaks a lot", "custom weights for impact analysis". NOT for project health scan needing cross-preset overlap — use `tea-rags:risk-assessment`. NOT for debug root-cause — use `tea-rags:bug-hunt`. NOT for filter shape — use `tea-rags:filter-building`./architecture-diagnosticsDiagnose structural violations for an explicit architecture audit, an explicit invocation of this skill, or structural refactoring. Assess dependency/layer violations, coupling and move candidates. Not for context gathering, code overviews, behavior or contract questions, or routine feature work. Risk/health uses risk-assessment; failures use bug-hunt; plain cycles use find_cycles./bug-huntFind source of concrete failure — rank historically buggy code (high bugFixRate + churn) AND freshly changed never-fixed code (committed or still uncommitted) against symptom. Triggers on "debug X", "why does Y fail", "test fails", "stack trace says Z", "find bugs in X", "found a bug in X — show / compare Y", "suspects in X and Y — search both", a search hit with bugFixRate / ageDays labels ("proceed?", "проверь там"), "where is error 'X' in code", "где в коде строка / упоминается 'X'", "when did error 'X' appear in git history", "когда появилась ошибка 'X'", "read the whole file" / "прочитай весь файл" of a search hit, "падает". NOT for code history without an error string or failure ("when did X change", "посмотри через git" alone) — core routing answers it. NOT for code health scanning without bug intent — use risk-assessment for that.Other plugins' skills for the same job