agentleFS
Firna-AIFirna-AI/skills/skills/plans/SKILL.md

plans

Skill1 starsChanged 47 days agoMITView on GitHub

Use before you write any code or start an implementation, when the user asks for a plan, before you create, edit, tick, or delete a plan under plans/, when you add a decision to a plan, when you discover a TODO or blocked work during implementation, when a milestone has UI or mockup work, when you would paste command output or a review report into a plan, when a finding is deferred or stays open, when you add, list, or fix a follow-up item, and before you open a pull request for a plan.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 0 are common, 11 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the code of a change only after the user approves its plan.

    line 14
  2. Distinctive:

    Create a plan only with the user's consent, and only after the relevant spec or protocol docs give enough context to plan the work safely.

    line 15
  3. Very specific:

    When no user message or recorded decision chooses the approach of the change, brainstorm first with the brainstorming skill.

    line 20
  4. Very specific:

    Write each decision in the layout of the decisions-and-findings skill.

    line 53
  5. Very specific:

    When you add a decision to a plan, run the options check of the implementation-review skill over it.

    line 56
  6. Distinctive:

    Keep each milestone small.

    line 71
  7. Distinctive:

    When the plan has mockup work, Milestone 1 is the mockup milestone.

    line 77
  8. Distinctive:

    Put all mockup work that is known at planning time in the mockup milestone.

    line 83
  9. Distinctive:

    When the plan has no mockup work, the documentation milestone is Milestone 1.

    line 92
  10. Distinctive:

    Add another mockup milestone only for review fixes or for a genuine mockup gap that implementation finds.

    line 106
  11. Distinctive:

    When you discover a TODO that the PR needs, add it under the relevant milestone, then continue with the active TODO.

    line 128
  12. Very specific:

    Every plan ends with a commit-and-push TODO, a review TODO, a TODO that deletes the plan, and a pull request TODO.

    line 132
  13. Distinctive:

    When the plan completes, every consumer in the repository uses the new way.

    line 156
  14. Very specific:

    When the plan is approved, the orchestrator session of the workspace implements all milestones by delegation.

    line 169
  15. Distinctive:

    Check each delegated result against the milestone's TODOs and the repository rules.

    line 177
  16. Very specific:

    Keep the gate, the review, and the pull request with the orchestrator, as the finish-work skill says.

    line 179
  17. Very specific:

    Put post-merge work, including smoke tests that need the merged or deployed change, in a ## Post-merge follow-up (non-blocking) section …

    line 188
  18. Distinctive:

    Keep smoke tests that can run before merge as required milestone TODOs.

    line 192
  19. Very specific:

    When the pull request opens before the work is complete, replace the branch sentence with PR #<number> is open.

    line 193
  20. Very specific:

    Do not put evidence logs in plan files: command output, test and gate results or timings, smoke-test output, search results, audit records, …

    line 219

“Common” is measured: kept by at least 6 in 10 of the 8 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

Plans

A plan records the work needed to align the implementation with the spec docs, its milestones, and its TODOs. Plans live under plans/, one file per change. templates/plan.md is the starting point.

Creating a plan

  • Write the code of a change only after the user approves its plan.
  • Create a plan only with the user's consent, and only after the relevant spec or protocol docs give enough context to plan the work safely. A request for the change gives that consent. The user's choice of its approach in a brainstorm also gives it. Do not ask for consent in either case.
  • When no user message or recorded decision chooses the approach of the change, brainstorm first with the brainstorming skill. The plan starts from the approach that the brainstorm chose.
  • A new plan is a plan-only change. Write the plan. Run the options check over its decisions, as the section below says. Commit it. Push the branch. Then report, as the finish-work skill says.
  • The status paragraph names the branch and says that no pull request exists yet. Do not open a pull request to fill the status paragraph. The pull request opens when the implementation is complete and no finding waits for the user, or when the user asks for it. See the finish-work skill.
  • One plan file per change, named after the change in concise kebab-case, for example tool-request-error-contract-alignment.md. Do not combine unrelated work in one plan.
  • There is no index file. Each plan records its own status in the first paragraph below its title. That paragraph starts with Status: Active while the plan is open. List open plans with scripts/active-plans.sh.
  • The documentation skill says what a README.md or a code comment can hold about a plan.
  • Each plan describes the work needed for complete alignment with the spec docs.
  • The plan is the dated record of each decision: the choice, the alternatives, the reason, and the date. The protocol doc keeps only the decision in force. History, such as what the code did before the change, belongs in the plan, not in a protocol doc. When the change deletes the plan, its pull request description keeps the dated record.
  • The plan also records each design call that you make yourself: the choice, the reason, and the date. The decisions-and-findings skill says which questions are design calls. Put each call in the design of the change, marked as your call.

