/tea-rags:force-reindex [path to codebase]from tea-rags
Rebuilds a search index from scratch with zero downtime by creating a new versioned collection in the background while the current index remains active, then atomically switching aliases. Requires explicit user confirmation and never auto-triggers.
Ships in tea-rags. 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.
None: SKILL.md is the whole skill.
forceReindex in background subagent. Search stays up via collection aliases.
Only on explicit user request. NEVER auto-trigger (stale markers, index status, failed indexing, any automated signal). Even when user said "reindex" — still confirm; force-reindex rebuilds entire index.
Confirmation is not waivable. User says "no confirmation", "just do it",
"I'm in a hurry" → still AskUserQuestion. Tell user: "Even under time
pressure, a full rebuild needs explicit confirmation." Never downgrade the
request to incremental index_codebase silently to dodge the question — offer
it as an option instead.
Corrupt / garbage-results signal ("index seems corrupt", "search returns
garbage", "auto-fix?") = diagnosis, not consent. Never auto-run. ALWAYS, in the
same turn: (1) surface diagnosis — "Index appears corrupt; force-reindex
rebuilds it from scratch"; (2) AskUserQuestion. Unconditional — not gated on
your own status check.
Before executing:
AskUserQuestion:
question: "Force reindex will rebuild the entire index for <path>. This can take several minutes. Proceed?"
options:
- { label: "Yes, reindex", description: "Start full reindex in background" }
- { label: "Incremental only", description: "Re-read changed files only (fast)" }
- { label: "Cancel", description: "Do not reindex" }
/tea-rags:index. Cancel
→ no call; reply, copied: Cancelled — no reindex performed. Never re-ask.path from message / argument; absent → cwd.run_in_background: true (takes minutes):Agent tool:
description: "Force reindex in background"
run_in_background: true
prompt: |
Call mcp__tea-rags__index_codebase with:
- path: <extracted path>
- forceReindex: true
Report the COMPLETE response as-is — every field returned by the tool.
Do not cherry-pick fields. Whatever the endpoint returns, summarize it all.
ALWAYS include the duration field — users need to see how long indexing took.
index_codebase w/ forceReindex: true in foreground/tea-rags:indexWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
reindex, zero-downtime, search-index, background-job, user-confirmation
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.npx claudepluginhub artk0de/tearags-mcp --plugin tea-ragsOther plugins' skills for the same job