workflow-revision
Skill64 starsChanged 5 months agoMITView on GitHub
Iterate on implementation fixes surfaced by review until all claims are verified. Stage 6 of the development workflow.
In this repository102 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- assumptionsSkill
- capture-learningSkill
- Codex-opus-4-6-promptingSkill
- Codex-promptSkill
- mcp-code-modeSkill
- deploy-team-hubSkill
- diagramSkill
- distillSkill
- effect-tsSkill
- escalateSkill
- evalSkill
- experimentSkill
- hddSkill
- hub-auditSkill
- hub-collabSkill
- implementSkill
- knowledgeSkill
- peer-notebook-delivery-guardSkill
- research-taskSkill
- session-reviewSkill
- source-command-hdd-decideSkill
- source-command-hdd-hddSkill
- source-command-hdd-researchSkill
- source-command-hdd-stage-adrSkill
- source-command-hdd-validateSkill
- statusSkill
- supabaseSkill
- synthesizeSkill
- tasteSkill
- teamSkill
- test-suiteSkill
- theseus-protocolSkill
- thoughtbox:debugSkill
- thoughtbox:decisionSkill
- thoughtbox:evolutionSkill
- thoughtbox:knowledge-querySkill
- thoughtbox:onboardSkill
- thoughtbox:refactorSkill
- thoughtbox:researchSkill
- thoughtbox:session-reviewSkill
- thoughtbox-teamSkill
- ulc-loopSkill
- ulysses-protocolSkill
- workflow-brainstormingSkill
- workflow-ideationSkill
- workflow-reflectionSkill
- workflows-compoundSkill
- workflowSkill
- workflows-planSkill
- workflows-reviewSkill
- workflows-workSkill
- workflow-tournamentSkill
- assumptionsSkill
- capture-learningSkill
- claude-opus-4-6-promptingSkill
- claude-promptSkill
- mcp-code-modeSkill
- deploy-team-hubSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 17 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Read the review findings and classify each into:
- Distinctive: line 56
Wait for user decision before proceeding
- Distinctive: line 60
If any finding reveals that the spec was wrong (not the implementation), update the spec:
- Distinctive: line 62
If the spec assumption was based on incomplete knowledge of the codebase: update the spec to match reality.
- Distinctive: line 63
If the spec's intent was correct but the approach was wrong: update the spec with the revised approach and note what changed.
- Distinctive: line 64
If the ADR's reasoning is affected: escalate to user.
- Distinctive: line 70
After all fixes are applied:
- Very specific: line 77
Update state: set stages.revision.status to "completed", currentStage to "compound"
- Very specific: line 82
Check iteration count against maxIterations (default: 3)
- Distinctive: line 83
If under max: loop back to Step 1 with the new findings
- Distinctive: line 84
If at max: proceed to Step 5 (Escalation)
- Distinctive: line 88
If 3 revision iterations have not resolved all findings:
- Distinctive: line 110
Wait for user decision. Update state accordingly.
- Distinctive: line 134
Do NOT commit during revision — commits happen only after review validates the final state
- Distinctive: line 135
If a fix introduces new issues, those count against the iteration budget
- Distinctive: line 137
Always persist sub-agent summaries to disk before proceeding
- Distinctive: line 141
Do NOT skip review after making fixes — the whole point is verification
- Very specific: line 142
Do NOT increase maxIterations beyond 3 without user approval
- Distinctive: line 143
Do NOT fix findings by deleting the test or weakening the claim
- Distinctive: line 144
Do NOT modify the ADR without user approval (specs are fair game, ADRs are not)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Execute revision based on review findings: $ARGUMENTS
Purpose
You are executing Stage 6 (Revision) of the development workflow. Review found issues with the implementation. Your job is to dispatch sub-agents to fix them, then re-run review until it passes — or escalate after 3 iterations.
Pre-Conditions
Before starting, verify:
.workflow/state.jsonexists andcurrentStageis"revision"- Review findings exist (either passed as argument or in
stages.review.artifacts.findings) - The working tree has uncommitted changes from implementation (since commits happen post-review)
Process
Step 1: Classify Review Findings
Read the review findings and classify each into:
| Category | Action | Example |
| Claim failure | Re-dispatch sub-agent for the specific claim | "Function X does not handle case Y" |
| Test gap | Add missing test coverage | "No test for edge case Z" |
| Spec divergence | Fix code OR update spec (with justification) | "Implementation differs from spec section 3.2" |
| ADR conflict | Flag for user decision | "This contradicts accepted ADR-005" |
| Style/quality | Fix inline (no sub-agent needed) | "Missing error handling on line 42" |
Step 2: Dispatch Fixes
For each finding that requires a sub-agent:
- Dispatch a sub-agent with:
- The specific finding to address
- The relevant spec section
- The file(s) to modify
- Instructions to return the structured summary format (from the conductor skill)
- Persist the returned summary to disk immediately
For findings that can be fixed inline (style/quality):
- Make the fix directly
- Note it in the revision log
For ADR conflicts:
- Present to the user with the four ADR reconciliation dispositions:
- STILL VALID — false positive, ADR reasoning holds
- NEEDS AMENDMENT — core decision correct, context needs updating
- SUPERSEDED — another ADR has replaced this one
- INVALIDATED — reasoning no longer holds, no replacement
- Wait for user decision before proceeding
Step 3: Handle Spec Updates
If any finding reveals that the spec was wrong (not the implementation), update the spec:
- If the spec assumption was based on incomplete knowledge of the codebase: update the spec to match reality. This is expected and not a failure.
- If the spec's intent was correct but the approach was wrong: update the spec with the revised approach and note what changed.
- If the ADR's reasoning is affected: escalate to user. Do not silently update the ADR.
Spec updates go in the same commit as the code fix.
Step 4: Re-Run Review
After all fixes are applied:
- Increment
stages.revision.iterationsin the state file - Dispatch
/workflows-reviewon the fixed code - Evaluate the review results:
If review passes (all claims verified, no blocking findings):
- Update state: set
stages.revision.statusto"completed",currentStageto"compound" - Hand off to the conductor
If review still has findings:
- Check iteration count against
maxIterations(default: 3) - If under max: loop back to Step 1 with the new findings
- If at max: proceed to Step 5 (Escalation)
Step 5: Escalation (Max Iterations Reached)
If 3 revision iterations have not resolved all findings:
REVISION ESCALATION
====================
Iterations completed: 3/3
Remaining findings: N
Unresolved:
1. [finding]: Attempted [approach], result: [what happened]
2. [finding]: Attempted [approach], result: [what happened]
Options:
A. Accept current state (acknowledge known gaps, proceed to Compound)
B. Re-enter at Planning stage (re-plan the approach)
C. Re-enter at Dev-Docs stage (revise spec/ADR)
D. Abandon workflow (delete branch)
Recommendation: [A/B/C/D] because [reason]Wait for user decision. Update state accordingly.
State Updates
Throughout this stage, keep the state file current:
{
"stages": {
"revision": {
"status": "in_progress",
"iterations": 1,
"maxIterations": 3,
"findings": [
{ "id": 1, "category": "claim_failure", "description": "...", "status": "fixed|open|escalated" }
]
}
}
}Operational Rules
- Each fix gets its own sub-agent (1 fix = 1 commit after review passes)
- Do NOT commit during revision — commits happen only after review validates the final state
- If a fix introduces new issues, those count against the iteration budget
- Inline style fixes do not consume an iteration
- Always persist sub-agent summaries to disk before proceeding
Anti-Patterns
- Do NOT skip review after making fixes — the whole point is verification
- Do NOT increase
maxIterationsbeyond 3 without user approval - Do NOT fix findings by deleting the test or weakening the claim
- Do NOT modify the ADR without user approval (specs are fair game, ADRs are not)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