Decisions

  • Write each decision in the layout of the decisions-and-findings skill. Its options rule applies: write the root question, widen and narrow the approaches, and name each assumption that all options share.
  • When you add a decision to a plan, run the options check of the implementation-review skill over it. Do this before you report the decision. The check is a fresh read-only second-pass review agent with the second-pass prompt of that skill, the decisions, and the path of the plan. It checks that the options are complete and that the recommendation is the best one.
  • Merge the result of the check into the plan before you commit. A new option keeps the letter that the check gave it. When the recommendation changed, the Recommendation line gives the new letter and names the first one. Save the check's report under .context/<plan-name>/.

Milestones

  • Break the work into concrete units called milestones. At the end of each milestone the product works. Never leave the code base or feature broken.
  • Keep each milestone small. A small milestone is easier to delegate, to check, and to review. Its checks find a problem early. Prefer several small milestones to one large milestone.
  • Each milestone has a short summary and a TODO checklist.
  • Each milestone has a Depends on: line: none, or the milestones that it needs. A plan review checks it. The delegating skill uses it.
  • When the plan has mockup work, Milestone 1 is the mockup milestone. It comes before every other milestone. That includes the documentation milestone and repository bootstrap work, such as the workspace skeleton, checks, and CI. Mockups find problems in a design better than any other step. A plan has mockup work when it adds or changes a screen, a user flow, or anything else that a mockup shows.
  • Put all mockup work that is known at planning time in the mockup milestone. Include every product area of the plan. When the repository has no mockup catalogue tooling yet, the mockup milestone also sets up that tooling.
  • As the last TODO of the mockup milestone, update the design and the TODOs of the plan. Do this for each problem that the mockups show. Add a decision when the decision test of the decisions-and-findings skill says so.
  • The documentation milestone comes directly after the mockup milestone. When the plan has no mockup work, the documentation milestone is Milestone 1. It updates the relevant documentation and protocol or spec docs so that they state the requirements and the decisions for the work that follows. The plan itself holds the design: the approach, the components, and the mechanics. See the documentation skill for what belongs in a protocol doc.
  • The documentation milestone does not freeze the protocol docs. A later milestone that keeps the behaviour needs no protocol doc change. A later milestone that changes a requirement proposes the change as a decision and updates the protocol doc in the milestone that changes the code. See the documentation skill.
  • A mockup milestone holds only mockup work. No other milestone holds mockup work. Keep backend changes and UI implementation in separate milestones too. Mockups complete before UI implementation begins.
  • Add another mockup milestone only for review fixes or for a genuine mockup gap that implementation finds. When you add milestones for review fixes or for a mockup gap, put the new mockup milestone first among them.
  • A milestone with UI or mockup work has a tag line directly below its heading: Tags: ui or Tags: mockup. A tagged milestone has no backend work. If backend work is missing while you implement a tagged milestone, do not add it to the current or an existing milestone, and do not move the blocked TODOs into an existing milestone. Create a new backend milestone directly after the current one. Then create a new tagged milestone after that backend milestone and move the blocked TODOs there, still unchecked.
  • Mark a milestone completed when all of its tasks are completed. Do not reopen a milestone. Create a new milestone for new tasks that do not fit an existing open one.

