agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/feature-spec/SKILL.md

feature-spec

Skill1 starsChanged 24 days agoMITView on GitHub

Writes a complete feature specification (requirements traced to the PRD, UX screens and states, API contract, data model changes, permissions, analytics, edge cases, acceptance criteria and non-functional requirements) with product, UX, frontend and backend leads in parallel. Use before building any feature.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use code-review.

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.
  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 0

    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. Very specific:

    If no PRD exists, suggest /write-prd and stop.

    line 26

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

Feature Spec

Produces docs/specs/features/<feature-slug>.md: the single document a story is built and tested from. Four leads draft their sections in parallel; the skill merges them, resolves conflicts with the user, and runs a feasibility check. It does not create stories (/create-stories) or code.

Inputs

  • Argument: the feature. Without one, list PRD features without a spec and ask.
  • docs/product/prd.md (the requirement IDs this feature implements)
  • docs/design/ux/*.md flows and wireframes for it; docs/design/design-system.md
  • docs/architecture/architecture.md, ADRs, docs/architecture/data-model.md, docs/architecture/api/openapi.yaml (existing contracts)
  • project.yaml: stack.*, budgets, a11y, i18n, privacy.regions

If no PRD exists, suggest /write-prd and stop.

Phases

Phase 1: Frame

From the PRD, state the feature's goal, the requirement IDs it covers, the persona, and what is out of scope. Ask the user to confirm and to answer any open product question the PRD leaves (max 4 questions).

Phase 2: Draft sections in parallel

Spawn all four at once, each with the frame, the input paths and the section headings they own (from .claude/docs/templates/feature-spec.md):

  • product-manager: Summary; Requirements & user stories (traced to PRD IDs); Acceptance criteria (Given/When/Then, including failures); Analytics events (with analytics-engineer naming); Open questions.
  • ux-lead: UX: screens, states (loading/empty/error/success/permission), interactions, validation, copy needs, accessibility notes; link the flow doc.
  • lead-frontend: Frontend approach: routes, components (design-system names), data fetching and caching, client state, performance budget impact.
  • lead-backend: API Contract (endpoints/actions, request/response, errors, pagination, auth); Data model changes; Permissions matrix (role × action × resource, tenant scoping); background jobs; third-party integrations.

Phase 3: Merge and resolve

Merge into one document. Check the frontend's data needs against the backend's contract field by field; list every mismatch and conflict as a question for the user, with each lead's recommendation. Add:

  • Edge cases: concurrency, duplicates, limits, deletion, time zones, i18n.
  • Non-functional: performance (budgets from project.yaml), accessibility (WCAG 2.2 AA items), security (authz, input validation, rate limits; ask security-lead if it touches auth, money, files or personal data), privacy (personal data collected, retention, consent; privacy-compliance-specialist when privacy.regions is set).

Phase 4: Feasibility

Spawn technical-director for gate TD-FEASIBILITY with the merged spec. Report the verdict. On CONCERNS, show them with the proposed alternatives and let the user decide before continuing.

Phase 5: Approve and write

Show the spec (or a section-by-section summary) and ask "May I write this to docs/specs/features/<feature-slug>.md?" If the contract introduces new endpoints, offer /api-contract to update openapi.yaml.

Output

docs/specs/features/<feature-slug>.md from .claude/docs/templates/feature-spec.md.

Rigor

  • minimal: product + UX + contract sections; feasibility check skipped unless risky.
  • standard: all sections; feasibility check.
  • full: as standard, plus security-lead review for every spec and product-director sign-off (PD-SCOPE) when scope grew beyond the PRD.

Next step

/api-contract and /data-model if those changed, then /create-stories.

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.