AGENT SKILL

feature-plan

Slices a finished design into user stories and an ordered task checklist (STORIES.md and PLAN.md) for feature-build. Use once feature-design has decided how to build the feature.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 3
Forks
1

01 前言 Front Matter

name
feature-plan
description
Slices a finished design into user stories and an ordered task checklist (STORIES.md and PLAN.md) for feature-build. Use once feature-design has decided how to build the feature.
argument-hint
[feature slug or plan folder path, and/or scope to plan, optional]
user-invocable
true

03 SKILL.md 正文

feature-plan

🎯 Design for change. Slice tasks so each one touches one seam. A task that edits five unrelated files, or straddles both a Management API controller and an unrelated UUI component, is a coupling smell — re-slice before handing it to feature-build.

Turn the design into something feature-build can execute. This command transforms SPEC.md — it does not re-elicit requirements.

Where this writes

The same per-feature plan folder. Owns two files:

  • STORIES.md — via the user-stories skill; Given/When/Then acceptance criteria per story.
  • PLAN.md — the dependency-ordered task checklist feature-build executes.

Read ARCHITECTURE.md and SPEC.md — this is confirmation and slicing, not a fresh interview.

Also updates its own two lines in README.md — same append-only discipline as DECISION-LOG.md: never touch a line owned by another phase.

A checklist of small, dependency-ordered, independently reviewable tasks forces sizing and sequencing decisions up front and gives feature-build something mechanically parseable to gate against. Keep this discipline (small, ordered, reviewable units) even for a project that tracks completion via issues instead of an in-doc checklist.

Scope

  • IN: derive user stories from SPEC.md, order tasks into a dependency-aware checklist, mark what can run concurrently, then generate executable specs via bdd-specs — always, no asking.
  • OUT: gathering requirements (feature-explore/feature-design), building (feature-build).

