/superpowers-optimized:requesting-code-reviewfrom superpowers-optimized
Performs structured code review against requirements, quality, and security standards. Invoke after meaningful code changes or before merge.
Ships in superpowers-optimized. 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.
Read when SKILL.md points to them.
Request review early to catch issues before they spread.
Determine review range (BASE_SHA -> HEAD_SHA). Getting this wrong silently reviews the wrong thing:
BASE_SHA=$(git merge-base origin/main HEAD) (substitute your default branch). Not a bare origin/main — once main moves past your branch point, main's newer files appear in the diff as phantom deletions your branch never made, and the reviewer spends its pass on them.HEAD~1, which silently drops all but the last commit of a multi-commit task.origin/main not fetched: fall back to git merge-base main HEAD.git diff --stat BASE..HEAD. An empty range produces a confident "no issues found" review of nothing.The review scope is always git diff --name-only BASE_SHA..HEAD_SHA. Never take it from context-snapshot.json: its changed_files are the commits since the last session start (or the last commit), not your review range.
git_hash equals git rev-parse HEAD, then for each file in the review range that has a blast_radius entry, add those callers to the reviewer prompt: "Changed files: [range list]. Also referenced by: [blast_radius callers]." If the hashes differ, ignore blast_radius.What blast_radius means. Each entry lists files containing a reference that resolves to the changed file's path — a relative import, or the repo path written out. It is deliberately incomplete: references that cannot be resolved (package-style imports, dynamic paths, aliases from tsconfig) are dropped rather than guessed, so an empty list means "nothing was proven," not "nothing depends on this." Never widen review scope on a name match alone; if you need dependents the snapshot does not list, grep for them and say you did.
blast_radius_method records how the edges were derived. If it is missing, the snapshot came from a version that matched basenames as words — ignore blast_radius entirely and scope from the diff.
If a plan is in play, write the diff to a file first: bash ../subagent-driven-development/scripts/review-package PLAN_FILE BASE HEAD. It refuses empty and non-descendant ranges outright, so the reviewer never receives a range that cannot mean what it claims. Pass the printed path to the reviewer.
Dispatch superpowers-optimized:code-reviewer using requesting-code-review/code-reviewer.md.
Provide:
When changes touch security-relevant areas, the code review must include a security pass. This is not a separate step — it's part of every review where applicable.
Triggers automatically when changes touch:
Security checklist:
Severity enforcement:
For changes involving complex logic, concurrency, state management, or critical data paths, dispatch superpowers-optimized:red-team in parallel with the code reviewer.
Triggers when changes touch:
The red team agent finds concrete failure scenarios (specific inputs, race conditions, state corruption, resource exhaustion) that checklist-based review misses. It does NOT duplicate the security review — its focus is adversarial logic analysis, not OWASP/CWE compliance.
Red team critical findings block merge alongside security critical findings.
When the red team report contains Critical or High findings, run the auto-fix pipeline. The pipeline is ASI-guided and iterative — fix one finding at a time, starting from the red team's designated ASI, then re-assess before proceeding. This prevents fixes from conflicting with each other when findings touch shared code.
Iteration loop:
After the loop completes:
verification-before-completion. Fixes confined to one module: that module's suite plus its
dependents. Fixes spanning modules or touching a shared contract: the full suite.Skip conditions:
Review must include severity, file references, security findings (if applicable), and merge readiness verdict.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
24 skills in this plugin
/brainstormingUse when the user wants new features, behavior changes, refactoring with new capabilities, or architecture decisions and no approved design exists yet. Produces a design before any code is written — in the conversation for small changes, as an approved spec document for larger work. Triggers on: "build this", "add a feature", "I want to change", "how should we", "design", "architect", "new project", "refactor", "we need to add/build/create", "implement a new". Routed by using-superpowers, or invoke directly via /brainstorming.
/claude-md-creatorCreates minimal, high-signal CLAUDE.md and AGENTS.md context files based on empirical best practices. Invoke on /init command, "create CLAUDE.md", "update CLAUDE.md", "write AGENTS.md", or "set up Claude Code for this project". Also invoked by brainstorming when repo lacks a context file. tools: Read, Glob, Grep, Bash, Edit
/context-managementnpx claudepluginhub repozy/superpowers-optimized --plugin superpowers-optimizedOther plugins' skills for the same job