/loop-review-fold
Drive one bounded context-clean review/fold loop for an open feature or fix PR: reuse a current receipt, review immutable HEAD, batch compatible fixes, and stop on pass, decision, blocker, no progress, or budget exhaustion.
$ npx -y skills add gtrabanco/agentic-workflow --skill loop-review-fold --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/loop-review-fold
Context preview
The summary Claude sees to decide when to auto-load this skill.
Drive one bounded context-clean review/fold loop for an open feature or fix PR: reuse a current receipt, review immutable HEAD, batch compatible fixes, and stop on pass, decision, blocker, no progress, or budget exhaustion.
SKILL.md
loop-review-fold.SKILL.mdname: loop-review-fold
user-invocable: true
version: 1.0.1
argument-hint: <NN> | --fix <n> [--max-cycles N] [--adversarial N]
author: "Gabriel Trabanco <gtrabanco@users.noreply.github.com>"
license: MIT
description: >
Drive one bounded context-clean review/fold loop for an open feature or fix
PR: reuse a current receipt, review immutable HEAD, batch compatible fixes,
and stop on pass, decision, blocker, no progress, or budget exhaustion.
Loop Review Fold
Remove the human relay from `review-change → fold-findings → review-change` without merging, creating issues, weakening checks, or letting the reviewer edit its candidate.
Turn contract
✓ Unit, PR, remote HEAD, and frozen acceptance blob were verified before review
✓ A current exact-SHA REVIEW-PASS was reused; otherwise every review ran in a fresh read-only context
✓ Every correction used fold-findings' frozen classification and atomic batches; every commit was pushed
✓ No unchanged HEAD was reviewed twice; repeated evidence stopped NO-PROGRESS
✓ At most --max-cycles correction cycles ran (default 2); no hidden retry budget
✓ No issue or merge command ran; independent work remained proposals
✓ One terminal state and its evidence were printed; closing → Next: block was last
Any unchecked box means the turn is not done.
Input
- `loop-review-fold <NN>` — feature unit and its open PR.
- `loop-review-fold --fix <n>` — fix unit whose primary issue is `<n>`.
- `--max-cycles N` — positive correction budget; default `2`. A review does not
consume a cycle; each mutating fold pass does.
- `--adversarial N` — forwards the final-review mode to `review-change`.
Invalid/missing unit, no open PR, dirty/unpushed branch, or non-positive budget stops before review with the exact evidence and recovery command.
Progressive loading
Read exactly, in order:
1. [loop policy and terminal states](references/LOOP_POLICY.md) 2. [review/fold process](references/LOOP_PROCESS.md) 3. [portability and model routing](references/PORTABILITY.md) only when a named fresh-context/tier primitive is unavailable.
Consume the internal [verification contract](<../verification-contract/SKILL.md>). Compose `review-change` and `fold-findings`; never copy their finder, classification, ledger, or correction checklists into this skill.
Portability (agents other than Claude Code)
- Without a slash-command menu, open this `SKILL.md` in a fresh conversation and
follow it literally.
- Without native fresh contexts, subagents, or tier controls, use the
`PORTABILITY.md` fallbacks; never claim a context-clean review after the same context authored a correction.
- Without `/loop`, re-invoke this skill manually and follow the terminal
`→ Next:` block. Keep the same remote-HEAD, receipt, finding, and cycle counters.
Relationship to other skills
- Starts after `execute-phase` opens a PR.
- `review-change` owns immutable-candidate findings and the exact-SHA receipt.
- `fold-findings` owns all mutation and per-finding ledger transitions.
- `audit-pr` is the next gate only after terminal `PASS`.
- `ship-roadmap` may use this as its REVIEW stage; it does not change merge
authority (`--fullauto` AUDIT wrapper only).
Done when
- One terminal state is reached with HEAD/receipt/findings/cycle evidence.
- PASS has a current exact-SHA review receipt and zero open fix-now rows.
- Every non-PASS state names a deterministic resume or decision path.
→ Next: (terminal-dependent; use LOOP_POLICY.md's exact block)
Read more
name: loop-review-fold user-invocable: true version: 1.0.1 argument-hint: <NN> | --fix <n> [--max-cycles N] [--adversarial N] author: "Gabriel Trabanco <gtrabanco@users.noreply.github.com>" license: MIT description: > Drive one bounded context-clean review/fold loop for an open feature or fix PR: reuse a current receipt, review immutable HEAD, batch compatible fixes, and stop on pass, decision, blocker, no progress, or budget exhaustion.
Loop Review Fold
Remove the human relay from `review-change → fold-findings → review-change` without merging, creating issues, weakening checks, or letting the reviewer edit its candidate.
Turn contract
✓ Unit, PR, remote HEAD, and frozen acceptance blob were verified before review ✓ A current exact-SHA REVIEW-PASS was reused; otherwise every review ran in a fresh read-only context ✓ Every correction used fold-findings' frozen classification and atomic batches; every commit was pushed ✓ No unchanged HEAD was reviewed twice; repeated evidence stopped NO-PROGRESS ✓ At most --max-cycles correction cycles ran (default 2); no hidden retry budget ✓ No issue or merge command ran; independent work remained proposals ✓ One terminal state and its evidence were printed; closing → Next: block was last
Any unchecked box means the turn is not done.
Input
- `loop-review-fold <NN>` — feature unit and its open PR.
- `loop-review-fold --fix <n>` — fix unit whose primary issue is `<n>`.
- `--max-cycles N` — positive correction budget; default `2`. A review does not
consume a cycle; each mutating fold pass does.
- `--adversarial N` — forwards the final-review mode to `review-change`.
Invalid/missing unit, no open PR, dirty/unpushed branch, or non-positive budget stops before review with the exact evidence and recovery command.
Progressive loading
Read exactly, in order:
1. [loop policy and terminal states](references/LOOP_POLICY.md) 2. [review/fold process](references/LOOP_PROCESS.md) 3. [portability and model routing](references/PORTABILITY.md) only when a named fresh-context/tier primitive is unavailable.
Consume the internal [verification contract](<../verification-contract/SKILL.md>). Compose `review-change` and `fold-findings`; never copy their finder, classification, ledger, or correction checklists into this skill.
Portability (agents other than Claude Code)
- Without a slash-command menu, open this `SKILL.md` in a fresh conversation and
follow it literally.
- Without native fresh contexts, subagents, or tier controls, use the
`PORTABILITY.md` fallbacks; never claim a context-clean review after the same context authored a correction.
- Without `/loop`, re-invoke this skill manually and follow the terminal
`→ Next:` block. Keep the same remote-HEAD, receipt, finding, and cycle counters.
Relationship to other skills
- Starts after `execute-phase` opens a PR.
- `review-change` owns immutable-candidate findings and the exact-SHA receipt.
- `fold-findings` owns all mutation and per-finding ledger transitions.
- `audit-pr` is the next gate only after terminal `PASS`.
- `ship-roadmap` may use this as its REVIEW stage; it does not change merge
authority (`--fullauto` AUDIT wrapper only).
Done when
- One terminal state is reached with HEAD/receipt/findings/cycle evidence.
- PASS has a current exact-SHA review receipt and zero open fix-now rows.
- Every non-PASS state names a deterministic resume or decision path.
→ Next: (terminal-dependent; use LOOP_POLICY.md's exact block)
🇪🇸 Versión en español A reusable set of agent skills that run a disciplined, doc-driven workflow for building software with agents — from idea/issue to a reviewed, classified, merge-ready change.
Repo: gtrabanco/agentic-workflow
Other skills on agentic-workflow.
- /audit-docs
Audit cross-document coherence: docs ↔ roadmap ↔ code ↔ fix index ↔ issues. Finds drift — features in docs/ not in the roadmap (or vice versa), fix-index entries already merged/closed, broken documentation-map links, dependency cycles, artifacts in the wrong language,
Open skill - /audit-pr
Audit a whole PR against the delivery contract and return MERGE-READY or evidenced blockers with the full URL. Consumes the current review-change REVIEW-PASS receipt instead of re-running review axes; posts a SHA-bound ready comment; never edits or merges. Triggers: "audit-pr",
Open skill - /bump-skill
Internal agentic-workflow maintenance: after SKILL.md edits, bump semver, lint authoring rules, and synchronize changelogs, READMEs, routing metadata, and migrations. Triggers: "bump the skill", "update the changelog", "version bump".
Open skill - /design-feature
Turn a raw idea or existing feature into a designed product SPEC by completing entity, integration, role, and expectation closure. Upserts never destroy recorded decisions. Triggers: "design-feature", "design this feature", "define product scope".
Open skill - /discover-repository-state
Discover repository evidence and write a frozen Normalized Repository State. Produces verified repository evidence and keeps facts, decisions, planned work, documentation, and inference separate. It does not make recommendations or infer implementation from documentation.
Open skill - /execute-phase
Implement all remaining phases of a planned feature/fix by default, or one explicit P<n>, with frozen acceptance, phase-local gates, commits, recovery, and final PR close-out. Use --fix for fix SPECs; --force is user-only.
Open skill

