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

writing-plans

Skill2 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 diagnosing-superpowers, chinese-git-workflow 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.
  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 6 projects that use this

  • MorningStar0709Skill

    chinese-git-workflow

    Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

    Also in 4 projects that use this

  • SuperInstanceSkill

    marketing-mode

    Marketing Mode combines 23 comprehensive marketing skills covering strategy, psychology, content, SEO, conversion optimization, and paid growth. Use when users need marketing strategy, copywriting, SEO help, conversion optimization, paid advertising, or any marketing tactic.

    Also in 4 projects that use this

  • itallstartedwithaideaSkill

    long-horizon-workflows

    Long-Horizon Workflows enable AI agents to execute multi-hour, multi-phase autonomous pipelines that far exceed the scope of a single conversation turn.

    Also in 4 projects that use this

  • shibit-netSkill

    chinese-code-review

    中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • shibit-netSkill

    chinese-commit-conventions

    中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • +1 more from shibit-net

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 174 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 174 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.