TODOs

  • Tick TODOs as you complete them.
  • The commit that completes a milestone, by ticking its last unchecked TODO, also removes or narrows each status line that links that milestone. Search docs/ and every README.md for links to the milestone heading. The documentation skill defines a status line and says when to narrow it.
  • When you discover a TODO that the PR needs, add it under the relevant milestone, then continue with the active TODO.
  • Break a complex TODO into sub-tasks.
  • A TODO that a delegated workspace owns ends with Branch: and its branch.
  • Every plan ends with a commit-and-push TODO, a review TODO, a TODO that deletes the plan, and a pull request TODO. The review TODO directs a reviewer to use the implementation-review skill against origin/main after the push. The reviewer reports the findings. Then the fix rule applies: fix the fix now findings, record follow-up items for the rest, re-review once, and report. Read an older review TODO under the same rule, also when it says "the review-fix rule", "without changing the implementation", or "fix the Auto-fix: yes findings".
  • The last two milestone TODOs delete the plan and open the pull request. The section "Deleting the plan" says when they run, also when the user asks for the pull request early. The finish-work skill gives the pull request. An older plan without these TODOs follows the same rule.
  • Record each open or deferred finding, each blocked or split-off wider fix, and each problem outside the review scope as a follow-up item, not as a line in the plan. The section "Follow-up items" says how.
  • An open finding blocks only dependent work, as the delegating skill says.

Replacing an old way

Some changes put a new way in place of an old one: a data format, a type, an API, a data source, a backend, or a mechanism. A consumer is code, a test, or a doc that uses the old way. A converter is code that turns the new way into the old way, so that a consumer can stay as it is.

  • When the plan completes, every consumer in the repository uses the new way. The old way and its converters are gone. Only a user decision can keep a converter, for a consumer outside the repository.
  • List each old way and its consumers under Replaced ways in the plan. Give each consumer a TODO that moves it. Give the old way a TODO that deletes it.
  • Read references/replacing-an-old-way.md before you write that list. It says what else the change deletes, when a converter can stay for one milestone, and which consumers wait for the user.

Implementing a plan

When the plan is approved, the orchestrator session of the workspace implements all milestones by delegation. The models skill defines each action. The delegating skill gives its route.

  • Delegate the external docs work of a milestone to the external docs implementor. Delegate its other docs work to the docs implementor. Delegate the UI work to the ui implementor. Delegate the other work to the non-ui implementor.
  • Check each delegated result against the milestone's TODOs and the repository rules. Request changes until it passes. Then tick the TODO.
  • Keep the gate, the review, and the pull request with the orchestrator, as the finish-work skill says.

Completion boundary

  • The PR merge is the completion boundary. Every milestone and required TODO must be completable on the branch before the PR merges, or by the merge itself. Never add a required TODO that depends on the PR already being merged.
  • Put post-merge work, including smoke tests that need the merged or deployed change, in a ## Post-merge follow-up (non-blocking) section outside the milestones. It does not affect completion. When the change deletes the plan, each unchecked task becomes a follow-up item.
  • Keep smoke tests that can run before merge as required milestone TODOs.
  • When the pull request opens before the work is complete, replace the branch sentence with [PR #<number>](<url>) is open.

Follow-up items

A follow-up item records work that waits until after the merge. Each item is one file under plans/follow-ups/. It holds every fact that the work needs. Its layout is templates/follow-up.md. Read references/follow-up-items.md before you add, fix, or drop an item, or choose the next one. Read it also when a change replaces a decision or edits a protocol section. Such a change updates each item that names that decision or section. Before the commit that adds or rewrites items, run the fresh check of new items that the reference gives. scripts/follow-ups.sh lists the open items, highest priority score first.

Deleting the plan

The pull request of the change deletes its plan, so that a plan does not stay on main after its work merges. references/deleting-a-plan.md says when the plan goes, when it stays, and the steps. Do not delete a completed plan that is already on main without the user's approval.

Evidence

  • Do not put evidence logs in plan files: command output, test and gate results or timings, smoke-test output, search results, audit records, test-title inventories, and full reviewer reports. Save them under .context/<plan-name>/, which Git ignores. Under the related milestone, add one line that names the file. Review reports go in the review folder of the branch, beside its findings file. The implementation-review skill gives the folder.
  • A plan keeps only its summary, replaced ways, milestones, TODOs, contracts, decisions, design calls, user approvals, and short review summaries. Agents read the whole plan, so logs in a plan slow every session.

Live and history

In an active plan, completed milestones and checked TODOs are history; all other content is live. In a completed plan, open findings and unchecked post-merge follow-ups are live; all other content is history. Do not change the words of history. See the git-commit skill for stale references and history links.

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.