kpa-code-review
Review uncommitted changes for correctness, regressions, security, spec mismatches, and missing tests
Files1
View on GitHubSKILL.md.claude/skills/kpa-code-review/SKILL.md
GitHubReview the current uncommitted changes and report actionable findings.
Scope
- Review all staged, unstaged, and untracked changes in the working tree.
- Focus on correctness, regressions, security, spec mismatches, and missing tests.
- Do not implement fixes; only report issues.
OpenSpec Alignment (required)
- Identify related OpenSpec change artifacts:
- First check active changes in
openspec/changes/(excludeopenspec/changes/archive/). - Prefer changes that are also modified in the current diff.
- If none are modified, infer likely related changes from touched feature areas/files.
- First check active changes in
- For each related change, review:
proposal.mddesign.md(if present)tasks.md(if present)- delta specs in
openspec/changes/<change>/specs/**/spec.md
- If no active related change exists, fall back to relevant baseline specs in
openspec/specs/**/spec.md.
Review Process
- Inspect the uncommitted diff (
git status, staged + unstaged diffs, and untracked files). - Map changed code to expected behavior from OpenSpec docs.
- Report only concrete issues with clear evidence.
- Call out missing or weak test coverage for changed behavior.
Output Format
- Start with findings ordered by severity: Critical, High, Medium, Low.
- For each finding include:
- Severity
- Location (file path and line or symbol)
- Spec Reference (OpenSpec file/requirement/scenario when applicable)
- Issue
- Why it matters
- Recommended fix
- If no issues are found, explicitly say:
No significant issues found in uncommitted changes.