agentleFS
lsy041015lsy041015/orchestra/skills/writing-plans/SKILL.md

writing-plans

Skill4 starsChanged 2 months agoMITView on GitHub

Use when a settled design needs multiple verifiable implementation steps. Skip ceremonial plans for obvious small changes.

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-git-workflow, chinese-code-review and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-git-workflow

    适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖

    Also in 9 projects that use this

  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • ryanportfolioSkill

    addskill

    Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.

    Also in 6 projects that use this

  • ryanportfolioSkill

    apply-firmware

    Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.

    Also in 6 projects that use this

  • +2 more from Leodorareluctant259
  • +6 more from ryanportfolio

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 4

    Distinctive

    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
  1. Distinctive:

    Write the plan for the engineer who must implement it after context has been compressed.

    line 8
  2. Very specific:

    Put task subheadings below the task heading level.

    line 41
  3. Distinctive:

    Do not hide exact values, signatures, paths, or test cases in prose that a worker cannot find.

    line 55
  4. Distinctive:

    Read the completed plan once from top to bottom and check:

    line 72
  5. Distinctive:

    every spec requirement maps to a task and verification.

    line 74
  6. Very specific:

    Keep the plan and progress ledger as the recovery record.

    line 103

“Common” is measured: kept by at least 6 in 10 of the 170 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Writing Plans

Write the plan for the engineer who must implement it after context has been compressed. The approved spec is the authority; the plan records how the repository will satisfy it. The main agent writes and reviews the plan. There is no plan-reviewer dispatch.

Before writing

For a new project or large feature with no approved kickoff or design, run orchestra:brainstorming first. Read the approved design and relevant source. Confirm repository instructions, current branch/worktree, existing tests, and user changes. Trace callers and interfaces before choosing task boundaries. If the request is a one-file or obvious edit, keep the work inline rather than producing a ceremonial plan.

Plan structure

Save the plan at the repository's agreed path, normally docs/orchestra/plans/YYYY-MM-DD-<topic>-plan.md. Include:

  1. Context and goal — current behavior, desired behavior, constraints, and explicit non-goals.
  2. Global constraints — settled model/tool, compatibility, safety, security, data-loss prevention, accessibility, calibration, and user-change requirements that bind every task.
  3. Interfaces and dependencies — affected callers, data flow, test seams, and decisions already made. task-brief copies these two sections into every task brief by heading, so start those headings with the English names Global constraints and Interfaces... (a leading number such as ## 2. is fine) and keep them above the task headings.
  4. Tasks — each task is one independently verifiable implementation result with exact files, symbols, behavior, tests, expected outputs, and commit boundary when commits are required. Group related files that must change together; split only at a real verification boundary. New plans use headings such as ### Task 1: 입력 검증: the Task marker and positive integer are stable, while the title and body may be Korean. Put task subheadings below the task heading level. Older valid Task N headings remain readable; do not infer tasks from headings such as ### 1. 입력 검증.
  5. Verification — focused tests per task, integration checks, and final commands with expected evidence. Apply orchestra:verification-before-completion when deciding whether matching evidence can be reused or a command must run. Include TDD RED/GREEN steps for behavior changes. Review committed ranges with review-package and always include staged and unstaged diffs plus the task's untracked files. Entirely uncommitted work does not need a dummy commit for review.
  6. Review focus and recovery — concrete risks, how to preserve unrelated changes, what to do on failure, and what decision would block progress.

Do not hide exact values, signatures, paths, or test cases in prose that a worker cannot find. A task must say what it consumes from earlier tasks and what later tasks may consume from it. Never add speculative architecture, dependencies, or blanket line/word/token limits.

A plan records decisions, not code. A task is ready when the worker can write exactly one reasonable thing from it: test names and assertions with the spec's values, exact signatures and files, and each check's command with its passing output. Run each new test command once before writing it down, on an existing test if need be, so its invocation is known to work here. Include a function body only for an algorithm the signature and tests do not determine, or for exact copy the spec fixes. A plan longer than the code it describes has written the code instead; a line that decides nothing ("handle edge cases", "add tests") is a gap.

Self-review before handoff

Read the completed plan once from top to bottom and check:

  • every spec requirement maps to a task and verification;
  • task boundaries do not conflict on shared files or interfaces;
  • each task's files, symbols, tests, and expected output agree internally;
  • the plan preserves TDD, systematic debugging, user changes, and safety;
  • a worker can implement the task without inventing a design decision;
  • proportion: a plan several times longer than the spec, or one that is mostly code blocks, is a transcript; replace bodies with signatures, test names and assertions;
  • scope and complexity are the smallest adequate shape.

Fix gaps inline. Honor a user-requested plan approval gate and ask about any unresolved consequential decision. Otherwise the existing task authorization permits execution; creating a plan does not add a new approval requirement. For delegated work, continue with orchestra:orchestrator in Claude Code (it routes each difficulty tier to a Claude subagent, a Codex CLI worker only when the user asks for Codex, on top of orchestra:subagent-driven-development), or with orchestra:subagent-driven-development in a Codex-hosted session. Use orchestra:executing-plans for inline execution only when the user chose inline work, the change is tiny, or no worker tool is available (the rule in orchestra:subagent-driven-development); otherwise delegate.

Execution handoff

The main session owns the plan, task selection, and code review. When a task is clear and worth delegation, it creates one implementer worker with the host implementer preset (Codex: gpt-6-luna / xhigh / fork_turns = "none"; Claude Code: orchestra:implementer agent = sonnet / high; when orchestra:orchestrator is active, its per-tier routing replaces this preset) and a focused task brief. Related fixes return to that same worker. A second worker is permitted only for explicitly requested independent parallel implementation or under the orchestrator's tier routing. Reviewers, planners, explorers, and diagnostic agents are not spawned.

Keep the plan and progress ledger as the recovery record. If implementation reveals a plan defect, the main agent records a Ruling: with the chosen correction and why it is safe before continuing. Do not silently rewrite requirements in a worker prompt.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.