backpropagation
Trace runtime bugs back to spec gaps — identify missing acceptance criteria, update specs, generate regression tests, and detect patterns
Claude-on-Claude code review protocol — reviews implementation against spec requirements and code quality standards
$ npx -y skills add LucasDuys/forge --skill reviewing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/reviewingContext preview
The summary Claude sees to decide when to auto-load this skill.
Claude-on-Claude code review protocol — reviews implementation against spec requirements and code quality standards
name: reviewing description: Claude-on-Claude code review protocol — reviews implementation against spec requirements and code quality standards
This skill defines the two-pass review workflow that validates implementation quality before a task is marked complete. It is dispatched after a task is implemented and tests pass (at depth >= standard).
You will receive:
This is the primary review pass. It verifies that the implementation actually satisfies the spec.
**Procedure:**
1. **Read the actual code.** Do NOT trust the implementer's report or summary. Open every file that was created or modified and read it. 2. **List every acceptance criterion** from the spec requirements assigned to this task. 3. **Check each criterion against the code:**
4. **Flag missing implementations** — acceptance criteria with no corresponding code. 5. **Flag extra features** — code that goes beyond what the spec requires. Over-engineering wastes tokens and introduces unnecessary complexity. If the spec says "return 201 with {id, email}", the code should not also return `created_at`, `updated_at`, and `role` unless the spec asks for them. 6. **Flag misunderstandings** — code that implements something different from what the criterion describes. Example: spec says "hash with bcrypt (min 12 rounds)" but code uses SHA-256.
**Output for Pass 1:**
## Spec Compliance
STATUS: PASS | ISSUES
CHECKED CRITERIA:
- [x] R001/AC1: POST /auth/register accepts {email, password} — implemented in src/controllers/auth.ts:45
- [ ] R001/AC2: Password hashed with bcrypt (min 12 rounds) — MISSING, no hashing found
- [x] R001/AC3: Returns 201 with JWT + refresh token — implemented in src/controllers/auth.ts:67
ISSUES (if any):
- [CRITICAL] src/controllers/auth.ts — R001/AC2: No password hashing implemented. Raw password stored directly.
- [IMPORTANT] src/controllers/auth.ts:67 — Returns extra fields (created_at, role) not in spec. Over-engineering.This pass reviews the quality of the implementation itself. Only run this if Pass 1 does not have CRITICAL issues (fix those first).
**Check each of these areas:**
1. **Naming clarity** — Are variables, functions, and files named clearly? Can a reader understand what they do without reading the implementation? 2. **Design patterns** — Does the code follow the patterns established in the codebase? Does it match the conventions from the repo's CLAUDE.md? 3. **Test quality** — Do tests actually assert meaningful behavior? Are assertions specific (not just "test passes" or "no error thrown")? Do tests cover the acceptance criteria? 4. **Error handling** — Are errors handled appropriately? Are error messages helpful? Are edge cases covered (null, empty, boundary values)? 5. **Security** — No SQL/NoSQL injection vectors. No hardcoded secrets, API keys, or passwords. No unsafe patterns (eval, innerHTML with user input, unsanitized query params). 6. **Maintainability** — Is the code reasonably structured? Would another developer understand it? Are there obvious code smells (god functions, deep nesting, copy-paste duplication)?
**Output for Pass 2:**
## Code Quality STATUS: PASS | ISSUES ISSUES (if any): - [IMPORTANT] src/services/auth.ts:23 — Missing error handling for database connection failure. Will crash with unhandled promise rejection. - [MINOR] src/controllers/auth.ts:12 — Variable `d` should be named `userData` or similar for clarity. - [MINOR] src/tests/auth.test.ts:45 — Test "should register user" only asserts status code, not response body. Weak assertion.
The final review output combines both passes:
STATUS: PASS | ISSUES ISSUES (if any): - [CRITICAL] file:line — description - [IMPORTANT] file:line — description - [MINOR] file:line — description
The review loop is bounded by circuit breakers to prevent infinite cycling:
1. **Max 3 review iterations per task.** After 3 rounds of review-fix-review, accept the code with warnings and move on. Log unresolved issues in the execution summary. 2. **Same implementer fixes issues.** The executor that wrote the code fixes the review issues. This preserves context and avoids re-reading the entire implementation. 3. **CRITICAL issues must be fixed.** If a CRITICAL issue remains after 3 iterations, the task is flagged as blocked and escalated to the user. 4. **IMPORTANT issues should be fixed.** Fix in iterations 1-2. In iteration 3, accept remaining IMPORTANT issues with warnings. 5. **MINOR issues are optional.** Fix if budget allows. In iteration 2+, skip all MINOR issues and focus on CRITICAL and IMPORTANT only. 6. **Shrinking scope per iteration.** Each iteration should address fewer issues than the previous one. If the issue count is not decreasing, something is wrong — flag fo
Turn a one-line idea into a branch with tested, reviewed, committed code. The brainstorm-to-commit pipeline for Claude Code.
Repo: LucasDuys/forge
Trace runtime bugs back to spec gaps — identify missing acceptance criteria, update specs, generate regression tests, and detect patterns
Interactive spec generation — turn ideas into concrete specs with R-numbered requirements and testable acceptance criteria
Internal token optimization for Forge agent artifacts (handoff notes, artifact summaries, review notes). NOT exposed as a user-facing /caveman command.
Hackathon-native multiplayer collaboration mode -- brain-dump together, claim tasks across machines, flag decisions async. Drives the subcommands of…
DESIGN.md integration for Forge — ensures visual consistency across all UI tasks through standardized design specifications
Autonomous task implementation workflow — implement, test, review, commit for each task in the frontier