agentsclimarketplace

Writing plans

Skill KhaledSaeed18/dotclaude/skills/engineering/writing-plans

Turn a spec or set of requirements into a detailed, task-by-task implementation plan an engineer (or a subagent) can execute without further context. Breaks work into bite-sized steps with exact file paths, real code, and verification commands. Use before starting a multi-step build, once you know what you're building.From its SKILL.md

Install
npx -y skills add KhaledSaeed18/dotclaude --skill writing-plans

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.6 KB, 972 tokens by cl100k_base, as published. Nobody here has run it

Write the implementation plan as if the engineer executing it has strong general skills but zero knowledge of this codebase, this domain, or your intentions. Everything they need to act has to be on the page: which files to touch, the actual code, how to test it, what "done" looks like for each step. Vagueness in a plan becomes wasted work or wrong work at execution time.

A good plan is a sequence of small, verifiable tasks — each one producing a self-contained change that makes sense on its own and leaves the project working.

Step 1: Orient before planning

Read the spec or requirements fully, then look at the codebase the plan will touch — existing patterns, conventions, the files involved. Plan with the grain of the code that's there, not against an idealised version of it. If the spec spans several independent subsystems, say so and propose splitting it into one plan per subsystem; each plan should produce working, testable software on its own.

Step 2: Map the files first

Before writing any task, list the files the work will create or modify and the single responsibility of each. This is where the decomposition gets decided.

  • Give each file one clear job. Prefer smaller, focused files over large ones that do several things — they're easier to reason about and edit reliably.
  • Keep things that change together in the same place; split by responsibility, not by technical layer.
  • In an existing codebase, follow the established structure. Don't unilaterally restructure — but if a file you're already modifying has grown unwieldy, a scoped split can be part of the plan.

Step 3: Write bite-sized tasks

Each task is a coherent unit of work; each step inside it is one action of two to five minutes. Following test-driven development, a typical task reads:

  • Write the failing test (show the test code).
  • Run it, confirm it fails (give the command and the expected failure).
  • Write the minimal implementation (show the code).
  • Run the test, confirm it passes (give the command and expected result).
  • Commit (give the exact git add paths and message).

Give every task an explicit Files block — what to create, what to modify (with line ranges where it helps), what the test file is. Use checkbox (- [ ]) syntax for steps so progress is trackable during execution.

Step 4: No placeholders — ever

A plan with gaps is a plan that fails at execution. None of these belong in a finished plan:

  • "TBD", "TODO", "implement later", "fill in the details."
  • "Add appropriate error handling / validation / edge cases" without saying which and how.
  • "Write tests for the above" with no actual test code.
  • "Similar to Task N" — repeat the code; the executor may read tasks out of order.
  • A step that says what to do but not how, where code is involved (show the code).
  • References to a type, function, or method that no task defines.

Every step that changes code shows the code. Every command comes with its expected output. File paths are exact.

Step 5: Self-review against the spec

When the plan is complete, read it once more against the spec with fresh eyes — this is a checklist you run yourself, not a subagent dispatch:

  1. Coverage. Walk each requirement in the spec. Can you point to the task that implements it? List any gaps and add tasks for them.
  2. Placeholder scan. Search the plan for the red flags above and fix any you find.
  3. Consistency. Do the type names, signatures, and property names used in later tasks match what earlier tasks defined? A method called clearLayers() in one task and clearFullLayers() in another is a latent bug.

Fix issues inline and move on.

Step 6: Save and hand off

Save the plan as a markdown file (a docs/plans/YYYY-MM-DD-<feature>.md location works well unless the project has its own convention). Then offer the user how to execute it:

  • Inline — run the tasks in this session with review checkpoints, using the executing-plans skill.
  • Subagent-driven — a fresh subagent per task with review between, when the platform supports subagents and the tasks are largely independent.

If the work should be isolated from the current branch, note that an isolated workspace should be set up at execution time via the git-worktrees skill, and that the branch gets wrapped up afterward with the finish-branch skill.

What ships with it: 1 file

938 B alongside SKILL.md

Gives 1 of the 12 instructions most docs writing skills give in 972 tokens

Counted across 1,637 of the 3,044 authors here whose files we hold, read 2026-08-07

  • Announce the skill at startin 54 of 1637, across 26 files
  • Convert legacy doc files before editingin 45 of 1637, across 7 files
  • Predict questions readers might askin 42 of 1637, across 4 files
  • Generate clarifying questions for initial contextin 42 of 1637, across 3 files
  • Create document scaffold with placeholder textin 42 of 1637, across 3 files
  • Brainstorm content options for each sectionin 42 of 1637, across 3 files
  • Test the document with a fresh context-less instancein 42 of 1637, across 3 files
  • Include exact file paths in every taskhere, and in 42 of 1637, across 15 files
  • Ask interview questions one at a timein 42 of 1637, across 27 files
  • Apply surgical edits during refinementin 41 of 1637, across 2 files
  • Offer structured workflow or freeformin 40 of 1637, across 1 file
  • Ask for document meta-contextin 40 of 1637, across 2 files

Said here and by no other author read

  • read the full spec and examine the codebase before planning
  • plan with the grain of existing code patterns
  • provide exact git commit paths and messages for each task
  • verify plan coverage against the spec before handoff

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 326,861. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.