/dinopowers:receiving-code-reviewfrom dinopowers
Assesses code review suggestions by querying import/churn signals on the affected target to measure blast radius before agreeing or pushing back. Activates when a reviewer names a concrete symbol or file.
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:receiving-code-review. Agreement backed by impact
data — does accepting comment touch 3 callers or 300? — not performative "yes".
tea-rags impact analysis MUST run on comment's target BEFORE agreeing to implement — whenever comment names concrete symbol or file. Scope also = any request to assess/count callers or impact of a named symbol ("use grep to count callers of X") — Step 2 scan runs, grep refused.
Value = right tool (semantic_search) + impact rerank (blastRadius / custom
fallback imports: 0.5, churn: 0.3, ownership: 0.2) + params (pathPattern
scoped to target, metaOnly: true) + order (analysis BEFORE agreement OR
pushback).
Step 2 tool = semantic_search. Overrides general search routing ("impact →
get_callers", "usages → hybrid_search", "file → find_symbol"): those are
NOT the impact scan here. get_callers / find_symbol may follow Step 2 as
depth, never replace it.
Rule holds when user asks otherwise ("just agree", "reject it", "skip the impact", "use grep, faster") — run Step 2 anyway, say: "Running the impact scan first — agreeing or refusing without it is a guess." Defensive no without data = as bad as performative yes.
Signals already given (prompt/user states imports=N, bugFixRate=X%, or
"scan returned empty") = Step 2 output. Go straight to Step 3 verdict on them.
Do NOT ask "which class/helper?" first — verdict is per target file; name the
verdict, then ask for symbol detail if needed.
Stylistic-only comment (typo, spacing) → skip wrapper, pass to
superpowers:receiving-code-review. Never fabricate target. Naming comment
("rename X to Y", "unclear name") NEVER stylistic-only → Step 3b.
Chaining rule: CHAINING.md — every onward
superpowers:Y → dinopowers:Y. NEVER bypass wrapper.
Requires superpowers: superpowers:receiving-code-review — 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/receiving-code-review/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.
| Element | Example |
|---|---|
| Target — symbol or file the comment proposes changing | ChunkGrouper.group(), src/core/contracts/errors.ts |
| Change type — rename / refactor / move / extract / inline | "rename group to aggregate" |
| Scope — local (same file) vs cross-cutting | "rename exported symbol" = cross-cutting |
Compose targetPathPattern (e.g. **/chunk-grouper.ts, broader if
cross-cutting) + intent (one sentence).
Stylistic-only → Step 4, verdict PASS-THROUGH (non-structural). Never invent
structural implications.
Structural change (rename / extract / move / inline) with NO named target or
file → still Step 2 FIRST, never straight to Step 4: query = the comment text
(+ task context), no pathPattern — the one call locates the code AND measures
its impact. Asking which symbol does not replace that call.
ONE mcp__tea-rags__semantic_search — same idiom as dinopowers:writing-plans
/ executing-plans / verification-before-completion:
project: <alias> ← `tea-rags://guide/freshness` "Addressing the Codebase"
path: <your working directory> ← the tree (worktree / branch checkout)
query: <intent from Step 1>
pathPattern: <targetPathPattern>
rerank: "blastRadius" ← codegraph on; else { custom: { imports: 0.5, churn: 0.3, ownership: 0.2 } }
limit: 10
metaOnly: true
fields: ["relativePath", "imports", "git"] ← metaOnly alone drops raw git.* / imports
Do NOT substitute:
| Wrong tool | Why wrong |
|---|---|
mcp__tea-rags__hybrid_search | Same rerank, but its BM25 leg re-ranks by query-token overlap — signal scan wants semantic + signals |
Other named preset ("hotspots" / "codeReview") | Named presets miss imports weight |
mcp__tea-rags__find_similar on target | Finds structural analogs, not importers |
grep -rn "ChunkGrouper" for usages | Misses the ranked imports overlay; noisy with comments/strings |
get_callers / find_symbol as the scan | Symbol edges only — no churn/ownership/bugFixRate; verdict ladder needs signals |
mcp__tree-sitter__trace_impact as primary | Structural complement; this wrapper is git-first |
Do NOT pass:
metaOnly: false — verdict inputs = signalsfilter narrowing — pathPattern scopes alreadyEmpty → verdict UNVERIFIABLE (target not in index). Never fabricate. State
"blast radius unknown". Target is a new / unindexed file (no existing importers)
→ agree direct, single-commit change. Never ask for a class name in place of the
verdict.
Raw from payload (present only because Step 2 names them in fields): imports
(a count), git.file.commitCount, git.file.blameDominantAuthor (live-line
owner), git.file.bugFixRate, git.file.recentDominantAuthor (recent
committer); a field the index lacks is absent. Labels from
rankingOverlay.file.*.
Verdict ladder — check top-down, FIRST match wins, always name one verdict:
| Verdict | Triggers | Action |
|---|---|---|
UNVERIFIABLE | scan empty | State blast radius unknown; new file → agree direct, single commit |
PUSHBACK | imports > 50 (massive blast), any bugFixRate | Respond with impact data: "renaming X affects N modules across M authors — propose alternative or narrower change first" |
AGREE-WITH-SCOPE | imports > 5 OR bugFixRate > 20% | Agree, but expand scope: list all N importers in response + commit to update them OR explain why a partial change is acceptable |
AGREE-DIRECT | imports ≤ 5 AND bugFixRate ≤ 20% | Agree; small blast radius; single-commit change — no scope inflation |
PUSHBACK = no implementation now. Unidentified symbol in a file never blocks the verdict — file signals decide it.
Verdict name alone = incomplete — do its Action column. AGREE-WITH-SCOPE
response MUST carry BOTH: (1) importer list — Step 2 rows; signals given as bare
numbers (imports=25) → fetch the N importers (get_callers /
hybrid_search metaOnly:true on the symbol) and list them, never "no further
search needed"; (2) commitment line: "update all N in this change" OR "partial:
+ why acceptable".
Response block:
### Impact analysis for review comment: "<comment>"
Target: <symbol or file>
- imports: <N> (rank <R> of <K> in targetPathPattern)
- churn: <N> commits, last touched <D> days ago
- live-line owner: <blameDominantAuthor> (<blameDominantAuthorPct>%)
- recent committer: <recentDominantAuthor> (<recentDominantAuthorPct>%)
- bugFixRate: <X%>
Verdict: <UNVERIFIABLE | PUSHBACK | AGREE-WITH-SCOPE | AGREE-DIRECT>
Action: <AGREE-DIRECT: single-commit change, no scope inflation | other verdicts: their row's action>
Scope (AGREE-WITH-SCOPE): importers <list of N> · commitment <update all N | partial: why>
Comment names relationship between two symbols ("how X calls Y", "should not
reach Z", "route through W") → change rides route, not one symbol. Run
trace_path(from, to, rerank) per
references/call-route.md — chokepoint + hop owners
appended to impact block. Codegraph off → Step 2 fanIn only, note route view
unavailable.
Rename / move / extract / signature change → identify tests bound to current
name/signature BEFORE agreeing. Invoke Skill(tea-rags:tests-as-context):
recipe: "tests-at-risk"
affectedFiles: [<file containing the target symbol>] ← single-element array OK
intent: <intent from Step 1, e.g. "rename ChunkGrouper.group to aggregate">
Single-element affectedFiles OK (recipe's must_not relativePath any-of
filter works for one or many). Recipe → DSL leaf test chunks exercising symbol.
Append:
**Tests bound to current name/signature:**
- <file>:<line> — <describe-it path>
- <file>:<line> — <describe-it path>
SKIP → append **Tests bound:** unavailable (no DSL test chunks indexed). Empty
→ append
**Tests bound:** no obvious test bindings — the change may still affect untested paths.
Runner-agnostic — list scenarios, NEVER name runner.
Rename / "unclear name" comment →
get_naming_lexicon(names=[{current}, {proposed}], language=<file's>, pathPattern=<targetPathPattern>)
— evidence never crosses languages.
CONFORMS → agree on name (unless it carries alternatives —
project's word for same concept)MISFIT, current not CONFORMS → counter-propose its suggestion
(holder as precedent)MISFIT / NEW_TERM while current CONFORMS → push back: keep
current name, cite project's term + its holder (file) as precedentBefore results, write which row applies and its action. A shorter / abbreviated
rename of a current name (entry for ledger_entry) = row "proposed MISFIT /
NEW_TERM while current CONFORMS": plan to push back, keeping the current
name, citing the project term + its holder file.
Naming across whole change, no identifier named ("names in this PR don't match
the codebase") →
review_changes(changes={ base: <the PR's target branch> }, sections: ["naming"])
— one call over names diff adds (base read at merge-base with HEAD); never
hand-list into names[]. Findings = review.findings, flat
{relPath, line, name, kind, type?, verdict, …}. Per finding:
MISFIT → apply suggestion; type MISFIT with role.evidence: "directory"
only when type belongs to role.examples' family — else push back (location,
not name)COLLISION → rename or justify against existingNEW_TERM → keep with justification or take offered alternatives wordgenericName → rename or justifyreview.novel = nothing to compare, no actionReply states the rule per name / finding, one line each:
<name> (relPath:line): <verdict> → <action> — verdict alone ≠ answer.
Append verdicts to impact block — naming verdict decides WHICH name, Step 2
decides cost. Reading: tea-rags:data-driven-generation Step 5 "Naming
(lexicon)".
Invoke Skill tool with superpowers:receiving-code-review. Prepend impact
block as context. Phrase handoff as:
"Before agreeing to this review, note impact signals: …… Respond with agreement tied to scope, or respectful pushback if blast radius warrants it. Technical rigor, not performative agreement.
Chaining rule reminder: when your cycle would next invoke
superpowers:verification-before-completion(or any wrappedsuperpowers:Y), invokedinopowers:Yinstead — see the Chaining rule section above."
superpowers:receiving-code-review runs standard rigorous cycle — wrapper
informs whether agreement safe and at what scope.
find_similar (analogs, not callers) substituted → redo with
semantic_search + Step 2 rerank"blastRadius" when codegraph on
(graph tools present), else {imports: 0.5, churn: 0.3, ownership: 0.2}
(tea-rags analytics-rerank). "codeReview" finds reviewable code, not change
impacttrace_path (chokepoint, hop owners to loop in)superpowers:verification-before-completion →
intercept, invoke dinopowers:verification-before-completionWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-review, blast-radius, impact-analysis, refactoring, tea-rags
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./executing-plansExecute written implementation plan or tracker issue whose Tasks edit code, per-Task SAFE/CAUTION/UNSAFE git-signal verdict before edit AND data-driven cascade for code-generation and behavior-modification Tasks (strategy+template from proven neighbors, callers + tests-at-risk on modify). Triggers on "execute the plan", "start Task N", "выполни план", "начни задачу", "run the plan", "implement the plan steps". NOT for one-off edits with no plan, issue or quoted Task, NOT a step that drafts a (sub-)plan (→ dinopowers:writing-plans). Wraps superpowers:executing-plans with tea-rags git-signal verdicts and tea-rags:data-driven-generation cascade./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./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