agentleFS
rkalievrkaliev/eng-kit/skills/writing-plans/SKILL.md

writing-plans

Skill1 starsChanged 14 days agoMITView on GitHub

Use when you have an approved design in a task file, or clear requirements, for a multi-step change, before touching code

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

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

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Coverage: every success criterion maps to a task.

    line 67
  2. Distinctive:

    Proportion: if code blocks dominate, replace them with signatures and assertions.

    line 71

“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

A plan is the set of decisions the implementer cannot make alone: which files, which names and signatures, which values from the description, which tests prove each task. Write for a capable engineer who has never seen this codebase or conversation. A plan longer than the code it describes has written the code instead.

Write the plan into the ## Plan section of the task file (docs/tasks/YYYY-MM-DD-<topic>.md, from brainstorming), replacing "None yet", and set its Base: to git rev-parse HEAD. The file must say Status: design approved; for a draft, ask the user to approve the description first, never approve it yourself. With clear requirements and no task file, create one from ../../templates/task.md and get its description approved. It lives only on the work branch and is deleted when the work is finished.

Header

## Plan

> Execute with the executing-plans skill. Only this section uses `- [ ]` checkboxes.

**Goal:** one sentence
**Architecture:** 2–3 sentences
**Stack / constraints:** versions, dependency limits, platform floors, naming and copy rules. Exact values, copied from the description or the repo.
**Verification:** the project's commands (from CLAUDE.md or `.claude/verify.json`)

### Review focus
Up to five inputs or failure modes the description implies but no test yet covers, most likely first
(empty input, concurrency, retries, offline, locale, large data…). Each gets a test in the task that owns it.

### Post-implementation
Docs this change makes stale (README, docs/, decision record, CHANGELOG, agent manifest, API reference),
each with what to update, or "none: <why>". Name the topic chapter that describes this feature;
a new feature gets a new `docs/NN-<feature>.md`. Done in the same branch, before finishing.
What outlives this task file: behavior → that chapter; decisions and lasting rulings → `docs/decisions/`.

Map files first

List the files to create or modify and each one's single responsibility, before defining tasks. Split by responsibility, not by layer. In existing code, follow its structure.

Tasks

A task is the smallest unit that has its own test cycle and could be rejected by a reviewer independently of its neighbours. Fold setup, config and docs into the task that needs them.

### Task N: <component>

**Files:** Create `path/a.ts` · Modify `path/b.ts` · Test `path/a.test.ts`
**Interfaces:** Consumes `fnX(a: A): B` from Task 2 · Produces `fnY(c: C): D`

- [ ] Write failing test `rejects empty email` asserting `{ error: "Email required" }`; add a stub `fnY` that returns `{}`
- [ ] Run `npm test -- a.test.ts` → expect FAIL: expected `{ error: "Email required" }`, received `{}`
- [ ] Implement `fnY(c: C): D` in `path/a.ts` (one line on approach only if the test leaves a choice)
- [ ] Run `npm test -- a.test.ts` → expect PASS, then the full suite
- [ ] Commit `feat(scope): add fnY`

What each step contains:

  • Test step: the test name and its assertions, with the description's exact values (quote the criterion). The expected FAIL is an assertion failure, never "not defined" or "cannot find module" (that is an error: add a stub). Each numbered criterion names how it is verified, by the rules in ../test-driven-development/references/test-standard.md ("Criteria and levels").
  • With BDD, outside-in: the task for a user-visible criterion starts with Write scenario @C3 … → run → expect FAIL at step "<step>", has its unit-test steps in between, and ends with Run scenario @C3 → expect PASS.
  • Code step: the signature, the file, and any pinned values. Include a body only for an algorithm the tests don't determine.
  • Run step: the command and the expected output.

Lines that decide nothing ("handle edge cases", "add validation", "TBD") are gaps. Fix them.

Self-review before handing off

  1. Coverage: every success criterion maps to a task.
  2. Steps: each step allows exactly one reasonable implementation.
  3. Consistency: names and types match across tasks.
  4. Review focus: each line has a test in its owning task.
  5. Proportion: if code blocks dominate, replace them with signatures and assertions. Every step ends in something checkable: a command with its expected output, or an observable behavior.
  6. Docs: Post-implementation names every doc the change affects (writing-documentation).
  7. Defect: Task 1 is the red reproduction, and the fix removes the cause named in Context.

Then commit the plan (docs(tasks): plan <feature>), link the task file and ask the user to review it and choose how to execute it: inline (cheapest; one review at the end) or subagent per task (a fresh implementer and reviewer agent per task; costs more). Recommend one in one sentence, weighing coupling, task count and the cost of a mistake. On approval, set the file's Status: plan approved (YYYY-MM-DD) and commit it.

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.