skills/steward-review/SKILL.md
Session-scoped code quality review. Audits only source files changed in the current branch/task, skipping tests. Lighter version of /prove:steward for use during active work.
npx skillsauth add mjmorales/claude-prove steward-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audit source files changed on this branch. Tests are excluded from scope. Artifacts go in .prove/steward/.
Read these for context (do not modify):
CLAUDE.md -- project conventions.claude/.prove.json -- validators, project structure (if exists)plan.json (scripts/prove-run show plan) or .prove/plans/ -- intent behind changes (if exists)Base branch: Use $ARGUMENTS if provided, otherwise main. Verify with git rev-parse --verify <base>. Fall back to master, then halt.
Changed files:
git diff <base>...HEAD --name-only
git diff <base>...HEAD --stat
Filter test files: Remove test_*, *_test.*, *.spec.*, *.test.*, files in tests//__tests__/, test fixtures/utilities.
No changes vs base? Check unstaged/staged (git diff --name-only, git diff --cached --name-only). Apply same filter.
No source files after filtering? Inform user "Only test files changed -- nothing to review." and stop.
Scope = filtered source files only. Read surrounding code (imports, callers, interfaces) for context; do not audit it.
Launch code-steward agent directly:
Audit ONLY these source files: [list]. Read-only -- produce findings, do NOT fix. Check cross-file integration: consistency, duplication, and coherence across changed files.
Run PCD pipeline:
python3 $PLUGIN_DIR/tools/pcd/__main__.py --project-root "$PROJECT_ROOT" map --scope <comma-separated changed files>
Run Rounds 1-3 per the steward skill's Phase 1. Synthesizer output: .prove/steward/session-review.md.
Write .prove/steward/session-review.md:
# Session Review
**Date**: [today] | **Branch**: [branch] | **Base**: [base]
**Source files reviewed**: [count] | **Test files skipped**: [count]
**Task context**: [from plan or branch/commits]
## Must Fix
[numbered, file:line refs -- address before merging]
## Should Fix
[numbered -- quality improvements worth making now]
## Nits
[numbered -- minor polish if time permits]
## Fix Plan
[1-3 work packages, note which can run in parallel]
Summarize: finding counts per category, proposed fix packages, estimated scope.
AskUserQuestion with options:
code-steward agent.code-steward agents with focused prompts and explicit file lists.New issues found while fixing: note in findings doc, stay on approved scope.
.claude/.prove.json validators (lint first, then test)..prove/steward/session-review.md:
## Test Remediation Required
| Test file | Failure reason | Source change that caused it |
|---|---|---|
git diff --stat to show changes./prove:steward run.testing
Anchor session context into prove primitives before compaction and rehydrate from them after. Built-in compaction summarizes by recency and drops the claude-prove state an agent needs to reorient; this skill externalizes volatile context into durable anchors (scrum tasks, decisions, run-state, a compact-anchors pointer file) pre-compact, then runs a deterministic reorientation sequence post-compact. Use before a manual /compact, when context is about to auto-compact, or immediately after a compaction. Triggers on "smart compact", "prepare for compaction", "anchor before compact", "context is getting long", "rehydrate", "reorient after compact".
tools
Apply model-driven CONTENT reshaping to stored run artifacts that sit behind the current schema, on explicit operator invocation only. Triggers on "migrate runs", "migrate run artifacts", "run content migration", "reshape run artifacts", "bring runs to current schema". You are the driver: the `run-state migrate-runs` CLI mechanically detects which artifacts are behind and emits a plan naming each one plus its migration-instruction file; you read the instructions and reshape the prose/findings, gated by the operator. The deterministic `schema migrate` handles structural column moves; this skill covers only the content reshaping beyond them. Never run as a background or resident loop — only when the operator asks.
tools
Synthesize the 7-section risk-forward Review Brief from a run's reasoning log. Triggers on "reasoning brief", "review brief", "synthesize the brief", "generate the brief", "brief the run", "brief for review", "story brief". You are the driver: the `acb brief` CLI renders a mechanical preservation-safe backbone and proves preservation; you synthesize the narrative prose (summary + changes), single-pass or multipass over episode chunks, then gate it through Stage-1 (mechanical, blocking) and Stage-2 (prose judge, advisory).
tools
Prune stale cached versions of the prove plugin from Claude Code's plugin cache. Use when superseded versions pile up under plugins/cache and agents read stale skills/references from them, or when reclaiming plugin-cache disk space. Triggers on "clean up cached plugin versions", "prune the plugin cache", "remove old prove versions", "stale plugin cache".