agentleFS
justincordovajustincordova/agents/skills/spec/SKILL.md

spec

Skill1 starsChanged 4 months agoMITView on GitHub

Use when starting a new project or when design decisions need to be documented or updated. Creates and maintains the project-level specification.

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

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 5

    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:

    Create and maintain docs/SPEC.md — the single source of truth for the project's design decisions, architecture, and constraints.

    line 10
  2. Distinctive:

    Document key decisions and WHY you made them

    line 96
  3. Distinctive:

    Keep architecture high-level — boxes and arrows, not code

    line 97
  4. Distinctive:

    Call out edge cases and risks early

    line 98
  5. Distinctive:

    Leave open questions as open questions (don't guess)

    line 99
  6. Distinctive:

    Update existing sections when decisions change — don't leave stale info

    line 100

“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

Writing Specs

Overview

Create and maintain docs/SPEC.md — the single source of truth for the project's design decisions, architecture, and constraints. This is NOT an implementation plan. It's the "what and why" document that plans will later reference.

Announce at start: "Using spec skill to update the project specification."

Save to: docs/SPEC.md

What the Spec Is

A living document that captures the current state of the project's design. SPEC.md is updated via sync-docs (which merges implemented design docs) or via direct edits through this skill. Think of it as a product brief + technical design that evolves with the project.

Spec Document Structure

# [Project Name]

## Vision
[2-3 sentences. What is this? Why does it exist? What problem does it solve?]

## Goals
- [What success looks like — measurable if possible]
- [Who the users are and what they need]
- [Key outcomes]

## Non-Goals
- [What this project explicitly does NOT cover]
- [Scope boundaries — helps prevent scope creep]

## Architecture
[High-level technical approach. Key technologies, patterns, infrastructure. Not implementation details — just the big structural decisions.]

### Key Components
- [Component 1]: [what it does]
- [Component 2]: [what it does]

### Data Flow
[How data moves through the system. Can be prose, can be a simple diagram.]

## Key Decisions
| Decision | Choice | Rationale |
|----------|--------|-----------|
| [e.g., Database] | [e.g., PostgreSQL] | [Why this over alternatives] |

## Edge Cases & Constraints
- [Known gotchas, edge cases, constraints]
- [Performance requirements]
- [Security considerations]

## Open Questions
- [Things that haven't been decided yet]
- [Things that need user input]

## References
- [Links to docs, inspirations, existing systems, etc.]

Invocation Modes

The spec skill is invoked in two situations.

Mode 1: Direct edit

Triggered when SPEC.md needs changes but no design doc is involved. Common cases:

  • User invokes the skill directly to update SPEC.md
  • The user wants to explicitly edit the spec outside of sync-docs
  1. Read SPEC.md
  2. Apply targeted edits from user instructions
  3. Present diff to the user for approval
  4. Save

Mode 2: Initial project spec (greenfield)

Triggered by brainstorm when no SPEC.md exists yet. The SPEC.md is the design artifact for project initialization.

  1. Interview — ask questions one at a time to fill gaps (vision, goals, non-goals, architecture, key decisions)
  2. Draft the spec
  3. Present for review
  4. Revise and save

Note: design doc merging is handled by sync-docs, not by the spec skill. When sync-docs runs, it merges any implemented design docs into SPEC.md and deletes them.

Writing Good Specs

Do:

  • Be specific about goals but not about implementation
  • Include non-goals — they're as important as goals
  • Document key decisions and WHY you made them
  • Keep architecture high-level — boxes and arrows, not code
  • Call out edge cases and risks early
  • Leave open questions as open questions (don't guess)
  • Update existing sections when decisions change — don't leave stale info

Don't:

  • Include implementation tasks or step-by-step plans (that's for the plan skill)
  • Include code snippets (unless illustrating a contract or API shape)
  • Get bogged down in edge cases — list them, don't solve them
  • Duplicate information across sections

When to Update

Update docs/SPEC.md whenever:

  • The user directly invokes the spec skill to make changes (Mode 1)
  • Starting a new project with no SPEC.md (brainstorm triggers Mode 2)
  • sync-docs merges an implemented design doc into SPEC.md (handled by sync-docs, not this skill)

The spec should always reflect the CURRENT state of the project's design, not historical decisions that were overridden.

Never updated from brainstorm or plan. Brainstorm writes a design doc. Plan reads it. SPEC.md gets updated when the user runs sync-docs or directly invokes the spec skill.

After the Spec

Once SPEC.md is updated:

  • Mode 1 (direct edit): "SPEC.md updated."
  • Mode 2 (greenfield): "Initial spec saved at docs/SPEC.md."

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.