agentleFS
pcattoripcattori/skills/spec/SKILL.md

spec

Skill1 starsChanged yesterdayMITView on GitHub

Use when the user says 'spec', before any edit to spec/*.md, when refining domain terminology, developing or reviewing a behavioral specification, changing terminology or behavior while prototyping, or implementing against an existing spec.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backprop, ios-clean and 10 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.
  • JuliusBrusseeSkill

    backprop

    Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.

    Also in 4 projects that use this

  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 5 projects that use this

  • Saqlain-811Skill

    ios-fix

    Autonomous iOS bug fixer. (gstack)

    Also in 5 projects that use this

  • bastosSkill

    ios-design-review

    Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".

    Also in 5 projects that use this

  • timurgaleevSkill

    document-generate

    Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.

    Also in 6 projects that use this

  • ShreyRaviSkill

    plan-tune

    Self-tuning question sensitivity + developer psychographic for gstack (v1: observational). Review which AskUserQuestion prompts fire across gstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.

    Also in 7 projects that use this

  • +2 more from Saqlain-811

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 15

    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. Distinctive:

    Before writing to a spec file, show the change in the review format and wait for the user to approve it.

    line 21
  2. Distinctive:

    If you can't ask the user, as a subagent or delegate, don't edit the spec.

    line 27
  3. Distinctive:

    Read the existing spec at the start of a design discussion.

    line 33
  4. Distinctive:

    When changes are ready, present them separately in the review format.

    line 37
  5. Distinctive:

    Before acting on prototype or implementation feedback, check the relevant glossary entries and behavior rules.

    line 43
  6. Distinctive:

    When domain relationships are being discussed, stress-test them with specific scenarios.

    line 62
  7. Distinctive:

    When the user states how something works, check whether the code agrees.

    line 70
  8. Distinctive:

    Don't infer approval from usage.

    line 77
  9. Distinctive:

    Show the exact edits: Use display-diff to render the exact text changes for each item, then present the items together.

    line 95
  10. Distinctive:

    Label each item: Use the actual glossary term or capability heading when changing one, or a short review-only label for an individual …

    line 97
  11. Distinctive:

    Add Why below the diff only for an existing behavior edit that needs a sentence of context.

    line 100
  12. Distinctive:

    Put requirements in the proposed rule or example, not in Why.

    line 102
  13. Very specific:

    Use spec/ at the package root in a multi-package monorepo, or the repository root otherwise.

    line 106
  14. Distinctive:

    Put rules about what users can do and how the app responds in Behavior.

    line 118
  15. Distinctive:

    When a limit lifts, remove its entry and propose the behavior rules that replace it.

    line 177
  16. Distinctive:

    When implementing against a spec, read Implement the spec for how the glossary maps to domain types and schemas and behavior and scope map …

    line 182

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

Spec

Actively refine the domain's language and behavior as you design, prototype, and implement. Record terms in spec/glossary.md, capabilities, rules, and examples in spec/behavior.md, and temporary limits in spec/scope.md.

  • Term: a domain concept with a canonical name and precise meaning.
  • Capability: a coherent thing a caller can accomplish.
  • Rule: a guarantee or constraint within a capability.
  • Example: concrete preconditions, an action, and its expected outcome.
  • Limit: a deliberate, temporary gap between the intended contract and what's built.

Every spec edit needs approval

Before writing to a spec file, show the change in the review format and wait for the user to approve it. That holds however small the edit or whatever prompted it: syncing the spec with code, fixing review findings, or carrying out an agreed design. Approving a code change doesn't approve the spec edits that go with it.

If you can't ask the user, as a subagent or delegate, don't edit the spec. Return the proposed changes in the review format, using Markdown instead of HTML, so they can be presented for approval.

Review spec changes during design

Read the existing spec at the start of a design discussion. Use its glossary and behavior to challenge assumptions and check for concrete spec changes as the discussion progresses, including distinctions worth naming.

When changes are ready, present them separately in the review format. Wait for approval and record the approved changes before asking further design questions.

Keep the spec current

Before acting on prototype or implementation feedback, check the relevant glossary entries and behavior rules. Surface proposed spec changes in the same turn: is “Surprises” a canonical rename or just a screen label? Call out behavior changes separately. Leave styling, copy, and prototype shortcuts out unless they change the contract.

You can try an unsettled change in a prototype, but flag the mismatch and resolve it before implementing the affected behavior for real.

Refine the model

  • Clarify terminology

    Flag conflicts with the glossary immediately and propose precise terms when language is vague or overloaded. For example: “The glossary distinguishes Customer from User. Which do you mean by ‘account’?”

  • Discuss concrete scenarios

    When domain relationships are being discussed, stress-test them with specific scenarios. Invent edge cases that force the user to be precise about the boundaries between concepts. For example: "Can part of an order line's quantity be cancelled? If so, is cancellation a state of the line, or do we need a distinct Cancellation concept?"

  • Cross-reference with code

    When the user states how something works, check whether the code agrees. Surface contradictions: "Your code cancels entire Orders, but you just said partial cancellation is possible. Which is right?" Resolve the intended contract with the user; current behavior is evidence, not automatically the authority.

  • Propose, then record

    Don't infer approval from usage. Agree on the name and meaning before adding or revising a glossary entry. Don't prefill the glossary from a repo scan.

    Show the exact proposed changes for approval, individually or as a batch. Record only what the user approves, and do so promptly. Don't add defaults, edge cases, or guarantees. Keep proposals and open questions in chat.

  • Apply approved renames throughout the spec

    An approved canonical rename applies throughout the spec. Search for the old term and update every reference to that concept except intentional _Avoid_ entries; ask separately only if meaning or behavior changes.

Review proposed changes

  • Organize the review. Group proposed changes by spec file, omit empty sections, and number items continuously across files so the user can approve by number.
  • Show the exact edits. Use display-diff to render the exact text changes for each item, then present the items together.
  • Label each item. Use the actual glossary term or capability heading when changing one, or a short review-only label for an individual behavior rule.

Add Why below the diff only for an existing behavior edit that needs a sentence of context. Keep labels and Why out of the proposed file text. Put requirements in the proposed rule or example, not in Why.

Write the spec

Use spec/ at the package root in a multi-package monorepo, or the repository root otherwise. Read any existing spec before proposing changes. Create each file only when there's an approved change to record.

Glossary

In spec/glossary.md, define context-specific concepts in one or two sentences. Choose one canonical name and list competing names under _Avoid_.

Entries should capture the agreed domain schema: the attributes and relationships that define a concept, including which are required or optional when that's been decided. Use domain terms, not database or language types. Put rules about what users can do and how the app responds in Behavior.

# Glossary

**Event**: A gift-giving occasion with a required name and date, an optional
description, and a guest list that distinguishes invited guests from those
who've accepted.
_Avoid_: Gathering

Behavior

In spec/behavior.md, give each capability a heading named for a caller goal, not an implementation component. Order capabilities from the simplest useful behavior to richer cases and interactions as prerequisites allow.

Give each independent rule its own bold bullet, with supporting examples indented beneath it. Start with a simple example, then boundaries. Keep rejections beside the rules they enforce.

# Behavior

## Place an order

- **Placing an order requires at least one order line.**

  Placing an order with no lines fails with an empty-order error.

Scope

In spec/scope.md, record each decision to defer or stub something for now. Behavior describes the contract you intend to keep. Scope describes where the current build deliberately falls short of it. A restriction you never expect to lift is a behavior rule, not a limit.

Give each limit its own bold bullet. Give caller-visible limits an example, as you would a rule. Internal stubs need none. When a clear condition lifts the limit, end with an _Until:_ line naming it. Otherwise, leave it out.

# Scope

- **Only card payments are supported.**

  Placing an order paid by invoice fails with an unsupported-payment-method
  error.

  _Until:_ invoicing is available.

- **Tax calculation is stubbed.**

  Every order is taxed at 0%.

  _Until:_ the tax service is integrated.

When a limit lifts, remove its entry and propose the behavior rules that replace it.

Implementation

When implementing against a spec, read Implement the spec for how the glossary maps to domain types and schemas and behavior and scope map to tests.

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.