Preflight

  1. Resolve which feature this run is for. If the argument names a plan folder (its path or feature slug), use it. Else, if more than one plan folder exists, prefer a match between the current branch/worktree name and a folder name (see CLAUDE.md's "Finding the current feature's plan folder" rule) — this is the normal case once feature-build has started. If nothing matches, fall back to the one plan folder present, or ask if more than one is ambiguous.
  2. Read SPEC.md (and ARCHITECTURE.md for context) in the resolved folder. If SPEC.md is still a stub or has open questions, stop — send the user back to feature-design. Likewise if SPEC.md describes a new or visibly changed screen that has no mockup in mockups/: name the screens and send the user back to feature-design. A screen without a mockup can't be approved, so it can't be planned.
  3. Read any existing STORIES.md/PLAN.md. Re-entrant: reconcile and extend; never silently drop or renumber completed (- [x]) tasks.
  4. Check the whole plan folder for unresolved review comments and approvals, following markdown-preview's "Comments before moving on". Open ones on STORIES.md and PLAN.md are input to this run.

Stories

Delegate to user-stories to produce/refine STORIES.md (Given/When/Then acceptance criteria per story, formatted so bdd-specs can consume it directly). Don't hand-roll the format.

Specs (always, no asking)

Once STORIES.md is finalized and PLAN.md is written, always delegate to bdd-specs to generate executable, pending spec files from the stories. This is part of feature-plan's contract, not optional. The generated specs should fail (or be marked pending) until feature-build turns them green.

Interview

Light — confirmation, not elicitation. ~3–5 questions, batched:

  1. Here's how SPEC.md was sliced into stories — anything mis-cut or missing?
  2. Priority/sequence right? What's the first shippable slice?
  3. Any task marked parallel that actually shares a file or a migration?
  4. Hard external dependencies that gate ordering (a CMS API only available from a certain version, a package that must ship first)?

Produce

Write every file this phase produces following plain-writing: a person reads it before the next phase runs, so it should be quick to read without leaving anything out.

PLAN.md, a checklist feature-build can execute. Like STORIES.md, it's written for the skills that run it, so every detail stays; a person reads it to check the order and what runs together. Group the tasks under one ## heading per area (Setup, Core, Management API, Frontend, an integration, Docs), the areas in build order:

## <Area>

- [ ] **T<n>** - story: <ID> (<criteria>). <What to build, naming the files, types and
  decisions it follows.>
  Acceptance: <the check that proves it, such as which specs go green or a real request>
  depends-on: <ids, or none>. parallel-group: <letter, when it has one>

- [ ] **T<n>** - **wire: <feature> into <entry point>.** story: <ID> (<criteria>). <What gets
  registered or connected.>
  Acceptance: <a real request or resolution through the running site>
  depends-on: <ids>

Every task names its story, wire tasks included.

Don't draw the task order: the area headings, depends-on: and parallel-group: already carry it, and a box-and-arrow graph typed as text breaks as soon as a task moves. A diagram the plan does need (rare: a migration order across projects, say) follows diagrams.

  • Every task is - [ ], top-to-bottom in dependency order within its area.
  • Each task carries: a short id, the story it implements, explicit depends-on: ids, and a parallel-group: tag for tasks with no ordering between them.
  • One task = one reviewable, committable unit of work.
  • No task references a file, extension point, or decision not already in ARCHITECTURE.md/ SPEC.md.
  • Wire tasks are first-class. For every feature that touches a real entry point — a Management API controller, a Composer-registered service, a backoffice manifest entry — include an explicit wire: <feature> into <entry point> task whose acceptance is a real request or resolution through the deployed artifact, not just "unit tests pass." A task whose only acceptance criterion is unit-test-green is not allowed for anything on that path — that's how stubs ship.
  • Sync tasks travel with their entity. If the project supports Umbraco Deploy or uSync (umbraco-env-sync's "Does this project sync?") and a task adds or changes a synced entity, the matching sync change from its "Keep sync in step" table is in the plan: in the same task, or a task that depends-on: it. If ARCHITECTURE.md doesn't say how a new entity moves, stop and send the user back to feature-design.

Update the Stories and Plan rows in README.md: ⬜ becomes ✅, and "In one line" gets a few words ("6 stories" / "14 tasks in 4 groups"). Leave "Needs you" empty unless a file opens with guesses. Same rules as feature-explore's Brief row, including an older numbered-list README.

Append dated DECISION-LOG.md entries for non-obvious sequencing decisions (why task X blocks task Y, why a slice was deferred).

Hand off

Summarize: N stories, M tasks, S spec files generated, the first parallel group. Offer to open PLAN.md in a live preview, following markdown-preview's "Offering a preview". With a preview open, ask for approval on PLAN.md, following its "Approval". Then: Suggested next: /clear, then feature-build <feature-slug> — specs are in place and pending. Name the slug: no feature branch exists yet for feature-build to match. For a large or risky plan, mention feature-interrogate as an optional stress-test before that first build.

04 同仓库更多 Skills

mattbrailsford
mattbrailsford/umbraco-devkit

user-stories

Writes, splits and refines user stories with Given/When/Then acceptance criteria in STORIES.md, feeding bdd-specs. Use when turning a feature request or a vague ask into a testable backlog entry.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-security

What Umbraco provides for keeping a package secure, on the server and in the backoffice: Management API authorization and policies, settings that hold secrets, endpoints outside the Management API, sanitizeHTML and escapeHTML, DOMPurify rules for custom elements, and umbHttpClient instead of handling tokens in the browser. Use when writing or reviewing a Management API controller, a secret setting, a custom endpoint, a backoffice template that uses unsafeHTML, or frontend code that calls an API.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-performance

Keeping a package fast on the sites that install it: the published cache over the services layer, tree traversal, caching lookups and clearing them, data type config and converter cache levels, output cache eviction, light hot paths, and backoffice screens that don't over-fetch. Use when writing, changing or reviewing code that runs per request, per save, per indexed item or at startup (property value converters, notification handlers, indexing), code that loops over every content item (a full rebuild, an import, a sync), or a list or search screen. Not for a site's own templates.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-package-conventions

Backend conventions for an Umbraco package: async naming, internal by default, Attempt-based results for routine failures, public-API backwards compatibility, and where extension methods live. Use when naming a method, choosing visibility, shaping a service's result, changing a public signature (including adding a dependency to a public class's constructor), or organizing extension methods. For extension mechanisms, see `umbraco-extensibility`.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-marketplace

Gets a finished package listed on the Umbraco Marketplace: the NuGet tag, the dependency Marketplace reads version support from, the v14+ compatibility gotcha, and umbraco-marketplace.json. Use when a package is ready to publish, or when reviewing its packaging.

★ 3
mattbrailsford
mattbrailsford/umbraco-devkit

umbraco-extensibility

Umbraco's extension mechanisms (Composers, collection builders, notification handlers, attribute discovery) and a catalogue of backend CMS extension points: property value converters, Management API endpoints, content finders, health checks, search indexing, package migrations, background jobs, and more. Use when making a feature extensible or choosing which extension point fits. Not for property editor UI, dashboards, sections or trees, which the official Backoffice Skills plugin covers.

★ 3