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.

96 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tickets, make-pdf 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.
  • toveruxSkill

    tickets

    Break a spec, plan, or the current conversation into tracer-bullet tickets, each declaring its blocking edges.

    Also in 3 projects that use this

  • chloropineSkill

    make-pdf

    Turn any markdown file into a publication-quality PDF. Proper 1in margins, intelligent page breaks, page numbers, cover pages, running headers, curly quotes and em dashes, clickable TOC, diagonal DRAFT watermark. Not a draft artifact — a finished artifact. Use when asked to "make a PDF", "export to PDF", "turn this markdown into a PDF", or "generate a document". (cgstack) Voice triggers (speech-to-text aliases): "make this a pdf", "make it a pdf", "export to pdf", "turn this into a pdf", "turn this markdown into a pdf", "generate a pdf", "make a pdf from", "pdf this markdown".

    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 5 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • chloropineSkill

    context-restore

    Restore working context saved earlier by $context-save. Loads the most recent saved state (across all branches by default) so you can pick up where you left off — even across Conductor workspace handoffs. Use when asked to "resume", "restore context", "where was I", or "pick up where I left off". Pair with $context-save. Formerly /checkpoint resume — renamed because Codex treats /checkpoint as a native rewind alias in current environments. (cgstack)

    Also in 3 projects that use this

  • GoogleSkill

    metrics

    Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.

    Also in 3 projects that use this

  • +1 more from chloropine

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 79 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 79 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. Ready for /plan on the first feature."

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.