agentleFS
Yco-0314Yco-0314/strata/skills/l2-planning/writing-plans/SKILL.md

writing-plans

Skill0 starsChanged 5 months agoMITView on GitHub

Use to author a heavyweight, junior-engineer-proof implementation plan for LARGE multi-session work — exact file paths, complete code, and 2-5 minute TDD steps. The opt-in heavy path; for routine work prefer to-issues. Trigger phrases include "write a detailed plan", "full implementation plan", "spec this out before coding".

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

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before tasks, pin behavior down with the Kiro EARS template — one row per clause, each phrased as a single testable requirement:

    line 29
  2. Very specific:

    Before handoff, run a Spec-Kit /analyze-style consistency pass.

    line 83
  3. Distinctive:

    Every requirement (R*) maps to >= 1 task.

    line 86
  4. Distinctive:

    Every task cites >= 1 requirement.

    line 87

“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 — L2 (user-invoked)

The heavyweight planning path: one exhaustive document a fresh engineer with zero codebase context can execute step-by-step. Use it only for LARGE, multi-session, multi-file work where the plan must survive a session boundary or a handoff.

For routine features, to-issues (tracer-bullet slices on the tracker) is the DEFAULT — lighter, tracker-native, no long-lived doc. The L1 complexity router decides; pick this path deliberately. Don't write a 500-line plan for a 20-line change.

Assume the executing engineer is skilled but knows almost nothing about this toolset, domain, or what good test design looks like here. Document everything. DRY, YAGNI, TDD, frequent commits. Save to docs/plans/YYYY-MM-DD-<feature>.md.

1. Capture requirements as EARS clauses

Before tasks, pin behavior down with the Kiro EARS template — one row per clause, each phrased as a single testable requirement:

WHEN/IF/WHILE/WHERE [trigger] THE SYSTEM SHALL [behavior]

Give every clause an id (R1, R2, …). Each clause becomes at least one test in the plan below — this list is exactly what the L3 tdd skill consumes as its test list.

2. Write the plan as a delta, not a full regenerate

A plan describes only what shifts. Use OpenSpec-style delta headers so a reader diffs intent at a glance and you never re-describe untouched behavior:

  • ## ADDED — new capabilities / files.
  • ## MODIFIED — changed behavior (state old → new).
  • ## REMOVED — deleted behavior (and why it's safe).

3. Plan header

# [Feature] Implementation Plan

> **For the executor:** hand off to L3 subagent-driven-development to implement task-by-task.

**Goal:** [one sentence]
**Architecture:** [2-3 sentences on approach]
**Tech stack:** [key libs]
**Requirements:** R1…Rn (see EARS table)

Titles, names, and decisions use the CONTEXT.md glossary and respect ADRs in the touched area. Look for prefactors — "make the change easy, then make the easy change"; prefactoring is its own first task.

4. Bite-sized tasks (2-5 min steps)

Each task lists exact paths, then one-action steps the executor cannot misread:

### Task N: [Component]  (covers R3, R4)

**Files:** Create `src/x.py` · Modify `src/y.py:120-145` · Test `tests/test_x.py`

1. **Write the failing test** — full code, no "add a test".
2. **Run it, confirm it fails** — exact command + expected failure message.
3. **Write minimal implementation** — complete code, not "add validation".
4. **Run it, confirm it passes** — exact command + expected output.
5. **Commit** — `git commit -m "..."`.

Complete code in the plan. Exact commands with expected output. No prose stand-ins.

5. Coverage-matrix gate (pre-execution)

Before handoff, run a Spec-Kit /analyze-style consistency pass. Build a matrix and fail the plan if either direction has orphans:

  • Every requirement (R*) maps to >= 1 task. An unmapped requirement = a feature nobody builds.
  • Every task cites >= 1 requirement. An uncited task = scope creep or a YAGNI violation.
ReqTasks
R1Task 1, Task 3
……

List both orphan sets explicitly; resolve every one before the plan is "done".

6. Execution handoff

The plan is data; execution is L3. Once the matrix is clean, hand off to subagent-driven-development (fresh subagent per task, review between tasks, this session) — which dispatches through the merged tdd discipline and runs inside using-git-worktrees. L4 review gates each task; L0 ponytail governs the diff size inside every step.

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.