/cvg-plan-loop
Orchestrate a monitored planning loop where a planner drafts the plan and independent plan review with focused rechecks gates completion. Use when the user asks to create or revise a plan through supervised specialist sessions on Codex threads or Claude Code background agents.
Claude Code
$ npx -y skills add gomilesf/convergo --skill cvg-plan-loop --agent claude-code
Codex
$ npx skills add gomilesf/convergo --skill cvg-plan-loop -a codex -y
Cursor
$ npx skills add gomilesf/convergo --skill cvg-plan-loop -a cursor -y
Gemini CLI
$ npx skills add gomilesf/convergo --skill cvg-plan-loop -a gemini-cli -y
GitHub Copilot
$ npx skills add gomilesf/convergo --skill cvg-plan-loop -a github-copilot -y
OpenCode
$ npx skills add gomilesf/convergo --skill cvg-plan-loop -a opencode -y
Windsurf
$ npx skills add gomilesf/convergo --skill cvg-plan-loop -a windsurf -y
SKILL.md
cvg-plan-loop.SKILL.mdname: cvg-plan-loop
description: Orchestrate a monitored planning loop where a planner drafts the plan and independent plan review with focused rechecks gates completion. Use when the user asks to create or revise a plan through supervised specialist sessions on Codex threads or Claude Code background agents.
argument-hint: "[planning goal, requirements path, behavior contract path, or planning prompt]"
Plan Loop
Use this skill for plan-only cvg-multi-session orchestration.
Read `references/cvg-multi-session-protocol.md` once when entering the loop, then apply the protocol gates from `cvg-multi-session`:
- transport binding gate,
- real specialist session gate,
- orchestrator callback transport gate,
- waiting handoff gate,
- cvg-plan-review-feedback gate,
- independent-review exit gate.
Do not implement product code in this workflow.
Phase 0: Orchestrator Setup
Record:
- current orchestrator session id (Codex thread id; on Claude Code the harness tracks it),
- worktree or repo path,
- current `git rev-parse HEAD` if available,
- dirty worktree state,
- source prompt or input document,
- expected plan path or target docs directory when known,
- the loop ledger path, created per the Gate 5 loop-ledger rule.
Classify dirty files:
- plan-owned files,
- unrelated user artifacts,
- files the planner must not touch.
Phase 1: Planner Handoff
Spawn the planner as a real specialist session (Gate 0 spawn operation) and record the id returned by the tool. Verify it per Gate 1; if it is not verifiable, do not continue.
Planner prompt must include:
- role: planner,
- callback destination per Gate 2,
- required planning skill, such as `cvg-plan` or another user-specified plan skill,
- source prompt, requirements path, or exact user goal,
- repo path and starting state,
- dirty-state warning when present,
- plan-only boundary,
- output path rules,
- task-specific external side-effect boundary,
- callback transport block,
- callback template.
Do not restate the planning skill's process or paste broad repo rules, likely files, or local policy summaries unless they are the user's source authority.
Planner callback template:
I am the planner. My specialist id is <planner-id>. This planning round is complete. Plan path: <absolute path>. Key status: <brief>. Please decide the next step.
Complete the waiting handoff per Gate 3 and end the active turn.
Phase 2: Fresh Plan Review
After the planner callback is visible, spawn a new fresh reviewer specialist session and verify its id per Gate 1.
Reviewer prompt must include:
- original user outcome, non-goals and authorized changes,
- required independent reviewer signatures, if the user specified any,
- role: fresh plan reviewer,
- the line `Do not consult project memory, prior sessions, rollout summaries, or external history. The repository's own git history (log, blame, commit messages) is repo evidence, not external history.` before the required skill line,
- callback destination per Gate 2,
- required cvg-plan-review skill, such as `cvg-plan-review`,
- original planning goal or source prompt,
- plan path,
- repo path,
- read-only boundary,
- blocker-only reporting rule,
- task-specific external side-effect boundary,
- callback transport block,
- callback template.
Do not paste the full planning prompt or all context documents when the plan links its authorities and the reviewer can read the worktree.
Reviewer callback template:
I am the fresh reviewer. My specialist id is <reviewer-id>. This first-pass full review is complete. Verdict: <clean / blocking findings>. Findings: <none or numbered concise list>. Please decide the next step.
Complete the waiting handoff per Gate 3 and end the active turn while waiting.
Blocking plan findings include:
- missing required surface,
- incomplete behavior contract coverage,
- wrong ownership boundary,
- unclear external or API contract,
- missing migration, rollback, deletion, privacy, or safety lifecycle,
- insufficient test or verification gate,
- plan criterion that cannot be implemented as written,
- unsafe side-effect assumption.
Phase 3: Return Review Feedback to Planner
If the reviewer reports blockers, send the reviewer feedback to the same verified planner session with the continue operation (Gate 0).
Adjudicate per Gate 4 before routing; retain original findings and reasons in the loop ledger.
The feedback prompt must include:
- callback destination per Gate 2,
- reviewer specialist id,
- required feedback skill: `cvg-plan-review-feedback`,
- original planning goal and source prompt,
- current plan path and related contracts,
- exact reviewer findings and evidence-based adjudications under a
`Plan Review Feedback Input` section,
- task-specific external side-effect boundary,
- callback transport block,
- callback template.
Do not restate the feedback skill's intake, classification, or revision rules.
Complete the waiting handoff per Gate 3 and end the active turn.
Phase 4: Focused Re-Review
After the planner feedback callback is visible and a reviewable plan revision exists, send a focused re-review request to the same verified reviewer session with the continue operation.
Focused scope:
- verify old blockers were addressed,
- check directly related contradictions introduced by the revision,
- do not redo broad review unless the plan's core design changed.
The focused re-review prompt must include the callback transport block and exact callback template.
Complete the waiting handoff per Gate 3 and end the active turn.
If the planner reports a contract decision, escalation, or clarification need, route that callback to the appropriate reviewer or user decision before requesting re-review.
If same reviewer still finds blockers, repeat Phase 3.
If the same reviewer passes, evaluate completion in Phase 5.
Phase 5: Review Exit
Apply Gate 5 for completion, new full-review conditions, adjudications and the original repai
Read more
name: cvg-plan-loop description: Orchestrate a monitored planning loop where a planner drafts the plan and independent plan review with focused rechecks gates completion. Use when the user asks to create or revise a plan through supervised specialist sessions on Codex threads or Claude Code background agents. argument-hint: "[planning goal, requirements path, behavior contract path, or planning prompt]"
Plan Loop
Use this skill for plan-only cvg-multi-session orchestration.
Read `references/cvg-multi-session-protocol.md` once when entering the loop, then apply the protocol gates from `cvg-multi-session`:
- transport binding gate,
- real specialist session gate,
- orchestrator callback transport gate,
- waiting handoff gate,
- cvg-plan-review-feedback gate,
- independent-review exit gate.
Do not implement product code in this workflow.
Phase 0: Orchestrator Setup
Record:
- current orchestrator session id (Codex thread id; on Claude Code the harness tracks it),
- worktree or repo path,
- current `git rev-parse HEAD` if available,
- dirty worktree state,
- source prompt or input document,
- expected plan path or target docs directory when known,
- the loop ledger path, created per the Gate 5 loop-ledger rule.
Classify dirty files:
- plan-owned files,
- unrelated user artifacts,
- files the planner must not touch.
Phase 1: Planner Handoff
Spawn the planner as a real specialist session (Gate 0 spawn operation) and record the id returned by the tool. Verify it per Gate 1; if it is not verifiable, do not continue.
Planner prompt must include:
- role: planner,
- callback destination per Gate 2,
- required planning skill, such as `cvg-plan` or another user-specified plan skill,
- source prompt, requirements path, or exact user goal,
- repo path and starting state,
- dirty-state warning when present,
- plan-only boundary,
- output path rules,
- task-specific external side-effect boundary,
- callback transport block,
- callback template.
Do not restate the planning skill's process or paste broad repo rules, likely files, or local policy summaries unless they are the user's source authority.
Planner callback template:
I am the planner. My specialist id is <planner-id>. This planning round is complete. Plan path: <absolute path>. Key status: <brief>. Please decide the next step.
Complete the waiting handoff per Gate 3 and end the active turn.
Phase 2: Fresh Plan Review
After the planner callback is visible, spawn a new fresh reviewer specialist session and verify its id per Gate 1.
Reviewer prompt must include:
- original user outcome, non-goals and authorized changes,
- required independent reviewer signatures, if the user specified any,
- role: fresh plan reviewer,
- the line `Do not consult project memory, prior sessions, rollout summaries, or external history. The repository's own git history (log, blame, commit messages) is repo evidence, not external history.` before the required skill line,
- callback destination per Gate 2,
- required cvg-plan-review skill, such as `cvg-plan-review`,
- original planning goal or source prompt,
- plan path,
- repo path,
- read-only boundary,
- blocker-only reporting rule,
- task-specific external side-effect boundary,
- callback transport block,
- callback template.
Do not paste the full planning prompt or all context documents when the plan links its authorities and the reviewer can read the worktree.
Reviewer callback template:
I am the fresh reviewer. My specialist id is <reviewer-id>. This first-pass full review is complete. Verdict: <clean / blocking findings>. Findings: <none or numbered concise list>. Please decide the next step.
Complete the waiting handoff per Gate 3 and end the active turn while waiting.
Blocking plan findings include:
- missing required surface,
- incomplete behavior contract coverage,
- wrong ownership boundary,
- unclear external or API contract,
- missing migration, rollback, deletion, privacy, or safety lifecycle,
- insufficient test or verification gate,
- plan criterion that cannot be implemented as written,
- unsafe side-effect assumption.
Phase 3: Return Review Feedback to Planner
If the reviewer reports blockers, send the reviewer feedback to the same verified planner session with the continue operation (Gate 0).
Adjudicate per Gate 4 before routing; retain original findings and reasons in the loop ledger.
The feedback prompt must include:
- callback destination per Gate 2,
- reviewer specialist id,
- required feedback skill: `cvg-plan-review-feedback`,
- original planning goal and source prompt,
- current plan path and related contracts,
- exact reviewer findings and evidence-based adjudications under a
`Plan Review Feedback Input` section,
- task-specific external side-effect boundary,
- callback transport block,
- callback template.
Do not restate the feedback skill's intake, classification, or revision rules.
Complete the waiting handoff per Gate 3 and end the active turn.
Phase 4: Focused Re-Review
After the planner feedback callback is visible and a reviewable plan revision exists, send a focused re-review request to the same verified reviewer session with the continue operation.
Focused scope:
- verify old blockers were addressed,
- check directly related contradictions introduced by the revision,
- do not redo broad review unless the plan's core design changed.
The focused re-review prompt must include the callback transport block and exact callback template.
Complete the waiting handoff per Gate 3 and end the active turn.
If the planner reports a contract decision, escalation, or clarification need, route that callback to the appropriate reviewer or user decision before requesting re-review.
If same reviewer still finds blockers, repeat Phase 3.
If the same reviewer passes, evaluate completion in Phase 5.
Phase 5: Review Exit
Apply Gate 5 for completion, new full-review conditions, adjudications and the original repai
Plan → review → build loops for coding agents — that actually terminate. Agent-written code needs review, and agent review needs a loop: find issues, fix them, review again.
Other skills on convergo.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about cvg-plan-loop.
- Which coding agents can use cvg-plan-loop?
- cvg-plan-loop installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

