/dinopowers:executing-plansfrom dinopowers
Executes written implementation plans or tracker issues with per-task git-signal verdicts (SAFE/CAUTION/UNSAFE) before edits, plus a data-driven cascade for code generation and behavior modification. Wraps superpowers:executing-plans with tea-rags guards.
Ships in dinopowers. 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.
Wrapper over superpowers:executing-plans. Adds pre-touch modification
guard — before each Task's first Edit/Write, tea-rags impact signals for
Task's files → verdict. High-blast-radius / hotspot / silo files flagged before
edits, not after broken commit.
Every plan Task that modifies files: pre-touch guard MUST run BEFORE that Task's first Edit/Write/MultiEdit.
Value = right tool (semantic_search) + impact rerank ("blastRadius"
codegraph on, {imports 0.5, churn 0.3, ownership 0.2} fallback off) + params
(brace-expanded pathPattern over Task-local files, metaOnly: true) + verdict
ladder (SAFE / CAUTION / UNSAFE) + gating (CAUTION = confirm, UNSAFE = pause).
Purely additive Task (only new files — paths not in the tree yet) → NO signal
call on them; verdict SAFE (new files only), said in the answer, then
Step 5. Never invent pathPattern to justify guard.
Plan = any written Task source: plan file, tracker issue handed to an
autonomous task-agent ("Execute beads issue X: write Y in path Z"), OR a Task
quoted in the prompt (Execute Task: '<text>', Plan Task N: '<text>') — no
plan file needed; route here, never decline as "no written plan". Issue = one
Task → full step order below, each step named in your answer: guard ("guard SAFE
— new file") → tea-rags:data-driven-generation (MUST for new code, esp. "match
shape of A/B") → its Step 6a tea-rags:test-first writes the red tests (name
tea-rags:test-first; no separate TDD skill) → superpowers:executing-plans.
Never Read neighbours and copy by hand.
Skill(dinopowers:executing-plans) (already loaded → say so). Walking Steps
2–6 without stating it = skipped. User prompt with no [invoked by …] marker
("execute the plan", "start the task") = executor entry → Step 2 guard
semantic_search path=<cwd> runs; a marker seen in another request never
carries over. Exception, only when THIS prompt carries it verbatim:
[invoked by dinopowers:executing-plans …] + behaviorQuery= /
positiveIds= = you ARE the Step 4.5 callee → run
tea-rags:extract-project-patterns only (its L1 search first); guard + DDG
are the caller's.project=<alias> + path=<your working directory>. No clone, no reindex for
tree's own edits.SAFE (new files only) with no scantea-rags:data-driven-generation)superpowers:executing-plans⚠️ Skip Step 5 → ungrounded code. Skip Step 6 → parent workflow never runs. Skip
Step 2.0 → guard reads main's tree → verdict on code branch already changed.
Chaining rule: CHAINING.md — every onward
superpowers:Y → dinopowers:Y. NEVER bypass wrapper. Open each chained
SKILL.md with its own read. Plus cross-plugin tea-rags:data-driven-generation
(Step 5) — not a redirect, an extra MANDATORY step for Tasks that GENERATE code
or CHANGE behavior (MODIFY).
Requires superpowers: superpowers:executing-plans — availability per
CHAINING.md "Missing superpowers" steps 1–3. Not in the
skills list ≠ unavailable (the list is truncated): run
ls $CODEX_HOME/plugins/cache/*/superpowers/*/skills/executing-plans/SKILL.md
as written first — a hand-built path failing proves nothing; only that glob
matching nothing → stop and ask the user to install superpowers
(https://github.com/obra/superpowers). NEVER present this enrichment alone as
the full workflow.
Freshness: FRESHNESS.md (owner
tea-rags://guide/freshness). Lag ≠ unusable — never Bash cat/grep/Read
over code; treeState row → find_symbol.
Plan/spec = doc chunks. Per-Task re-consult →
find_symbol(relativePath: "<plan>.md") heading TOC → drill active Task via
doc:<hash>. NEVER re-Read whole plan mid-execution. Plan file edited → hashes
moved → main checkout: incremental mcp__tea-rags__index_codebase BEFORE next
TOC read; linked worktree: none (find_symbol reads tree).
a.ts, b.ts"Class.method()" → file via
mcp__tea-rags__find_symbol; 2+ symbols → ONE
find_symbol(symbols: [<names>], metaOnly: true), files = rows'
relativePathlanguage/ruby/chunking/" →
find_symbol(relativePath: "<dir>") (its files + top-level symbols; never
ls / glob)Output: taskFileList (paths Task modifies, typically 1-5) + taskIntent (one
sentence). Empty (pure new-file creation) → Step 4, verdict
SAFE (new files only).
project=<alias> +
path=<your working directory> (tea-rags://guide/freshness "Addressing the
Codebase"). Linked worktree → own tree vs repo index, any delta; no clone, no
reindex for tree's own edits.workingTree marker. pendingFiles → rows = index's, re-call for
current code. indexOnlyFiles → non-code rows = index's. Neither triggers
reindex. degraded → its remedy under tea-rags://guide/freshness
consent.path=<its working directory>.dinopowers:finishing-a-development-branch.The guard is the Task's FIRST tea-rags call — a body/outline read of the task
files never precedes it (content arrives after the verdict, via
find_symbol(relativePath:) outline).
ONE mcp__tea-rags__semantic_search — same idiom as dinopowers:writing-plans
Step 2:
project: <alias> ← `tea-rags://guide/freshness` "Addressing the Codebase"
path: <your working directory> ← the tree (worktree / branch checkout)
query: <taskIntent from Step 1>
pathPattern: "{taskFile1,taskFile2,...}" ← brace expansion
rerank: "blastRadius" ← codegraph on; OFF fallback below
limit: <taskFileList.length * 3>
metaOnly: true
fields: ["relativePath", "imports", "git"] ← metaOnly alone drops raw git.* (blame*, commitCount)
Codegraph gating for rerank: "blastRadius" (real fanIn + churn +
bugFix) when codegraph on = graph tools (get_callers, trace_path, …) in tool
list (absent = off); off →
{ custom: { imports: 0.5, churn: 0.3, ownership: 0.2 } } (import-proxy,
approximate).
Do NOT substitute:
| Wrong tool | Why wrong |
|---|---|
mcp__tree-sitter__modification_guard | Structural (AST) guard, misses git-signal blast radius (imports count, bugFixRate, ownership) |
mcp__tea-rags__hybrid_search | Same rerank, but its BM25 leg re-ranks by query-token overlap — signal scan wants semantic + signals |
Named preset "hotspots" / "codeReview" / "impactAnalysis" | impactAnalysis does not exist; these miss the blast-radius dimension. "blastRadius" IS correct when codegraph is on |
| One call per file, sequential | Brace expansion covers all in one |
mcp__tea-rags__find_similar without a prior guard call | Finds analogs, doesn't return blast-radius signals |
Do NOT pass:
metaOnly: false — verdict inputs, not content. User wants the code too →
separate call AFTER the verdict: find_symbol(relativePath:) outline, then
member bodies; never flip the guarddinopowers:writing-plans +
tea-rags:data-driven-generation IMPACT step (cross-skill comparability)filter narrowing — pathPattern scopes; filters hide signalEmpty (brand-new, untracked) → SAFE (new files). Never fabricate blast-radius
for untracked files.
Per unique relativePath: labels from rankingOverlay.file.* ({value,label};
table columns rankingOverlay.file.<signal>.value / .label; kept under
metaOnly), raw from payload.git.file.* (present only because Step 2 names
"git" in fields; unlabelled → label via the labelMap below):
commitCount — churn magnitudebugFixRate — % fix/bug commits; absent on a young file — never fabricateblameDominantAuthorPct (label shared / concentrated / silo /
deep-silo) — live-line silo indicatorrankingOverlay.file.fanIn (blastRadius, codegraph on) or
imports (a count; custom fallback)Ladder uses adaptive labels, never magic percentages — labels = per-codebase
percentiles. Need boundaries → read
tea-rags://project/<alias>/metrics?section=labelMap&language=<lang>.
UNSAFE — blast radius (fanIn / imports) top 5% of result set AND
bugFixRate.label ∈ {"concerning", "critical"}; OR
blameDominantAuthorPct.label === "deep-silo" (one author owns the live code)CAUTION — blast radius top 15%; OR bugFixRate.label === "concerning"; OR
blameDominantAuthorPct.label === "silo"SAFE — none of the aboveSignals given as numbers (prompt / user states the guard result:
imports=40 (top 12%), bugFixRate=32%, shared (42%)) = Step 2 output.
Compute the verdict on them NOW — never defer to "the full guard result", never
re-run. Stated rank (top 12%) feeds the blast row directly; stated label words
(shared, silo, concerning) are labels; ONE trigger suffices — missing
signals never block it. No trigger stated (low imports, 0% bugFix, shared) →
SAFE, proceed without pausing; commit count alone never triggers. Example: top
12% → CAUTION + "Proceed with Task 2?"; imports=2, 0%, shared → SAFE. UNSAFE
blast row = conjunction — verdict line names BOTH halves:
imports top 2% AND bugFixRate concerning → UNSAFE; blast top 5% alone =
CAUTION. A bare percent (bugFixRate=45%, no label) → its label from
tea-rags://project/<alias>/metrics?section=labelMap (concerning ≥ p75,
critical ≥ p95) BEFORE the verdict; never a fixed cut like 40%.
Task verdict = worst per-file (UNSAFE > CAUTION > SAFE). Guard block:
### dinopowers guard — Task N ("<taskIntent>")
| File | imports | churn | bugFix | owner | Verdict |
|---|---|---|---|---|---|
| src/a.ts | 47 imports | 23 commits | 35% | Alice (92%) | CAUTION |
| src/b.ts | 3 imports | 5 commits | 0% | shared (42%) | SAFE |
**Task verdict: CAUTION** — high-blast-radius in `src/a.ts`. Owner Alice has 92% dominance.
Branch on Task verdict BEFORE invoking superpowers:executing-plans:
SAFE → proceed without interruption: Step 4.5 / Step 5 (code-gen, modify
Tasks), then superpowers:executing-plansCAUTION → surface the guard block, ask "Proceed with Task N?", wait for
explicit confirmation before superpowers:executing-plansUNSAFE → pause: surface block + recommend (a) split Task into smaller Tasks,
(b) add owner as co-author/reviewer, (c) require tests-before-edit. No
superpowers:executing-plans until the user explicitly overrides. Print this
line under the block, copied — also when the verdict waits on a labelMap read
(then it is the line for the concerning/critical label, printed in full):
UNSAFE Task N — <both halves>. Paused. Options: (a) split the Task, (b) owner as co-author/reviewer, (c) tests before edit. Reply 'override Task N' to proceed.Guard block = circuit breaker, not documentation. NEVER silently downgrade (UNSAFE→CAUTION, CAUTION→SAFE) "to keep momentum"; surface true verdict, user may downgrade.
Pre-emptive "skip it" is NOT an override. Deadline / "no time" / "пропусти
UNSAFE" said before or alongside the verdict → still surface the block + the
UNSAFE Task N — … line of the UNSAFE bullet above, and wait. Explicit
override = user reply AFTER seeing the block, naming the Task.
Chaining reminder: Task run may chain into
superpowers:test-driven-development,
superpowers:verification-before-completion,
superpowers:requesting-code-review,
superpowers:finishing-a-development-branch → redirect each to dinopowers:Y.
Code-generation Task (heuristic = dinopowers:writing-plans Step 3.5:
"implement" / "add" / "write" / "extend" + "function | method | class | helper |
module") = Step 5 Generation row (DDG CREATE / EXTEND). Modification
Tasks skip 4.5 — DDG MODIFY skips TEMPLATE (symbol itself = reference). Non-code
Tasks (config, test, doc) → straight to Step 5 — except a test Task whose test
calls a symbol / module that does not exist yet: that is a Generation Task
(DDG CREATE: the plan's test byte-exact as Step 6a RED, then GREEN).
Plan carries **Proven templates** for this Task (writing-plans Step 3.5) →
USE it, no recipe re-invocation (plan canonical).
No per-Task templates (older plan) → tea-rags:extract-project-patterns:
pathPatternL1 = deepest common ancestor of Task's Affected FilesbehaviorQuery = Task titlelimit = 5Use returned templates[0] + locality directly.
Chosen template → tea-rags:data-driven-generation Step 2 (TEMPLATE) input, so
Step 5 starts from right reference without re-invoking recipe.
Gate cleared (SAFE / CAUTION confirmed / UNSAFE overridden) → classify Task
BEFORE superpowers:executing-plans. DDG picks own mode (CREATE / EXTEND /
MODIFY) via find_symbol probe — wrapper decides only WHETHER to invoke.
Generation (new file, new function, new class, new method on existing
class, rewrite-to-new-template) → MUST
Skill(tea-rags:data-driven-generation) BEFORE any Edit/Write (CREATE /
EXTEND)
Modification (change behavior of EXISTING symbol in place: bug fix,
condition tweak, new branch, hotfix) → MUST
Skill(tea-rags:data-driven-generation) BEFORE any Edit/Write (MODIFY). The
plan prints these three lines NOW, first, slots filled, in this order — before
any DDG line (HOTFIX / mode lines follow them, never replace them):
Step 4.5 skipped — MODIFY skips TEMPLATE
DDG MODIFY duties: tests-at-risk (tea-rags:tests-as-context, green baseline before the Edit) + get_callers <Class#method> (DDG step 8 IMPACT — callers relying on the old contract surface before commit)
Then Skill(superpowers:executing-plans) for Task <N>
Skill authoring (Task writes / rewrites a SKILL.md) → NO DDG:
Skill(dinopowers:writing-skills) — its **/SKILL.md semantic_search
first, then superpowers:writing-skills, Write last (non-dinopowers SKILL.md
→ superpowers:writing-skills)
Refactor only (rename, move, extract, inline, reformat — no behavior
change) → skip Step 5; new name → get_naming_lexicon(names[]) BEFORE Edit,
MISFIT → use suggestion (naming note); file move → still DDG Step 6 SIM +
Step 7 gate
Deletion (remove file / function, prune dead code) → guard still runs (the file exists), skip Step 5 — no generation; then remaining-import check, delete
Trivial (typo, comment / log-message text, single-token swap, no behavior change) → skip Step 5 AND the wrapper — direct Edit
Naming note (rename / extract, codegraph on): new name →
get_naming_lexicon(names=[{name, kind, type?}], language, pathPattern) (kind
∈ param | local | field | constant | return | type — never
variable) before Edit (language = edited file's; evidence never crosses
languages). MISFIT → suggestion; NEW_TERM → topTerms word if same
meaning; NO_CONVENTION → prefer.exact or name like prefer.analogous.
Plan-fixed names checked too. Reading: tea-rags:data-driven-generation Step 5
"Naming (lexicon)".
Why MANDATORY — in-context edit / sibling Read misses what DDG owns:
bugFixRate critical; hotfix = MODIFY minus
STRATEGY/STYLE — DDG decides); REUSE existing helper for new branch/guard.proven preset (not arbitrary
sibling); deep-silo → exact pattern match + live-line owner flagged for
review.Invoke (one call, no params — skill reads area context from conversation):
Skill(tea-rags:data-driven-generation)
DDG lacks area context (no overlay labels) → it chains to tea-rags:explore
itself. Let it; NEVER pre-fetch labels.
Step 5 returns (strategy + template + style) → THEN
Skill(superpowers:executing-plans); RED stays inside DDG (6a test-first).
Order: addressing (2.0) → guard (2) → gate (4) → cascade (5) →
Skill(superpowers:executing-plans) — DDG return ≠ done; name the chain into
executing-plans as the last step of every Task, subagent runs included. Skipping
Step 5 on generation/modification = same severity as skipping guard on existing
file. Guard SAFE resolves blast-radius gate only — Step 5 separate gate, both
must clear.
taskFileList → Step 2mcp__tree-sitter__modification_guard substituted → structural, not
git-signal blast radius; wrapper git-first → Step 2"blastRadius" when codegraph on
(graph tools present), else {imports: 0.5, churn: 0.3, ownership: 0.2}
(tea-rags analytics-rerank). "codeReview" lacks imports → blast radius
invisiblemetaOnly: false on guard → restart with metaOnly: truesuperpowers:executing-plans for whole plan at once → gate each Tasksuperpowers:test-driven-development /
superpowers:verification-before-completion /
superpowers:requesting-code-review /
superpowers:finishing-a-development-branch → intercept, invoke
dinopowers:YRead sibling.ts + Write new.ts without
Skill(tea-rags:data-driven-generation) → revert (or pause before Edit),
restart from Step 5get_callers)path inside worktree → wrong tree; redo with
project=<alias> + path=<your working directory>pendingFiles, or
"after commit" cleanup → unneeded; overlay reads treeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub artk0de/tearags-mcp --plugin dinopowers10 skills in this plugin
/brainstormingBrainstorm 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" (incl. "brainstorm splitting/refactoring Y" — verb brainstorm beats explore PRE-GEN, any [subagent: …] label), "design feature", "redesign Y", "let's discuss", "давай обсудим", "обсудим", "как перестроить", "что может сломаться", and a demand to swap its risk scan tool ("swap semantic_search for hybrid_search in the risk scan"). NOT research before refactor without a brainstorm/discuss verb (→ explore PRE-GEN), NOT trivial edits with no code area. Wraps superpowers:brainstorming with tea-rags risk signals./finishing-a-development-branchFinalize dev branch (merge/PR/cleanup) with tea-rags:risk-assessment over full branch diff. Triggers on "finish the branch", "ready to merge", "wrap up the feature", "ветка готова", "доводим до merge", "branch ready", "PR time", "shipping the branch", "merge ready". NOT for mid-branch interim commits or a "готово, коммить и пушь" / "done, commit and push" claim (→ verification). Wraps superpowers:finishing-a-development-branch./receiving-code-reviewAssess reviewer's suggested change (rename, refactor, move, extract) — query tea-rags imports/churn signals on affected target, measure blast radius before agreeing or pushing back. Triggers on "reviewer suggests", "should I rename", "ревьюер предлагает", "стоит ли переименовать", "code review feedback", "PR comment about", "review feedback says", "PR comment wants", "address the review", "сделай как просит ревьюер", "code review wants me to", "let's refactor this per review". NOT for vague stylistic nits without a named symbol. Wraps superpowers:receiving-code-review with tea-rags blast-radius signals./requesting-code-reviewPrepare code-review request bundle: per-file ownership, churn, connected taskIds from tea-rags git signals before composing review request — reviewers know who to ping, where risk lives. Triggers on "request review", "open a PR", "ready for review", "готовлю PR", "запрос на ревью", "code review please". NOT for self-review or draft-PR exploration. Wraps superpowers:requesting-code-review with tea-rags reviewer-context bundle./systematic-debuggingDebug concrete failure: first run tea-rags:bug-hunt for ranked suspect list (bug-prone zones by bugFixRate + churn), feed as prioritized hypothesis space; ends with Cause / Fix / Prevention report. Triggers on "debug X", "fix the bug", "why does Y fail", "test fails", "same bug elsewhere?", "падает", "почему не работает", "ошибка в", "стектрейс", "такой же баг в других местах", "X feels wrong", "which tool next mid-investigation", "final report of a confirmed cause". NOT for code review, a code-health scan with no felt malfunction, code history with no failure ("when did X change", "посмотри через git" — core routing answers it), or a request to apply a named fix at a named location (→ data-driven-generation). Wraps superpowers:systematic-debugging with tea-rags:bug-hunt suspect ranking./test-driven-developmentWrite failing test BEFORE implementation, match project conventions from tea-rags search of existing tests (mocks, helpers, assertion style, fixtures) to fit local norms. Triggers on "write a test", "TDD", "напиши тест", "сначала тест", "failing test first", "RED phase", "add test for Y", "find test patterns for X", "test conventions", "extract patterns from tests", "ищи test patterns", "извлеки паттерны из тестов". NOT for projects with no existing tests — fall back to superpowers:test-driven-development. NOT for production code (function, behaviour change, bug fix) → tea-rags:data-driven-generation (RED = its Step 6a). Wraps superpowers:test-driven-development with tea-rags test-pattern search.Other plugins' skills for the same job