phased-loop
Skill2 starsChanged 7 days agoMITView on GitHub
Execute a phased plan from `.plans/{task}/`, checking each phase's part of the plan against the code before building it, with a full test run, commit and sync at the end of every phase. Use for multi-phase work where later phases depend on what earlier ones discover.
In this repository18 other files it gives its agents.
- approve-planSkill
- check-impactSkill
- context-packSkill
- design-forgeSkill
- deslopSkill
- diagnose-bugSkill
- falsifySkill
- forgeSkill
- gap-analysisSkill
- interrogateSkill
- make-fixtureSkill
- micro-loopSkill
- pick-tierSkill
- ship-planSkill
- simple-loopSkill
- taste-testSkill
- unslopSkill
- wait-whatSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Sync before the next phase: Run sync at the end of every phase.
- Very specific: line 63
Test: Run the full test suite; all tests pass.
- Distinctive: line 71
Follow Finishing in the rules file.
≈ “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
Phased Task Loop
A disciplined workflow for implementing multi-phase coding tasks. tasks.md tracks progress in real time; before each phase, a short code check finds where the plan is wrong about the code, so each phase builds from current facts.
Arguments: $ARGUMENTS — the plan (a .plans/<task>/ path or slug). Always run the whole plan.
Picked by pick-tier when the tier is L and the change touches a sensitive path or has more than 3 phases.
Read task-loop-rules.md in this skill's folder first. It holds the project commands, constraints, concepts, task-list discipline, and finishing steps all three task loops share. This file adds only what is specific to this loop.
Orchestrated mode: read ORCHESTRATED.md before step 1. It assigns each loop step to you or a subagent; the steps below still define what each must achieve. A subagent whose prompt says to run solo does every step itself instead, skipping ORCHESTRATED.md. Without that instruction, a subagent running this loop (like ship-plan's build helper) is the orchestrator.
Constraints (on top of the shared ones)
- Sync before the next phase. Run
syncat the end of every phase.
Resolve every judgement call yourself. The rules file says when one needs a divergence note.
Concepts (on top of the shared ones)
Code check — The file check-N.md: where this phase's part of the plan is wrong about the code, one line each, with what the plan assumes, what the code does (file:line), and what you'll do instead. Not a how-to: no code snippets, no file-by-file plan.
- Plan says the picker reloads on save; it reloads only on focus (src/picker.rs:212). Added a task to reload on save.The Loop
Repeat until every task is complete. Work per phase, top to bottom.
- Check status.
Readtasks.md. Every task[x]→ go to When you are done. Otherwise start at the next task. - Check the plan against the code (skip if this phase already has a
check-N.md). Re-read this phase inplan.md, then read the code it touches and the library source it calls into (the installed copy, not the docs). Write.plans/<task>/check-N.md, one line per place the plan is wrong or unclear. If the plan holds, write one line saying so and what you read. Then act on each line:- Fix
tasks.mdto match: add, cancel or move lines. - A fix that changes something the user approved → divergence note in
plan.md. - Something reading can't settle (how another program behaves, say) → a line in
risks.md.
- Fix
Implement, one task at a time:
a. Restate the current task in one sentence.
b. Do the work for that task. Run
checkafter each logical group of changes; if it fails, fix and re-run.c. Tick it in
tasks.md.d. Pick the next task under the current phase header and repeat from (a). When the phase has no
- [ ]left, go to 3.5.
3.5. Audit. Re-read tasks.md. Any task in this phase not [x] means you drifted: return to step 3 with it. The list must be clean before you test or commit.
- Test. Run the full
testsuite; all tests pass. Fix any failure before going on. - Commit and sync.
commitwith a Conventional Commit message,<type>(<scope>): <summary>, one per phase, with the phase named in the summary or body, thensync(resolve conflicts, re-test, commit the merge). Commit only green code. - Go to step 1.
When you are done
Follow Finishing in the rules file.
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.

