agentleFS
mehrad-dmmehrad-dm/mastermind/skills/specify/SKILL.md

specify

Skill23 starsChanged 2 months agoMITView on GitHub

Use when a feature is going to be built spec-first and needs its specification written or revised: \"write the spec for X\", \"spec this feature\", \"start a new feature: ...\", \"turn this idea into requirements\", an assessed idea that got a go, or any feature that spans sessions or people, or touches money, auth, data migration or a public contract. Not for a small clear change (that's `build`), and not for questioning a fuzzy ask before anything is written (that's `interview`).

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use discovery, discover and 8 more.

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

    discovery

    Quick user-centric interview to capture requirements from a time-poor stakeholder.

    Also in 3 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 4 projects that use this

  • MicrosoftSkill

    spec-review

    Independent, multi-model review of a design or spec **before** any code is written, for the microsoft/winappcli repo. Activate when a contributor asks to "review this spec", "review my design", "review this design doc", "validate this approach", "should we build this", "spec review", "design review", or "feature review". Fans out parallel sub-agents — each doing its OWN research against the real codebase and ecosystem rather than trusting the spec — covering necessity & scope, approach & alternatives, feasibility vs reality, risks & unknowns, DX & user impact, and a different-model-family cross-check. Emits a decision-oriented recommendation (proceed / proceed-with-changes / reconsider) to stdout. This is the PRE-CODE companion to the pr-review skill (which reviews code already written); use spec-review at the design/spec stage, not on an implemented diff. Does NOT write code or edit the spec.

    Also in 3 projects that use this

  • sahinSkill

    execute

    Also in 3 projects that use this

  • Microsoft AzureSkill

    validate

    Run the full CI validation workflow locally before submitting a PR. Use this as a final check to ensure all Azure DevOps CI pipeline steps will pass.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    design

    Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

    Also in 5 projects that use this

  • +1 more from Azure

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Name things once: Add each new domain word to the glossary in .mastermind/brief.md, creating the file or the section if it is missing, and …

    line 28
  2. Very specific:

    Write checklists/requirements.md in the feature folder and test the spec against it:

    line 42

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

MasterMind: Specify

The spec says what and why, for a reader who does not code. The how comes later, in blueprint. Read ~/.mastermind/engineering/core/spec-driven.md for the layout, IDs and lifecycle. Feature: $ARGUMENTS.

Write it

  1. Open the folder. Pick the next number in specs/ and a two-to-four word name: specs/012-csv-export/. Revising an existing spec? Work in that folder instead. Search specs/ and the code for the concept first: a feature that already exists is amended, never specified twice.
  2. Start from the template. specs/.templates/spec.md if present, else template.md.
  3. Read what bounds it. specs/constitution.md, specs/product.md, the brief's glossary, and any earlier spec this one amends.
  4. Write user stories in priority order. P1 alone is a usable product. Each story carries an independent test: how someone would see it working with no lower-priority story built. A story may rely on a higher-priority one; its test then assumes only those.
  5. Write acceptance criteria with their trigger inside, numbered per story (US1/AC1), in the four shapes interview uses: When, While, If ... then, Where.
  6. Write functional requirements (FR-001), each testable alone, and success criteria (SC-001), each measurable from the user's side with no technology named.
  7. Fill the rest. Key entities (no fields or types yet), edge cases, out of scope, and assumptions.
  8. Name things once. Add each new domain word to the glossary in .mastermind/brief.md, creating the file or the section if it is missing, and use those exact words in the spec.

Gaps: guess well, mark the few that matter

Fill a gap with the reasonable default for this kind of product and record it under Assumptions. Mark a gap [NEEDS CLARIFICATION: <question>] only when all three hold: it changes scope, security or the user's experience; two readings lead to different products; and no default is reasonable.

Three markers at most. Rank by scope, then security and privacy, then experience, then technical detail. Past three, the rest become assumptions. Then run interview on the spec to resolve them.

Check it before handing it on

Write checklists/requirements.md in the feature folder and test the spec against it:

  • No technology, framework, library or API named anywhere
  • Every requirement is testable and has one reading
  • Every success criterion is measurable and names no technology
  • Every story has an independent test and at least one acceptance criterion
  • Edge cases, out of scope and assumptions are filled
  • Every domain word matches the glossary in .mastermind/brief.md
  • No more than three clarification markers remain

Fix what fails and re-check, at most three rounds. Anything still failing is listed in the checklist's notes and in your report. Set the status line to draft. Only interview sets clarified: a spec with no markers still gets its scan for the gaps nobody marked.

Gotchas

  • Technology is a leak. "Use Postgres", "a React modal", "cache in Redis" decide the how before the plan exists. Replace each with the need it serves. The product's own surface is not technology: the commands a CLI user types, or the screens a user sees, belong in the spec.
  • "Fast", "intuitive", "secure" are not requirements. Each needs a number or a named behavior.
  • A story that cannot ship alone is a layer. "Set up the database" is a task, never a story.
  • Do not invent the business. Who pays, legal limits, and pricing come from product.md, business.md or the user. Never from inference.
  • One feature per folder. A title that joins two outcomes that ship separately is two features. Split it now. One capability with two parts, such as tagging notes and filtering by tag, is one.

Report

The folder, the stories with priorities, the checklist result, any marker still open, and the next step: interview, which runs its clarification pass on every spec.

Then run mastermind next and end with the step it names, so the user sees where the feature stands.

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.