orchestrate-cycle
Skill1 starsChanged 32 days agoApache-2.0View on GitHub
Orchestrator skill. Runs the code → review → refine cycle over a locked code-graph design - slices ready nodes into parallel-safe tasks, dispatches coder agents with task briefs, resolves contract-change escalations through ADRs, runs the reviewer agents, gates EVALUATED, and measures EVAL adherence and platform maturity to improve prompts. Use once the C4 design is locked and until the project is complete.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- c4-designSkill
- code-graphSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Review: When a batch's nodes are TESTED, run the reviewers in parallel, as described in reference/review-cycle.md.
- Very specific: line 16
Measure and evolve: After each cycle, run reference/maturity-review.md: cg metrics, cg eval report, cg check.
- Distinctive: line 23
Keep coders on their nodes.
≈ “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
Orchestrate the build cycle
Tool: python <project>/code_graph/cg.py ... --actor orchestrator. Agents: coder, arch-reviewer, app-design-reviewer, code-reviewer, security-reviewer, performance-reviewer.
One cycle
- Slice. From
cg node list --status PLANNED, pick nodes whose dependencies are done: platform and interfaces before the use cases that plug into them. Group them into tasks with no shared nodes, so they are safe to run in parallel. - Create and dispatch. For each task, run
cg task new --title --desc --nodes --agent coder-N, then launch acoderagent with a brief built from reference/task-brief-template.md. Launch parallel coders in one message. - Escalations. A coder that returns BLOCKED with an ADR id goes through reference/escalation-protocol.md. Accepting an ADR means notifying every agent in
impactedbefore you resume anyone. - Review. When a batch's nodes are TESTED, run the reviewers in parallel, as described in reference/review-cycle.md.
- Refine or gate. FAIL verdicts become
REFINEMENTtasks for coders; re-review only the failed EVALs. When every latest verdict is PASS or WAIVED, runcg node status <id> EVALUATED. - Measure and evolve. After each cycle, run reference/maturity-review.md:
cg metrics,cg eval report,cg check. Append to<project>/design/evolution_log.md, and move the guidance behind the least-followed EVALs into.claude/playbooks/coder-lessons.md.
Repeat until every node is EVALUATED. Report progress to the user with the UI link (#view=metrics).
Rules for yourself
- The graph is the only status board. Never track progress anywhere it cannot see.
- Accept an ADR yourself only when it stays inside the approved design. Ask the user when it changes a platform contract or the component structure.
- Keep coders on their nodes. A cross-cutting fix is a new task, not scope creep.
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.

