index
Index/reindex codebase. First time — register alias + index in one command (index-codebase --name). Already indexed — incremental reindex (only changed files).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Index/reindex codebase. First time — register alias + index in one command (index-codebase --name). Already indexed — incremental reindex (only changed files).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Decide HOW to write new code by inspecting git signals on neighbors — pulls strategy and templates from proven, low-churn nearby implementations rather than guessing from training data. Triggers on "implement function X", "add method to class Y", "write a helper for Z", "напиши функцию", "добавь метод". NOT for discovery or exploration — use tea-rags:explore for that. This skill activates ONCE the agent is about to write code.
Agentic-only enrichment skill — surface battle-tested reference code from project as templates for generation / modification. Three-level locality cascade (target subdomain → domain → project), quality gate by overlay labels + project-wide proven rerank preset. Returns ranked list of reference chunks + locality annotation (L1 / L2 / L3 / none). Invoked by `tea-rags:data-driven-generation` Step 2 (TEMPLATE), `dinopowers:writing-plans` (per code-gen Task), `dinopowers:executing-plans` (per Task during execute). Skipped when no `positiveIds` / `positiveCode` and no `behaviorQuery` available.
Run automated TeaRAGs install wizard from scratch — detects environment, installs deps (Node.js, tea-rags, Ollama/ONNX, Qdrant), tunes performance, configures MCP server. Progress saves to ~/.tea-rags/setup-progress.json for resumable install. Triggers on "install tea-rags", "set up TeaRAGs MCP", "configure tea-rags from scratch", "поставить tea-rags в проект". NOT for tuning an existing install — use tune for that.
Agent-only. Raise test coverage above a failed pre-commit threshold: locate the
Brainstorm code change seeing risk, ownership, tech-debt signals from tea-rags first — creative exploration grounded in actual state of affected area. Triggers on "brainstorm X", "design feature", "refactor Y", "let's discuss", "давай обсудим", "как перестроить", "что может сломаться". NOT for trivial edits or stylistic questions with no code area to enrich. Wraps superpowers:brainstorming with tea-rags risk-signal enrichment step.
Execute written implementation plan whose Tasks edit code, per-Task SAFE/CAUTION/UNSAFE git-signal verdict before edit AND code-style cascade for code-generation Tasks (style from silo authors, strategy+template from proven neighbors). Triggers on "execute the plan", "start Task N", "выполни план", "начни задачу", "run the plan", "implement the plan steps". NOT for one-off edits without a written plan. Wraps superpowers:executing-plans with tea-rags git-signal verdicts and tea-rags:data-driven-generation cascade.
| name | index |
| description | Index/reindex codebase. First time — register alias + index in one command (index-codebase --name). Already indexed — incremental reindex (only changed files). |
| argument-hint | ["path to codebase"] |
Smart indexing — check registration first, then index:
tea-rags index-codebase <path> --name <alias>Extract path from user message or argument. If absent, use current working
directory.
Check if path already registered: call mcp__tea-rags__list_projects, find
entry whose path matches target AND whose name non-empty (recovery
auto-created entries have name="").
Not registered yet (first index) — register + index in one command.
Derive default alias from path: final non-empty segment, lowercased,
non-alphanumeric replaced by -, prefixed p- if it would start with a
digit. Regex ^[a-z0-9][a-z0-9_-]{0,63}$ MUST match. Example:
/Users/me/Dev/Tools/Tea-RAGs MCP → tea-rags-mcp.
<alias>? (recommended — lets MCP tools address it by name instead of
path.)" Offer alias override.tea-rags index-codebase <path> --name <alias>. If
[INPUT_PROJECT_NAME_NOT_UNIQUE] returned, suggest numeric suffix
(<alias>-2), retry once.mcp__tea-rags__index_codebase
(path); user registers later with
tea-rags projects register --path <path> --name <alias>.Already registered → incremental reindex. Call
mcp__tea-rags__index_codebase with project: <alias> (or path). Do NOT
re-register — alias already exists.
Report full result (all metrics and duration), plus alias registered when
step 3 ran the --name path.
forceReindex: true — use /tea-rags:force-reindex for that.--name makes registering free (one command). After this
they'd register manually.mcp__tea-rags__register_project on a first
index — index-codebase --name CLI does register+index in one step. Reserve
register_project for re-pointing an existing alias, not first-time setup.