Loading...
Loading...
Spawn a focused code review subagent. Use after every RED/GREEN cycle (pass the files changed in that cycle), after a commit, or whenever the user asks for a review. Always use this skill for reviews — it ensures the review lens is test-first and findings are fix-oriented.
npx skill4agent add xdezex/skills code-reviewgit show --unified=0 HEAD -- <changed files> | grep -E "^(---|\\+\\+\\+|@@)"git show --name-only HEADgit diff --unified=0 origin/main | grep -E "^(---|\\+\\+\\+|@@)"--- a/src/foo.py
+++ b/src/foo.py
@@ -45,3 +45,5 @@
@@ -78,1 +80,1 @@@@openspec list --jsonYou are doing a per-cycle code review. Readfrom your skill directory for the review lens.references/reviewer-light.mdBelow is a listing of which files changed and which line ranges (no diff content). For each hunk, read ±30 lines of context around the changed range directly from the file — do not ask for a diff.If an active OpenSpec change is named, gather context yourself:
- Read
and extract capability names under New Capabilities and Modified Capabilitiesopenspec/changes/<name>/proposal.md- For each capability, read the global spec (
) and the delta spec (openspec/specs/<capability>/spec.md)openspec/changes/<name>/specs/<capability>/spec.md- Read
to identify the behavior in scopeopenspec/changes/<name>/tasks.md- Skip any
entries in the listing — those files are already provided as structured contextopenspec/changes/**Undeclared impact (code touches something not listed in the proposal) is itself a finding.Model: haiku
You are doing a final code review. Readfrom your skill directory for the review lens.references/reviewer.mdBelow is a listing of which files changed and which line ranges (no diff content). Read each changed file in full before reviewing — use the line ranges only to know which files to open.If an active OpenSpec change is named, gather context yourself:
- Read
and extract capability names under New Capabilities and Modified Capabilitiesopenspec/changes/<name>/proposal.md- For each capability, read the global spec (
) and the delta spec (openspec/specs/<capability>/spec.md)openspec/changes/<name>/specs/<capability>/spec.md- Read
to identify which behaviors were in scopeopenspec/changes/<name>/tasks.md- Skip any
entries in the listing — those files are already provided as structured contextopenspec/changes/**Undeclared impact (code touches something not listed in the proposal) is itself a finding.Model: sonnet