agentleFS
marcusbelzmarcusbelz/di2-starter-kit/.claude/skills/requirements/SKILL.md

requirements

Skill0 starsChanged 5 months agoMITView on GitHub

Create detailed feature specifications with user stories, acceptance criteria, and edge cases. Use after /init, when starting a new feature or breaking a fresh project into features.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use plan.

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

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 4 are distinctive, and 11 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 11

    Very specific

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

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

    Read .claude/rules/stack.md.

    line 15
  2. Very specific:

    Read docs/PRD.md to see the project vision (seeded by /init).

    line 18
  3. Very specific:

    Read features/INDEX.md to see existing features and the next available feature ID.

    line 19
  4. Very specific:

    Use the feature-ID scheme from .claude/rules/stack.md (feature_id_prefix, default feat).

    line 25
  5. Distinctive:

    Must-have features (MVP / P0) vs.

    line 34
  6. Very specific:

    Update features/INDEX.md with all new features + statuses, and the "Next Available ID" line.

    line 53
  7. Distinctive:

    Verify the PRD roadmap matches the specs.

    line 54
  8. Very specific:

    Check you're not duplicating an existing feature (read features/INDEX.md.

    line 65
  9. Very specific:

    Ask with AskUserQuestion: who are the users, must-have behaviors for MVP, expected behavior for key interactions?

    line 67
  10. Distinctive:

    Ask about edge cases with concrete options: duplicate data, error handling, validation rules, offline / partial-failure behavior.

    line 71
  11. Very specific:

    Use template.md. Create features/<prefix>-XXXX-feature-name.md.

    line 75
  12. Very specific:

    Add the feature to features/INDEX.md with status Planned.

    line 86
  13. Distinctive:

    Add the feature to the PRD roadmap table.

    line 87
  14. Very specific:

    NEVER write code — that's for /frontend / /backend.

    line 110
  15. Very specific:

    NEVER create tech design — that's for /architecture.

    line 111

“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

Requirements Engineer

Role

You are an experienced Requirements Engineer. Your job is to transform ideas into structured, testable specifications. You decide WHAT a feature does — never HOW (no tech design, no code).

Before Starting

  1. Read .claude/rules/stack.md. If it still contains {{PLACEHOLDER}} values, stop and tell the user: "The project isn't initialized yet — run /init first so the tech stack and vision are set, then come back to /requirements."
  2. Read docs/PRD.md to see the project vision (seeded by /init).
  3. Read features/INDEX.md to see existing features and the next available feature ID.

If the PRD has a vision but features/INDEX.md has no features yet: → Init Mode (break the project into its first batch of feature specs). If features already exist: → Feature Mode (add a single feature).

Use the feature-ID scheme from .claude/rules/stack.md (feature_id_prefix, default feat). Examples below use feat-XXXX illustratively — use the project's actual prefix.


INIT MODE: Break the project into features

Phase 1: Confirm the big picture

The vision is already in docs/PRD.md (from /init). Fill any gaps with AskUserQuestion:

  • Must-have features (MVP / P0) vs. next (P1) vs. later (P2)?
  • Dependencies or a natural build order?
  • Any features the user explicitly does NOT want (non-goals)?

Phase 2: Complete the PRD

Expand docs/PRD.md into: Vision, Target Users, Core Features roadmap (prioritized table P0/P1/P2 with status + spec link), Success Metrics, Constraints, Non-Goals.

Phase 3: Break down into features (Single Responsibility)

  • Each feature = ONE testable, deployable unit.
  • Identify dependencies; suggest a recommended build order.
  • Present the breakdown for review: "I've identified X features. Here's the breakdown and build order:"

Phase 4: Create feature specs (after approval)

  • One spec per feature using template.md.
  • Save to features/<prefix>-XXXX-feature-name.md.
  • Include user stories, acceptance criteria, edge cases, and dependencies.

Phase 5: Update tracking

  • Update features/INDEX.md with all new features + statuses, and the "Next Available ID" line.
  • Verify the PRD roadmap matches the specs.

Init Mode Handoff

"Setup complete: PRD finalized, X feature specs created. Recommended first feature: feat-0001 ([name]). Next step: run /architecture to design the technical approach for feat-0001."


FEATURE MODE: Add a single feature

Phase 1: Understand the feature

  • Check you're not duplicating an existing feature (read features/INDEX.md; scan existing modules using the project's source layout — see .claude/rules/stack.md).
  • Ask with AskUserQuestion: who are the users, must-have behaviors for MVP, expected behavior for key interactions?

Phase 2: Clarify edge cases

Ask about edge cases with concrete options: duplicate data, error handling, validation rules, offline / partial-failure behavior.

Phase 3: Write the feature spec

  • Use template.md. Create features/<prefix>-XXXX-feature-name.md.
  • Assign the next available feature ID from features/INDEX.md.
  • Fill the Skill Commands section: replace <prefix>-XXXX with the real feature ID and delete the command lines that don't apply to this project/feature (check .claude/rules/stack.md: ui == none → drop /ux + /frontend; feature needs no backend → drop /backend; deploy == none → drop /deploy). The block must be copy-paste-runnable as-is.

Phase 4: User review

Present the spec; "Approved" → ready for architecture, "Changes needed" → iterate.

Phase 5: Update tracking

  • Add the feature to features/INDEX.md with status Planned; bump "Next Available ID".
  • Add the feature to the PRD roadmap table.

Feature Mode Handoff

"Feature spec ready! Next step: run /architecture to design the technical approach."


CRITICAL: Feature Granularity (Single Responsibility)

Each feature file = ONE testable, deployable unit.

Never combine: multiple independent functionalities; CRUD for different entities; user + admin functions; different UI areas/screens.

Splitting rules: Can it be tested independently? Deployed independently? Different user role? Separate UI component/screen? → each "yes" suggests its own feature.

Document dependencies:

## Dependencies
- Requires: feat-0001 (User Authentication) — for logged-in user checks

Important

  • NEVER write code — that's for /frontend / /backend.
  • NEVER create tech design — that's for /architecture.
  • Focus: WHAT the feature does, not HOW.

Checklist

Init Mode: vision confirmed; PRD complete; features split by Single Responsibility; dependencies documented; specs created with stories/AC/edge-cases; INDEX.md updated; build order recommended; user approved. Feature Mode: feature questions answered; 3–5 user stories; every AC testable; 3–5 edge cases; feature ID assigned; Skill Commands section filled (real ID, non-applicable lines removed); file saved; INDEX.md + PRD roadmap updated; user approved.

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.