/dinopowers:requesting-code-reviewfrom dinopowers
Prepares code-review request bundles with per-file ownership, churn, and task IDs from tea-rags git signals so reviewers know who to ping and where risk lives. Triggers on phrases like 'request review' or 'open a PR'.
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:requesting-code-review. Request reaches reviewer with
git-context bundle — file owners, churn, connected tickets — reviewers
pair-match by expertise, trace coordinated changes without re-excavating.
tea-rags git-bundle query MUST run on git diff --name-only BEFORE composing
review request — whenever ≥1 file changed.
Value = right tool (semantic_search) + impact rerank (blastRadius / custom
fallback imports: 0.5, churn: 0.3, ownership: 0.2) + params (brace-expanded
pathPattern over diff files, metaOnly: true) + bundle format (per-file
ownership/churn/taskIds, NOT blast-radius verdict).
Diff empty → skip wrapper, invoke superpowers:requesting-code-review directly.
Never fabricate.
Chaining rule: CHAINING.md — every onward
superpowers:Y → dinopowers:Y. NEVER bypass wrapper.
Requires superpowers: superpowers:requesting-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/requesting-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.
git diff --name-only <base>...HEAD (branch) or git diff --staged
(pre-commit):
| Source | Example |
|---|---|
| Branch against base | git diff main...HEAD --name-only |
| Uncommitted + staged | git diff --name-only HEAD |
| Specific commit range | git diff <sha1>..<sha2> --name-only |
Output: diffFiles (M/A, exclude pure D) + intent (one sentence, what diff
does). Pure deletions only / empty diff → skip wrapper (reviewers need
code-in-diff).
ONE mcp__tea-rags__semantic_search — same idiom as dinopowers:writing-plans:
project: <alias> ← `tea-rags://guide/freshness` "Addressing the Codebase"
path: <your working directory> ← the tree (worktree / branch checkout)
query: <intent from Step 1>
pathPattern: "{diffFile1,diffFile2,...}" ← brace expansion
rerank: "blastRadius" ← codegraph on; else { custom: { imports: 0.5, churn: 0.3, ownership: 0.2 } }
limit: <diffFiles.length * 3>
metaOnly: true
fields: ["relativePath", "imports", "git"] ← metaOnly alone drops raw git.* (taskIds, blame*)
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 ("codeReview" / "ownership") | codeReview misses imports; ownership misses churn + taskIds in one call |
git blame / git log --format per-file | Manual git commands are slower and miss the indexed overlay |
mcp__tea-rags__find_similar | Finds code analogs, not diff metadata |
Do NOT pass:
metaOnly: false — bundle = signals; content already in PR difffilter narrowing — pathPattern scopes alreadyEmpty results (files too new) → skip bundle, invoke
superpowers:requesting-code-review with note "diff files not yet indexed — no
git-context available". Never fabricate.
Codegraph on = graph tools (get_callers, trace_path, …) in tool list; unsure
→ read tea-rags://project/<alias>/metrics?section=registry. On → per changed
symbol get_callers symbolId=<id> (exact id via find_symbol first). Callers
depend on change → their blameDominantAuthors = stakeholders. Add "Affected
callers / suggested reviewers" line to bundle.
Off → skip; Step 2/3 ownership bundle stands; note caller-impact not computed. NEVER invent caller lists.
review_changes(changes={ base: <Step 1 base> }, sections: ["naming"]) — ONE
call reviews every name diff's added lines declare (values, types, constants);
never hand-list into names[]. Base = target branch for branch diff (main);
read at merge-base with HEAD (target moving on adds nothing). Uncommitted work →
omit (default HEAD). Worktree branch → pass path=<worktree> (alias alone
reads main checkout).
Findings already quoted in the task / context = what this call returns — still
list the review_changes call in your sequence, then act on them.
Settle naming before reviewer spends comment:
MISFIT → rename to suggestion before sending (or list under risk flags
with holder). Type MISFIT with role.evidence: "directory" → rename only when
type belongs to role.examples' family, else keep nameCOLLISION → rename, or justify against existing declarationNEW_TERM → one-line justification in bundle, or take offered alternativegenericName → rename or justifyAnswer under review {workTree, base, mergeBase, changedFiles, checked,
conforming, novel, findings, notJudged, truncated?}; findings flat
{relPath, line, name, kind, type?, verdict, …}. Your answer prints this line,
filled from the findings you hold (plan-only too), every finding with
relPath:line AND the action taken on it (pick one side of each |), both
counts always. Echoing a finding with no action = MISFIT left for the reviewer:
Naming: MISFIT <name> (<relPath:line>) → renamed to <suggestion> before sending | kept, risk flag for <holder>; COLLISION <name> (<relPath:line>) vs <existing> → renamed | justified: <why>; NEW_TERM <name> (<relPath:line>) — <justification>; conforming <N>, novel <M>
Path or count not in the prompt → write <relPath:line from review> /
novel <from review>, never drop the slot (novel = nothing to compare, no
action). Reading: tea-rags:data-driven-generation Step 5 "Naming (lexicon)".
Aggregate by relativePath. Per file — raw values (blame*, recent*,
commitCount, ageDays, taskIds, bugFixRate) from payload git.file.*
(present only because Step 2 names "git" in fields; a field the index lacks
is absent — never fabricate); labels from rankingOverlay.file.*:
blameDominantAuthor + blameDominantAuthorPct — live-line owner (approves
on current code)recentDominantAuthor + recentDominantAuthorPct — recent committer
(mentally loaded, fastest turnaround)blameContributorCount (live owners), recentContributorCount (recent
committers)commitCount + ageDaystaskIds (connected tickets — highest-value signal, never omit)bugFixRate (risk signal)Reviewers by blame*; fast turnaround by recent*.
Bundle goes INTO request, not a verdict. Metadata only — no raw diff, no raw git log. Four sections, ALWAYS all four, named as below (no data for one → write "none", never drop it): (1) per-file table with ALL five columns — File, Owner, Contributors, Commits (age), Related tickets (taskIds; none → "—", never drop the column), (2) suggested reviewers, (3) coordinated change context (taskIds), (4) risk flags for reviewer attention (bugFixRate / churn / silo per file):
### Reviewer context bundle
**Files changed (per-file owners + history):**
| File | Owner | Contributors | Commits (age) | Related tickets |
|---|---|---|---|---|
| src/a.ts | Alice (92%) | 1 | 23 (142d) | #123, #145 |
| src/b.ts | shared (42%) | 5 | 8 (30d) | — |
**Suggested reviewers by expertise:**
- Alice — primary owner of `src/a.ts` (92% dominance)
- Bob — deep contributor to `src/b.ts` (last 3 commits)
**Coordinated change context:**
- Related ticket #123 also touched src/c.ts, src/d.ts in previous commits — reviewer should check consistency
**Risk flags for reviewer attention:**
- `src/a.ts` has bugFixRate=35% (high) — scrutinize new logic
- `src/e.ts` has been touched 47 times in 90 days — stability concern
- `<name>` (<relPath:line>) kept despite naming MISFIT → `<suggestion>` — <holder> decides (only when not renamed)
**Naming (Step 2.6, codegraph on):** <the Step 2.6 `Naming:` line, verbatim>
Bundle > 20 lines → per-file table top 10 by imports, note "N more files
omitted". Thin data → empty bundle beats fabricated ownership.
Invoke Skill(tea-rags:tests-as-context) with:
recipe: "tests-at-risk"
affectedFiles: <diffFiles from Step 1>
intent: <intent from Step 1>
Recipe → ranked DSL leaf test chunks bound to change. Add to bundle one of:
SKIP (no DSL test chunks indexed):
**Scenarios under risk:** unavailable (no DSL test chunks indexed)
Non-empty list:
**Scenarios under risk:**
- <file>:<line> — <describe-it path>
- <file>:<line> — <describe-it path>
Cap top 8; "N more omitted" if truncated.
Empty (preflight passed, no semantic match):
**Scenarios under risk:** no obvious test bindings found — reviewer should
verify whether new behavior needs new tests
NEVER name test runners — generic phrasing; command left to reviewer / CI / pre-commit hook.
Invoke Skill tool with superpowers:requesting-code-review. Prepend bundle as
context. Phrase handoff as:
"Include this reviewer-context bundle in the review request: …… Reviewers can pair-match by ownership and see coordinated-change context without re-excavating history.
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:requesting-code-review runs standard cycle — wrapper enriches,
never replaces.
"blastRadius" when codegraph on
(graph tools present), else {imports: 0.5, churn: 0.3, ownership: 0.2}
(tea-rags analytics-rerank). "ownership" alone misses imports/churn/taskIds;
"codeReview" finds reviewable code, not reviewer contextD-status files in bundle → drop; show in diffsuperpowers:verification-before-completion →
intercept, invoke dinopowers:verification-before-completionWhat SKILL.md sets; muted values are Claude Code's defaults
10 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.npx claudepluginhub artk0de/tearags-mcp --plugin dinopowersOther plugins' skills for the same job