agentleFS
jpablodrexlerjpablodrexler/backlog-kit/skills/feature-plan/SKILL.md

feature-plan

Skill3 starsChanged 19 days agoMITView on GitHub

Adds a new feature to the backlog's features-planned.md — drafts the row (Priority, Schema Change, Effort, Area, Summary), writes the feature's full brief to features/NNN-<name>.md as a user story with acceptance criteria, offers to write the project's Definition of Done when it has none, assigns the next feature number, inserts it into the Recommended implementation order, and confirms with the user before writing. Creates the backlog file (with header, legend, and empty table) on first use if it doesn't exist yet. TRIGGER when the user asks to plan a new feature, add a feature to the backlog, or file a feature idea/request.

  • Commits and pushes

11 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

23 rules. 0 are common, 6 are distinctive, and 17 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 17

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add a new feature to the backlog — its full brief file <backlog>/features/NNN-<change-name>.md plus a row in <backlog>/features-planned.md …

    line 11
  2. Very specific:

    Definition of Done: Check whether <backlog>/definition-of-done.md exists.

    line 89
  3. Distinctive:

    If it does not, ask one question with the AskUserQuestion tool, every time this skill runs while the file is missing — "This project has no …

    line 90
  4. Very specific:

    Run (from this skill's base directory) python3 scripts/next_id.py <repo-root> --check-name <derived-name> — it scans both files' ## Feature …

    line 99
  5. Very specific:

    If name_collision is true, tell the user and ask for a different name or confirm they mean something else (do not silently rename or …

    line 101
  6. Very specific:

    Use the returned next_number as the feature number.

    line 102
  7. Distinctive:

    Full brief: Write the brief as one user story, in this shape (the file's H1 is added in step 7):

    line 120
  8. Very specific:

    Definition of Done: if <backlog>/definition-of-done.md does not exist, write "No project-level Definition of Done defined yet." instead of …

    line 144
  9. Very specific:

    One story per brief: If the description holds several independently valuable behaviours, say so and offer to split (the same offer as for …

    line 145
  10. Very specific:

    If the question cannot be asked (no interactive tool, no usable answer), use the suggestion and mark it in the draft as <N> (suggested, not …

    line 170
  11. Very specific:

    Do these in order, file first, so a half-finished run leaves an orphan file (which features-status reports) rather than a row pointing at …

    line 196
  12. Very specific:

    Do not touch features-implemented.md — this skill only ever adds to the planned/backlog file.

    line 201
  13. Very specific:

    If — and only if — the user's description names another feature this one depends on (by number or name, in either file), add an entry under …

    line 205
  14. Distinctive:

    If step 8 recorded a hard dependency for this feature, make sure it's positioned after its dependency regardless of what tier placement …

    line 222
  15. Very specific:

    If the list still reads _None yet._ (a fresh backlog with no order yet), the new feature becomes the list's only entry.

    line 223
  16. Distinctive:

    Every other bullet stays exactly as it was — inserting a bullet never requires touching any line but the new one.

    line 224
  17. Very specific:

    Write one line for the new entry in the same style as its neighbors — priority, unblocked-or-blocked-on-what, and independent/small/etc.

    line 226
  18. Distinctive:

    If genuinely ambiguous where a same-priority feature should land relative to its peers (no dependency, no clear reason to prefer earlier or …

    line 230
  19. Very specific:

    Never edit features-implemented.md beyond creating its initial skeleton (step 2) if it doesn't exist — this skill only adds rows to …

    line 244
  20. Very specific:

    Never write to features-planned.md or <backlog>/features/ before the user has confirmed the drafted row in step 6 — all of steps 2–5 are …

    line 247
  21. Very specific:

    Never assign a feature number or change name that already exists in either file or in a features/ filename (checked across all of them, not …

    line 248
  22. Distinctive:

    Read the Column legend fresh each run rather than relying on a remembered copy of the value vocabulary — if the legend changes, this skill …

    line 253
  23. Very specific:

    Prefer the editor tool to an ad-hoc script.

    line 259

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

Add a new feature to the backlog — its full brief file <backlog>/features/NNN-<change-name>.md plus a row in <backlog>/features-planned.md — drafted from the user's description and confirmed before writing.

<backlog> is docs/backlog unless .backlog-kit.toml sets [paths] backlog_dir.

Input: A description of the feature (as much or as little detail as the user gives). May optionally include an explicit change name and/or explicit values for Priority/Schema Change/Effort/Area — use whatever is given directly and only draft the rest.


Steps

1. Make sure there's enough to draft from

If the user's request is too vague to describe what the feature actually does (e.g. just a one- or two-word title with no hint at the mechanism), ask one clarifying question before drafting — a good row needs the same level of technical specificity as existing rows (endpoints, tables/columns, components, libraries), not a vague restatement of the title. If the user already gave enough to work with, proceed without asking.

2. Read both backlog files, creating them if they don't exist yet

Read:

  • <backlog>/features-planned.md
  • <backlog>/features-implemented.md

If <backlog>/features-planned.md doesn't exist yet (the normal case the first time this skill runs in this repo), create it with this skeleton before continuing — don't silently invent a different structure:

# Planned Features

## Feature List

| # | Change name | Priority | Schema Change | Effort | Area | SDD Artifacts | Implementation | Summary | Brief |
| - | ------------ | -------- | -------------- | ------ | ---- | -------------- | ---------------- | ------- | ----- |

## Column legend

- **Priority**: `P0` (production-safety/security/data-loss gap) · `P1` (high-impact) · `P2` (scalability) · `P3` (operational convenience)
- **Schema Change**: `Yes` if the feature adds or alters a database migration, a schema definition or an access policy; `No` otherwise
- **Effort**: story points on the Fibonacci scale `1` / `2` / `3` / `5` / `8` / `13`; `8` or more is too large for one story: a candidate for splitting into several features
- **Area**: `Backend` · `Frontend` · `Full-stack` (touches both) · `Infra` (deployment/provisioning-only, no application code)
- **SDD Artifacts**: (only meaningful in projects that use OpenSpec; otherwise it stays `⬜ Pending`) `⬜ Pending` until `openspec-propose` has generated proposal/specs/tasks for the change; `✅ Created` once it has
- **Implementation**: `⬜ Pending` until work starts; `🔶 In Progress` once `feature-development` has selected the feature and set up its branch, until shipped; `✅ Implemented` once `features-archive` has moved the row to `features-implemented.md`
- **Summary**: a short hand-written one- or two-sentence summary of the brief (at most 250 characters, no pipes) for humans and for `features-next`'s display only — never spec input
- **Brief**: link to the feature's full brief, `features/NNN-<change-name>.md` (`NNN` = zero-padded feature number), a user story with acceptance criteria — the verbatim text `feature-development` hands to `openspec-propose`; the file never moves, and planned vs. implemented is decided only by which table holds the row

## Dependencies

### Hard implementation dependencies

_None yet._

### Recommended implementation order

Priority tier first (P1 before P2 before P3), then hard dependencies, then feature number. Not a schedule — a reasoning aid for `features-next` and for whoever is picking up the next feature by hand. Re-derive this whenever priorities, dependencies, or the feature set change; don't let it silently drift. A plain bullet list — list position (not a printed number) is what encodes order, so inserting an entry never touches any other line.

_None yet._

If <backlog>/features-implemented.md doesn't exist yet either, create it with the matching skeleton (the implemented-table header shown, no legend needed since it's just an archive target, plus a ## Dependencies (Historical) → ### Implementation notes section and a ## Deployment (migration) dependencies (applied) table) so features-archive has somewhere to write to later:

# Implemented Features

## Feature List

| # | Change name | Priority | Schema Change | Effort | Area | Details |
| - | ------------ | -------- | -------------- | ------ | ---- | -------------------- |

## Dependencies (Historical)

### Implementation notes

_None yet._

## Deployment (migration) dependencies (applied)

| Migration | Feature |
| ---------- | --------- |

Both files are needed to pick a non-colliding number and name (step 3) and to draft consistent attribute values (step 4), even when both are freshly created and empty.

Definition of Done. Check whether <backlog>/definition-of-done.md exists. If it does, read it: the brief's own ## Definition of Done section (step 5) lists only what is extra for this feature. If it does not, ask one question with the AskUserQuestion tool, every time this skill runs while the file is missing — "This project has no Definition of Done yet. Write one now?" — options: "Write it now" (ask the user for the checklist items, or take them from what they paste), "Draft a starter for me to edit" (propose a checklist drawn from the project's own docs and the phases its workflow already runs, show it, and write it only after the user confirms), "Not now". Whatever the answer, never block planning: "Not now" (or no usable answer) continues to step 3 with no side effects, and a missing file is never an error. The file is a plain markdown checklist (- [ ] … items) that applies to every feature; it is written only when the user chose one of the first two options.

3. Derive the change name and the next feature number

Change name: if the user gave an explicit one, validate it's kebab-case (lowercase letters, digits, hyphens only, e.g. task-due-dates); if it isn't, convert it. If the user didn't give one, derive a concise kebab-case slug from the feature description — short, descriptive, no filler words (e.g. task-search, task-completion-toggle).

Run (from this skill's base directory) python3 scripts/next_id.py <repo-root> --check-name <derived-name> — it scans both files' ## Feature List tables plus the filenames under <backlog>/features/ and returns the next free # (max + 1 across both, or 1 for a fresh backlog; numbers are a single global sequence, never reused even for a cancelled/reverted feature) plus whether the derived name already collides with an existing row. If name_collision is true, tell the user and ask for a different name or confirm they mean something else (do not silently rename or silently proceed with a duplicate). Use the returned next_number as the feature number.

4. Draft the attribute columns

Using the Column legend immediately below the Feature List table in features-planned.md as the source of truth for the value vocabulary (don't hardcode a copy of the definitions here — read them fresh each run so this skill can't drift out of sync with the legend):

  • Priority (P0–P3)
  • Schema Change (Yes/No)
  • Area (one of the values the legend defines)

Effort is not drafted here: it is the user's decision, asked in step 5b once the brief exists.

If the user explicitly gave a value for any of these, use it as-is (still sanity-check it's one of the valid values from the legend). Otherwise infer it from the feature description — e.g. a security/data-loss gap is P0; a feature naming a new table/column/policy is Schema Change: Yes; a change touching both backend and frontend code is Full-stack.

Both SDD Artifacts and Implementation are always ⬜ Pending for a brand-new row — this skill only plans a feature, it never creates SDD artifacts (that's openspec-propose, invoked later by feature-development) or implements it.

5. Draft the full brief and the Summary

Full brief. Write the brief as one user story, in this shape (the file's H1 is added in step 7):

**As a** <specific role>, **I want** <goal>, **so that** <benefit>.

## Acceptance Criteria
- AC1: Given <context>, when <action>, then <observable outcome>.
- AC2: …

## Technical notes
<the concrete mechanism: new endpoint(s), table/column names, component names, libraries>

## Out of scope
<optional: what this story deliberately leaves out>

## Definition of Done
Project-level Definition of Done applies (`definition-of-done.md`). Additional for this feature:
- [ ] <feature-specific item, or "None">

Rules for drafting it:

  • Role: a concrete persona taken from the product (never the bare word "user"); the sentence is one line, with the same punctuation every time.
  • Acceptance criteria: numbered AC1…ACn, each in Given/When/Then form, each binary and testable and describing behaviour, never implementation. Cover the main path, the main failure or empty case, and any permission or data-ownership rule the user mentioned. They are the checklist spec-compliance-check later verifies, and the scenarios openspec-propose turns into WHEN/THEN requirements.
  • Technical notes: keep the specificity the old one-paragraph brief carried (names a spec step needs); reuse whatever technical detail the user gave and fill gaps with reasonable, clearly-inferable choices consistent with the project's documented conventions (CLAUDE.md, the README, decision records) rather than inventing an unrelated approach.
  • Definition of Done: if <backlog>/definition-of-done.md does not exist, write "No project-level Definition of Done defined yet." instead of the first sentence. Never copy the project-level items into the brief.
  • One story per brief. If the description holds several independently valuable behaviours, say so and offer to split (the same offer as for an Effort of 8 or more).

This brief is the exact text feature-development later hands to openspec-propose as the description of what to build, so give it all the specificity the spec step will need; it goes in the feature's own file (step 7), not in the table.

Summary. Also hand-write a plain-text summary of that brief, built from its "I want … so that …" clause — at most 250 characters (target about 160), one or two sentences, no pipe characters, no Markdown links. It is only for humans skimming the table and for features-next's display; it is never spec input, so it may drop detail the brief keeps.

5b. Ask for the story points

The size of a feature is the user's call, so always ask for it, with your own estimate as the suggestion. Never write a value the user has not seen, and never skip the question because you are confident.

  1. Calculate the suggestion with this rubric, on the Fibonacci scale 1 / 2 / 3 / 5 / 8 / 13. If the user gave a value in the request, that value is the suggestion and this step is skipped. The scale is ordinal, not proportional: a 5 is much bigger than five 1s, so score by comparison, never by adding up smaller features.

    StepQuestionEffect
    ReachHow many layers does the technical notes' mechanism touch (UI, service or API, data)?One layer: start at 1. Two or more layers: start at 3.
    BreadthDoes the story hold eight or more acceptance criteria, or three or more independent flows, screens or endpoints?Yes: one step up the scale.
    SchemaDoes it add or change a table, column or access policy?Only for a single-layer story, one step up. A full-stack story with a schema change is already a 3; never add the step on top of the reach.
    NoveltyIs a new external integration, subsystem or concept for the project involved? Adding a library to an established pattern does not count.Yes: one step up.
    FamiliarityIs it a near copy of an existing feature, with five or fewer acceptance criteria?Yes: one step down.

    Start from the reach, apply the steps that hold, and stop at 8: a story that scores higher is a split candidate (step 3). State the one or two decisive rows as the reason when you ask. Do not weigh the number of acceptance criteria below the breadth threshold, whether a dependency is new, or how long the notes are: in the backlogs this rubric was calibrated on, those did not separate sizes.

    If <backlog>/estimation-anchors.md exists, read it before scoring: it lists finished features of this project as reference examples of each value ("comparable to feature 58"). Compare the new story with them and name the closest one in the reason. The file is optional, is written by the project, and is never created or required by this skill.

  2. Ask with the AskUserQuestion tool, one question — "How many story points for <change-name>?" — with the suggested value as the first option, labelled "<N> (Recommended)" and its description naming the one or two reasons for it, followed by the next lower and the next higher value on the scale (fewer at the ends of the scale, never more than three options). The user can always pick another value of the scale through the free-text "Other" answer; a reply that is not on the scale is asked once more, not rounded silently.
  3. Use the answer as the Effort of the row, whatever it is. A value of 8 or 13 makes the feature a candidate for splitting: say so in one sentence and, in step 6's question, offer "Split into several features" alongside the other options. Splitting means drafting one feature per independently valuable story (each with its own row, brief and number, and a hard dependency between them where one needs the other), shown together for one confirmation; each part gets its own question here. Keeping the 8 or 13 is allowed; never force the split.
  4. If the question cannot be asked (no interactive tool, no usable answer), use the suggestion and mark it in the draft as <N> (suggested, not confirmed), so the confirmation in step 6 still puts the number in front of the user.

6. Confirm with the user before writing

Display the fully drafted row:

## Draft Feature

**#<number> `<change-name>`**

**Priority:** <priority>  **Schema Change:** <schema_change>  **Effort:** <points> points <(suggested, not confirmed) only when step 5b could not ask>  **Area:** <area>

**Summary:** <summary>

**Full brief** (saved to `<backlog>/features/<NNN>-<change-name>.md`):

<full brief>

**SDD Artifacts:** ⬜ Pending   **Implementation:** ⬜ Pending

Use the AskUserQuestion tool with a single question — "Add this feature to the backlog?" — options: "Yes, add it as drafted", "Split into several features" (only when the Effort is 8 or more, or the description holds several stories; see step 4), "Let me edit something first" (resolve free-text edits against the draft and re-display for confirmation before writing), "Cancel". Do not write anything to features-planned.md or <backlog>/features/ until the user confirms.

7. Write the brief file, then insert the row

Do these in order, file first, so a half-finished run leaves an orphan file (which features-status reports) rather than a row pointing at nothing:

  1. Create <backlog>/features/<NNN>-<change-name>.md (create the features/ folder if it doesn't exist; NNN = the feature number zero-padded to three digits, e.g. 054). Content: the H1 # Feature <number> — <change-name> (an em dash; write "Feature 54", never "#54", since GitHub auto-links #N), one blank line, then the full brief from step 5 (the user story, its acceptance criteria and the other sections). The file is never moved or renamed afterwards, whether the feature is planned or implemented.
  2. Append the confirmed row to the end of the ## Feature List table in features-planned.md, contiguous with the existing rows (no blank line inside the table), preserving the pipe-delimited formatting and the ten columns in header order: | <number> | <change-name> | <priority> | <schema_change> | <effort> | <area> | ⬜ Pending | ⬜ Pending | <summary> | [brief](features/<NNN>-<change-name>.md) |.

Do not touch features-implemented.md — this skill only ever adds to the planned/backlog file.

8. Optional: record a hard dependency

If — and only if — the user's description names another feature this one depends on (by number or name, in either file), add an entry under ### Hard implementation dependencies in ## Dependencies, following the existing format:

**Feature <new#> → Feature <dep#>** (prerequisite already implemented | still pending)

`<new-name>` <one-sentence reason it depends on `<dep-name>`>.

Mark whether the prerequisite is already implemented (check features-implemented.md) or still pending. If the user didn't mention a dependency, skip this step entirely — do not go hunting for implicit dependencies the user didn't state.

9. Update the recommended implementation order

Read the ### Recommended implementation order subsection of ## Dependencies (immediately below ### Hard implementation dependencies). It's a bullet list of `change-name` (#number) entries — list position, not a printed number, encodes order — ordered priority tier first (P1 before P2 before P3 before untiered), then hard dependencies, then feature number — see that section's own intro line for the exact rule.

Insert the newly-added feature into that list, don't just append it:

  1. Find the tier boundary: the last existing entry whose Priority is the same or higher than the new feature's, and the first existing entry whose Priority is strictly lower. The new feature goes between them (same-priority entries keep their existing relative order; the new feature lands after all of them).
  2. If step 8 recorded a hard dependency for this feature, make sure it's positioned after its dependency regardless of what tier placement alone would suggest — move it later in the list if needed.
  3. If the list still reads _None yet._ (a fresh backlog with no order yet), the new feature becomes the list's only entry.
  4. Every other bullet stays exactly as it was — inserting a bullet never requires touching any line but the new one.

Write one line for the new entry in the same style as its neighbors — priority, unblocked-or-blocked-on-what, and independent/small/etc. where relevant — mirroring the phrasing of adjacent entries rather than inventing a new format.

The existing list is not guaranteed to be strictly tier-sorted (a P1 may sit after P2/P3 entries); apply the rule literally — land after the last entry that has the same or higher priority, which may be the final bullet — and never reorder the existing bullets to fix that.

If genuinely ambiguous where a same-priority feature should land relative to its peers (no dependency, no clear reason to prefer earlier or later), place it last within its tier — don't guess at a rationale that isn't there.

10. Display confirmation

## Feature Added

**#<number> `<change-name>`** added to features-planned.md, brief written to `<backlog>/features/<NNN>-<change-name>.md` (Priority <priority>, Effort <effort>, Area <area>), inserted into the recommended implementation order <right after `<preceding-entry>` (#N) | as the first entry>.

Guardrails

  • Never edit features-implemented.md beyond creating its initial skeleton (step 2) if it doesn't exist — this skill only adds rows to features-planned.md (plus the new feature's brief file under <backlog>/features/).
  • The story points are asked for in step 5b every run, with a calculated suggestion the user can always override; they are never silently taken from the estimate, and a value off the scale is never rounded.
  • The row's Summary is at most 250 characters with no pipes, and its Brief cell always links the file written in step 7; never put the full brief in the table.
  • Never write to features-planned.md or <backlog>/features/ before the user has confirmed the drafted row in step 6 — all of steps 2–5 are draft-only, in memory (except the one-time skeleton creation in step 2, which is scaffolding, not a feature row).
  • Never assign a feature number or change name that already exists in either file or in a features/ filename (checked across all of them, not just the planned file).
  • Do not add a row to the Deployment (migration) dependencies table even when Schema Change is Yes — migration numbers (i.e. which migration implements it) are deliberately not tracked at planning time since pending features are frequently reordered; that table only gets a new row once a feature is actually being implemented.
  • A missing <backlog>/definition-of-done.md is asked about every run (step 2) but never blocks planning, and the file is written only after the user chose to; skipping the question is always one keypress.
  • Existing one-paragraph briefs stay valid and are never rewritten by this skill; only the brief of the feature being planned is in the story shape.
  • Preserve the exact Markdown table formatting (pipe characters) of the Feature List table.
  • Read the Column legend fresh each run rather than relying on a remembered copy of the value vocabulary — if the legend changes, this skill should follow without needing its own update.
  • Step 8 (hard dependencies) is opt-in based on what the user actually said — never infer a dependency the user didn't mention.
  • Step 9 (recommended implementation order) is not opt-in — unlike step 8, always insert the new feature into that list; a backlog with rows missing from the order is worse than one with a slightly-uncertain placement. If the list doesn't exist yet under ## Dependencies (an older backlog file predating this section), add it with the intro line shown in step 9 before inserting the new feature.
  • Step 6's confirmation is mandatory, even under an "Auto Mode" or similar autonomous-operation instruction that biases toward proceeding without stopping to ask — that bias never applies to writing a new row into the backlog. Never invoke this skill from inside a spawned/backgrounded subagent that lacks reliable AskUserQuestion access as a way to skip it.
  • Write the backlog files as UTF-8, and check it. They hold characters outside ASCII (✅, ⬜, —, ·). Whatever writes them (the editor tool, a shell command, a script) must write UTF-8 explicitly and must never fall back to the system's default text encoding: on some systems that is a single-byte codepage, and it turns one such character into a byte that is not valid UTF-8 and stops every script that reads the file. Prefer the editor tool to an ad-hoc script. After writing, read each file you changed back as UTF-8 (for example python3 -c "open(p, encoding='utf-8').read()"); a decoding error is a failed write, to fix before going on.
  • Never run git commit, git push or open a PR.

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.