Review step

From stefvw93/weft · View interactive version

Review step is an AI agent skill from the GitHub repository stefvw93/weft. Step 7 of the Weft TDD workflow. Use after /e2e: self-reviews the diff via the code-review skill (medium effort; high when packages/core or packages/dom public API is touched) plus a spec-conformance check, then fixes or explicitly rejects every finding and re-validates until clean. Hard gate: no co

How to use this skill

Skill file

/review-step: Self-review (TDD step 7)

Review the full diff for correctness and spec conformance; loop until clean. Commits are blocked until this step passes.

When to run

Procedure

  1. Pick the effort level.
  1. Run the code-review skill on the working diff at the chosen level, pinned to Sonnet 5 (model: sonnet) regardless of the session's currently selected model. This step fans out several sub-agents; pinning keeps token cost predictable instead of inheriting a pricier model.
  1. Spec-conformance check (always, regardless of effort level). Independently of the skill's findings, verify:

Any conformance gap is a finding, same weight as a bug.

  1. Disposition every finding (no silent drops). Each finding is either:

If a finding reveals spec/mock drift: pause rule. Stop, update specs.md and the mock surface (and affected tests) first, then resume.

  1. Re-validate and re-review loop. After applying any fixes:

1. vp run check and vp run test (and vp run test:browser if browser-covered code changed): must be green.

2. Re-run the review on the updated diff.

3. Repeat until a review pass comes back clean (no findings, or only findings already explicitly rejected with reasons).

  1. Report the final state: findings fixed, findings rejected + reasons, number of loop iterations.
  1. Hand off. Next step is /document.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.