Install
openclaw skills install @modeyapu/continuous-dev-loopGoverned loop with roadmap, budget, ledger, and understanding debt.
openclaw skills install @modeyapu/continuous-dev-loopUse this skill when a code project must advance in repeated, bounded rounds and each round must leave a machine-readable continuation contract.
This skill is not for broad brainstorming. It is for turning an established development direction into small verified slices that can continue without chat memory.
Use this skill only when all of these are true:
Do not use this skill for open-ended product strategy, initial milestone invention, or unbounded exploration. If the long-term direction is unclear, establish or update roadmap state first, then run the loop.
This skill has three layers:
core: mandatory one-slice protocol and footer contractprecision: optional profiles, tuning, review cadence, metrics, and advisory scoringgovernance: optional long-horizon control for roadmap, budget, observation ledger, understanding debt, and review gatesprecision and governance MUST NOT replace or weaken core.
If optional layers are unavailable, the core layer MUST still run correctly.
Long-term planning and short-term loops live at different levels.
Vision: stable long-term direction; human-owned by default.Roadmap: 4-8 week themes with exit conditions; loop may suggest changes but should not silently rewrite it.Loop: one verified slice per round.Ledger: durable facts about what happened.Review: checkpoint deciding whether the loop should keep following the roadmap.Recommended durable files when a repo lacks equivalents:
VISION.md: long-term direction and non-goals.ROADMAP.md: current phases, exit criteria, and review cadence.LOOP_STATE.json: current phase, current slice, budget, status.round-ledger.jsonl: append-only round observations.Do not create competing files when the repository already defines equivalent state.
One round equals one slice.
A slice is valid only when all of these are true:
NEXT_SLICE when continuation is healthy.Long-running loops should shrink slice size as autonomy increases.
Every round MUST satisfy all of these rules:
Automatic continuation MUST NOT rely on chat memory.
When choosing what to do next, use this order:
NEXT_SLICE.If these sources conflict, stop and report the conflict. Do not invent a merged priority silently.
When governance is enabled, evaluate these before allowing continuation:
budget: token, wall-time, cost, round, or retry limits.understanding: whether the coordinator or human can still explain the changed area and mainline.observability: whether the round leaves enough evidence to audit or replay the decision.churn: whether repeated edits, failed proofs, or scope drift indicate the slice is too broad.review cadence: whether a human, reviewer agent, CI gate, or formal gate is due before continuing.roadmap fit: whether the next slice still advances the current phase.Governance advice is advisory unless repo-local runtime policy explicitly makes a gate enforcing.
Budget is an engineering signal.
If token use, elapsed time, tool retries, or patch churn rises unexpectedly:
A loop MUST NOT keep expanding context to compensate for unclear scope.
A successful round may still increase risk if it adds code the coordinator or human cannot explain.
Track understanding debt when governance is enabled:
none: changed behavior and affected files are explainable.low: minor unfamiliar code touched, bounded follow-up available.medium: important code path changed without enough review; review gate should be due.high: mainline understanding is no longer trustworthy; stop or require human review.Code that passes tests but increases understanding debt is not automatically healthy continuation.
A governed loop SHOULD append a structured round event to a repo-native or supervisor-owned ledger.
A useful ledger records trace id, input source, selected slice, context evidence, files touched, commands, verification result, budget, churn or retry signals, continuation decision, and next slice or stop reason.
The ledger is factual evidence. It is not a replacement for the required footer.
Multi-agent execution does not relax the single-slice rule.
Allowed roles:
coordinatorimplementerverifierinvestigatorreviewerHard rules:
Read detailed role and merge rules in references/multi-agent-governance.md.
Use exactly one execution mode for the integrated round:
single-agentmulti-agent-read-heavymulti-agent-split-writeIf governance friction increases, downgrade execution mode before retrying the same shape.
A repository MAY declare one or more of these policy labels:
strict-cleanwarning-dirtycommit-requiredpush-requiredlocal-proof-heavyhuman-review-requiredbudget-cappedledger-requiredProfile semantics are defined in references/repo-policy-profiles.md. If the repository already defines equivalent policy, use it as source of truth.
Stop automatic continuation when any of these are true:
high.Stop governance is defined in references/stop-governance.md.
End every round with these top-level sections in this exact order:
Done
Verified
Risks
Next
noneIf helper agents were used, add:
Agents
If governance was used, add:
Governance
After the human summary, emit the exact core footer defined in references/footer-contract.md.
The core footer is mandatory.
Optional precision/governance fields MAY follow the core footer, but MUST NOT change the meaning of core fields.
Suggested governance footer fields:
TRACE_ID: <id-or-none>
INPUT_SOURCE: <user|cron|github_issue|next_slice|monitor|manual|none>
CONTEXT_BOM: <path-or-none>
BUDGET_USED: <tokens/time/cost-or-none>
BUDGET_ADVICE: <continue|shrink|pause_review|stop|none>
UNDERSTANDING_DEBT: <none|low|medium|high|unknown>
CHURN_LEVEL: <none|low|medium|high|unknown>
REVIEW_GATE: <none|human|agent|ci|formal>
OBSERVABILITY_LEDGER: <path-or-none>
POLICY_DECISION: <continue|continue_with_warning|stop|none>
ROADMAP_PHASE: <phase-or-none>
The precision layer is optional.
It MAY add project-specific defaults, runtime tuning, advisory review scheduling, metrics, advisory scoring, and bounded hook execution.
The precision layer MUST NOT replace the footer contract, replace core stop rules, silently change continuation priority, imply automatic push or deploy, stop a loop by itself, or apply unscoped heuristics.
Read precision behavior in references/precision-overview.md.
The governance layer is optional.
It MAY add roadmap state, budget policy, observation ledger, understanding debt tracking, churn tracking, review checkpoints, and deterministic gates beyond the minimum proof.
The governance layer MUST NOT auto-rewrite long-term vision, treat continuation as default, expand authorization boundaries, merge/push/deploy/change product direction without explicit permission, mix raw ledger facts with distilled memory, or replace the core footer.
A loop MUST write durable state into repo-native or supervisor-owned files.
Approved continuity surfaces include tasklists, progress logs, loop state docs, LOOP_STATE.json, round-ledger.jsonl, .claude-orchestrator/current-next.txt, .claude-orchestrator/current-round.json, deterministic verification scripts, and round ledgers.
If the repository already has a clear continuity surface, reuse it. Do not create competing state files.
If precision or governance is enabled, additional state MAY be written through templates.
The core layer does not define scoring formulas, coverage heuristics, dashboards, automatic routing by score, automatic push behavior, repository-specific architecture heuristics, or long-term product direction as automatic loop output.
Those concerns require explicit precision support, governance support, repo-specific policy, or human direction.
Do not do any of these:
NEXT_SLICE is empty