Skip to content
Development
Skill

/iterate-plan

Revises a plan written by create-plan from its review comments or new instructions: rewrites the plan body, leaves each comment intact and bumps the revision. Use when a plan file got feedback or its scope changed; never to start a new plan.

BOOST
From plugin
orchestkit
299122 skills36 agents
Install
$ npx -y skills add yonatangross/orchestkit --skill iterate-plan --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/iterate-plan

Context preview

The summary Claude sees to decide when to auto-load this skill.

Revises a plan written by create-plan from its review comments or new instructions: rewrites the plan body, leaves each comment intact and bumps the revision. Use when a plan file got feedback or its scope changed; never to start a new plan.

SKILL.md

iterate-plan.SKILL.md
name: iterate-plan
description: "Revises a plan written by create-plan from its review comments or new instructions: rewrites the plan body, leaves each comment intact and bumps the revision. Use when a plan file got feedback or its scope changed; never to start a new plan."
argument-hint: "<plan file> [instructions]"
user-invocable: true
allowed-tools: "Bash Read Write Grep Glob"
compatibility: "Claude Code 2.1.277+. Node 22+."
metadata:
  version: "1.0.0"
  author: "OrchestKit"
  complexity: "medium"
  tags: "planning, artifacts, review, iteration, workflow"

iterate-plan

Revise one plan file. The body is rewritten; the comment block is kept byte for byte, because the review record must outlive every revision. Layout: the create-plan skill's `references/artifact-layout.md`.

Steps

1. **Read the plan in full**, then the rest of its task directory in NN order (research, earlier plans). List the open comments:

   node "${CLAUDE_SKILL_DIR}/scripts/artifact.mjs" list --file <plan> --open

2. **Check each comment against the code before acting on it.** Open the files it names. A comment can be wrong; if so, say so in a reply instead of changing the plan. 3. **Write the revised body** to a scratch file: start from the current body (everything between the front matter and `<!-- ork:comments -->`), apply the changes, keep the phase structure. Do not copy the comment block into it; the script refuses a body that carries one. 4. **Write it back through the script**, which bumps `revision`, refreshes `sha` and `updated`, and keeps the comments:

   node "${CLAUDE_SKILL_DIR}/scripts/artifact.mjs" iterate --file <plan> --body /tmp/plan-body.md
   # prints <plan> revision N

5. **Answer each comment you addressed** with a reply saying what changed. Resolve only when the reviewer asked you to, or when the comment is a factual fix you made:

   node "${CLAUDE_SKILL_DIR}/scripts/artifact.mjs" reply   --file <plan> --id c1 --author Claude --text "Phase 1 now names src/x.ts:40."
   node "${CLAUDE_SKILL_DIR}/scripts/artifact.mjs" resolve --file <plan> --id c2 --author Claude --text "Rollback step added to phase 2."

6. **Reply with the path, the new revision and which comments are still open.** Do not implement.

Rules

  • Never edit the plan file with Write or Edit: one stray write can drop the comment block.
  • Never delete or rewrite a comment, even a wrong one. Reply to it.
  • Iterating an approved plan moves it back to `in-review`; it needs a new approval.

Related

  • `/ork:create-plan` writes the first revision. `/ork:review-artifact-comments` works through comments

without rewriting the body.

Read more
Ships withorchestkit

The Complete AI Development Toolkit for Claude Code. 106 skills, 36 agents, 171 hooks. Install `ork` for stable (v9.x), or `ork-alpha` for the v10 line, which ships daily.

Get the whole plugin

Other skills on orchestkit.