re0-loop
Run laps of build, real-surface drive, memo and a keep, iterate or restart call when a long agentic project must show progress in gate-cleared output. Progress counts as gate-cleared output, reusable parts and eliminated anti-patterns, never hours spent or features accumulated; e
Install
npx skills add https://github.com/LilMGenius/paperthin/tree/main/skills/coil/re0-loop
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install lilmgenius-paperthin@llmmart
git clone https://github.com/LilMGenius/paperthin.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole lilmgenius/paperthin collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Run a long project through repeated laps of the coil cycle so learning compounds and code is free to die.
Goal
Keep a long project moving through repeated turns so learning compounds and piling up code never passes for progress. Use it on long agentic projects where progress must be measured by quality-cleared output rather than time or feature count. Progress counts only as output that cleared its quality gates, parts a later lap reuses unchanged, and anti-patterns eliminated in later cycles; never hours, files, panels, or features.
Each lap runs this cycle, in the order of the Workflow below:
FRAME -> BUILD -> DRIVE -> RE0-MEMO -> HATE (kill the plan) -> VERSION -> DECIDE (keep, iterate or RE0-WORK) -> BUILD AGAIN
Workflow
Run the steps in this order.
- Frame. Write the thesis and the quality gates the lap will be judged against. From the second lap on, the gates include every gate in the plan the last memo opened, which a restart extends with its v0 plan, so each lesson's gate is judged in the lap after it was learned. A gate an earlier lap cleared stays and must hold again; it leaves the Frame only when that plan no longer carries it.
- Build. Build one complete vertical slice.
- Drive. Drive the slice through its real surface, picked by artifact: a browser for web apps, HTTP for API contracts, desktop UI automation for desktop apps, and the command line for command-line tools and data-shaped artifacts. Capture what the drive shows as the lap's evidence.
- Memo. Call the Skill tool with "re0-memo" to extract lessons, anti-patterns, and next-cycle gates from the lap. The memo lands where that skill's own contract puts it.
- Kill the plan. Attack the plan the memo wrote before anything is built from it. On a restart that means before the restart runs, since the restart takes its first gate from that plan and builds toward it in the same run. Use the project's adversarial review skill. When that skill is user-invoked only, as
hateis, the attack is the human's to fire: tell the human to run it, never call it yourself, and fold its result into the plan when it arrives. When the attack is the human's or the project has no such skill, make its first move yourself before going on: name the plan's load-bearing assumption and the cheapest experiment that would break it, run the experiment when it is cheap and reversible, and revise the plan when it breaks. The lap goes on from that plan without waiting for the human's attack. - Version. Put a version label only on the output that cleared its gates.
- Decide. From the gate results the drive showed and the standing the memo measured, state the next pass as one of three. Keep: the slice cleared its gates on the real surface, so it stays and the next lap frames the next slice on it. Iterate: the foundation holds but a gate failed, so the next lap rebuilds the failing part in place. re0-work: the records show the foundation is wrong, or that the code built so far misleads more than it proves, so the project restarts from v0; call the Skill tool with "re0-work", which decides what carries forward. When the records show both a cleared slice and a wrong foundation, restart wins; when the restart finds the foundation sound and declines, the pass iterates. When the choice, or the next move, is unclear, call the Skill tool with "nba", which reads cycle state and returns the single next action. The loop ends at keep when the memo measures the work at its objective and the lap cleared every gate its Frame held, or when the human ends it.
- Build again. The next lap builds again from what survived, starting at its own Frame. After a restart, the restart's first loop is that lap's Build. The restart carries the memo and its plan across as ledgers and never leaves them behind, and that Frame reads the plan where the restart reports the carried files landed. When the restart built its first loop, the lap goes from its Frame straight to Drive. When its handoff waited on the human, the restart's lap ends there; once the human has run it, the next lap writes the v0 plan and builds that loop as the restart's report names them, then drives it.
Rules
- Tests support; they are not the gate. Every lap needs a real-surface proof sized to the artifact.
- Do not widen scope before the core loop clears.
- When a project generates many outputs, surface variety is not structural variety: its Frame carries a gate on structural variety, and outputs that converge on one shape fail it.
- Preserve negative corpus so later cycles can prove an anti-pattern is gone.
- Let code die: a restart that keeps the right lessons counts as progress.
- A request the human makes while a lap runs goes onto the live plan the moment it arrives, beside earlier ones rather than over them, and leaves it only when it is done or the human drops it. A summary written when the context is compacted or handed to a new session lists every request still open, started or not, because a request held only in the conversation is lost with it.
- Outside truth is evidence the lap did not produce about itself: a real-surface drive, a user's reaction, data from outside the build. A lap with none stops; add such evidence before running another pass rather than looping on itself.
- Through the Skill tool, call only model-invoked skills: "re0-memo", "re0-work", "nba", and the project's adversarial skill when it is model-invoked. Hand the plan attack to the human when that skill is user-invoked; never call a user-invoked skill.
- When a skill the Workflow calls is not installed, or the host has no Skill tool, do its part yourself and record it in the memo as
manual: <skill>. For the memo: measure the standing from the lap's records, sort what earned reuse, and write the lessons and the next gates into a plan the project keeps out of what it ships. For a restart: keep the old line whole where later laps can read it, start v0 from what earned reuse with the memo and its plan carried across, build its first loop, and leave every commit and push to the human. For an unclear choice or next move: pick the one action that clears the gate blocking the lap.
Verification
Before closing each lap:
- From the second lap on, the Frame's gates include every gate the last plan carried, cleared ones included.
- The real surface was driven and evidence captured.
- The re0-memo names at least one lesson, anti-pattern, or gate that affects the next pass.
- The plan the memo wrote was attacked before anything was built from it, and an attack that is the human's to fire was handed to the human.
- Any version label sits only on output that cleared its gates.
- The keep / iterate / re0-work decision is explicit and follows from the drive's gate results and the memo's standing; after a restart, the next Frame read the plan the restart carried across.
Files (paperthin)
-
agents
-
openai.yaml 205 B
Loading…
-
-
SKILL.md 7.1 KB
--- name: re0-loop description: "Run laps of build, real-surface drive, memo and a keep, iterate or restart call when a long agentic project must show progress in gate-cleared output. Progress counts as gate-cleared output, reusable parts and eliminated anti-patterns, never hours spent or features accumulated; each lap keeps the learning and lets the code die." --- Run a long project through repeated laps of the coil cycle so learning compounds and code is free to die. ## Goal Keep a long project moving through repeated turns so learning compounds and piling up code never passes for progress. Use it on long agentic projects where progress must be measured by quality-cleared output rather than time or feature count. Progress counts only as output that cleared its quality gates, parts a later lap reuses unchanged, and anti-patterns eliminated in later cycles; never hours, files, panels, or features. Each lap runs this cycle, in the order of the Workflow below: ```text FRAME -> BUILD -> DRIVE -> RE0-MEMO -> HATE (kill the plan) -> VERSION -> DECIDE (keep, iterate or RE0-WORK) -> BUILD AGAIN ``` ## Workflow Run the steps in this order. 1. **Frame.** Write the thesis and the quality gates the lap will be judged against. From the second lap on, the gates include every gate in the plan the last memo opened, which a restart extends with its v0 plan, so each lesson's gate is judged in the lap after it was learned. A gate an earlier lap cleared stays and must hold again; it leaves the Frame only when that plan no longer carries it. 2. **Build.** Build one complete vertical slice. 3. **Drive.** Drive the slice through its real surface, picked by artifact: a browser for web apps, HTTP for API contracts, desktop UI automation for desktop apps, and the command line for command-line tools and data-shaped artifacts. Capture what the drive shows as the lap's evidence. 4. **Memo.** Call the Skill tool with "re0-memo" to extract lessons, anti-patterns, and next-cycle gates from the lap. The memo lands where that skill's own contract puts it. 5. **Kill the plan.** Attack the plan the memo wrote before anything is built from it. On a restart that means before the restart runs, since the restart takes its first gate from that plan and builds toward it in the same run. Use the project's adversarial review skill. When that skill is user-invoked only, as `hate` is, the attack is the human's to fire: tell the human to run it, never call it yourself, and fold its result into the plan when it arrives. When the attack is the human's or the project has no such skill, make its first move yourself before going on: name the plan's load-bearing assumption and the cheapest experiment that would break it, run the experiment when it is cheap and reversible, and revise the plan when it breaks. The lap goes on from that plan without waiting for the human's attack. 6. **Version.** Put a version label only on the output that cleared its gates. 7. **Decide.** From the gate results the drive showed and the standing the memo measured, state the next pass as one of three. Keep: the slice cleared its gates on the real surface, so it stays and the next lap frames the next slice on it. Iterate: the foundation holds but a gate failed, so the next lap rebuilds the failing part in place. re0-work: the records show the foundation is wrong, or that the code built so far misleads more than it proves, so the project restarts from v0; call the Skill tool with "re0-work", which decides what carries forward. When the records show both a cleared slice and a wrong foundation, restart wins; when the restart finds the foundation sound and declines, the pass iterates. When the choice, or the next move, is unclear, call the Skill tool with "nba", which reads cycle state and returns the single next action. The loop ends at keep when the memo measures the work at its objective and the lap cleared every gate its Frame held, or when the human ends it. 8. **Build again.** The next lap builds again from what survived, starting at its own Frame. After a restart, the restart's first loop is that lap's Build. The restart carries the memo and its plan across as ledgers and never leaves them behind, and that Frame reads the plan where the restart reports the carried files landed. When the restart built its first loop, the lap goes from its Frame straight to Drive. When its handoff waited on the human, the restart's lap ends there; once the human has run it, the next lap writes the v0 plan and builds that loop as the restart's report names them, then drives it. ## Rules - Tests support; they are not the gate. Every lap needs a real-surface proof sized to the artifact. - Do not widen scope before the core loop clears. - When a project generates many outputs, surface variety is not structural variety: its Frame carries a gate on structural variety, and outputs that converge on one shape fail it. - Preserve negative corpus so later cycles can prove an anti-pattern is gone. - Let code die: a restart that keeps the right lessons counts as progress. - A request the human makes while a lap runs goes onto the live plan the moment it arrives, beside earlier ones rather than over them, and leaves it only when it is done or the human drops it. A summary written when the context is compacted or handed to a new session lists every request still open, started or not, because a request held only in the conversation is lost with it. - Outside truth is evidence the lap did not produce about itself: a real-surface drive, a user's reaction, data from outside the build. A lap with none stops; add such evidence before running another pass rather than looping on itself. - Through the Skill tool, call only model-invoked skills: "re0-memo", "re0-work", "nba", and the project's adversarial skill when it is model-invoked. Hand the plan attack to the human when that skill is user-invoked; never call a user-invoked skill. - When a skill the Workflow calls is not installed, or the host has no Skill tool, do its part yourself and record it in the memo as `manual: <skill>`. For the memo: measure the standing from the lap's records, sort what earned reuse, and write the lessons and the next gates into a plan the project keeps out of what it ships. For a restart: keep the old line whole where later laps can read it, start v0 from what earned reuse with the memo and its plan carried across, build its first loop, and leave every commit and push to the human. For an unclear choice or next move: pick the one action that clears the gate blocking the lap. ## Verification Before closing each lap: 1. From the second lap on, the Frame's gates include every gate the last plan carried, cleared ones included. 2. The real surface was driven and evidence captured. 3. The re0-memo names at least one lesson, anti-pattern, or gate that affects the next pass. 4. The plan the memo wrote was attacked before anything was built from it, and an attack that is the human's to fire was handed to the human. 5. Any version label sits only on output that cleared its gates. 6. The keep / iterate / re0-work decision is explicit and follows from the drive's gate results and the memo's standing; after a restart, the next Frame read the plan the restart carried across.
Reviews (0)
No reviews yet.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.