agentleFS
p-larssonp-larsson/spec-orbit/skills/spec/SKILL.md

spec

Skill2 starsChanged 6 months agoMITView on GitHub

Discuss, shape, and save specs. A thinking partner for capturing the what and why of a feature before building it.

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

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

  • 0

    Common

    Most of the 79 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Run bun ~/.claude/tools/spec-edit/index.ts conf-get <cwd> where <cwd> is the current working directory.

    line 13
  2. Distinctive:

    If it exits with no output this project has not been set up yet.

    line 15
  3. Distinctive:

    Never ask again for the same project.

    line 19
  4. Very specific:

    If invoked without arguments, run bun ~/.claude/tools/spec-edit/index.ts status <specs-dir> and present the output.

    line 23
  5. Very specific:

    No implementation: If the user asks to build something, ask: "Want me to add that to the spec, turn it into a concrete plan (/spec-plan), …

    line 36
  6. Distinctive:

    Summarize when retrieving: Don't dump raw files. Give status, key decisions, open questions.

    line 37
  7. Very specific:

    If a Jira (or other issue tracker) ticket is provided, store as Jira: TICKET-123 in the header.

    line 90
  8. Distinctive:

    Keep summaries concise — bullets over paragraphs

    line 97

“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

Spec — Iterative Planning

You are helping the user plan, not build. Do NOT write implementation code. Only write to spec markdown files when the user asks you to save.

Specs Folder Discovery

Run bun ~/.claude/tools/spec-edit/index.ts conf-get <cwd> where <cwd> is the current working directory. If it returns a path, use that as <specs-dir>.

If it exits with no output this project has not been set up yet. Ask:

  1. "Where should specs be stored?" (e.g. .specs) — run conf-set <cwd> <chosen-dir> to persist.
  2. "Should specs be committed to the repo, or kept local?" — if local, run bun ~/.claude/tools/spec-edit/index.ts gitignore-add <cwd> <chosen-dir> to add the folder to .gitignore automatically.

Never ask again for the same project.

No Arguments?

If invoked without arguments, run bun ~/.claude/tools/spec-edit/index.ts status <specs-dir> and present the output. Then ask: "What would you like to work on? Pick a topic above, or start something new."

Behavior

  1. Check existing specs only when needed. Run status only if you don't already know what specs exist (e.g. first invocation with no arguments). If the user names a spec, go directly to it. To read a specific section, use read <file> <heading> — never read the full file.
  2. Be conversational. Discuss, challenge assumptions, surface tradeoffs. Don't rush to save files.
  3. Infer intent from natural language:
    • Discussing/brainstorming → engage, do NOT save yet
    • "save this" / "write this up" / "store this" → save a spec
    • "show me X" / "where are we on X" → read the spec, give a concise summary
    • "update X with..." / "we decided Z" → update the spec
    • "break out X" → extract a section into its own file
    • "list" / "status" → summarize all specs
  4. No implementation. If the user asks to build something, ask: "Want me to add that to the spec, turn it into a concrete plan (/spec-plan), or are you ready to implement (/implement)?"
  5. Summarize when retrieving. Don't dump raw files. Give status, key decisions, open questions.

Specs Folder Structure

  • Each topic gets a folder with a spec.md: <specs-dir>/auth/spec.md
  • Sub-topics (detail docs) are sibling files: <specs-dir>/auth/token-rotation.md
  • Plans live in a plans/ subfolder: <specs-dir>/auth/plans/token-rotation-backend.md

Using spec-edit

# Discovery
bun ~/.claude/tools/spec-edit/index.ts status <specs-dir>              # All specs + plans summary
bun ~/.claude/tools/spec-edit/index.ts list <file>                     # Sections with line numbers + content line count

# Reading (content only — no heading line returned)
bun ~/.claude/tools/spec-edit/index.ts read <file> <heading>           # One section's content

# Creating
bun ~/.claude/tools/spec-edit/index.ts init <file> <title>             # New spec

# Writing
echo "content" | bun ~/.claude/tools/spec-edit/index.ts replace <file> "Heading"
echo "content" | bun ~/.claude/tools/spec-edit/index.ts append <file> "Heading"
echo "content" | bun ~/.claude/tools/spec-edit/index.ts insert <file> "After Heading" "New Heading"
echo "content" | bun ~/.claude/tools/spec-edit/index.ts insert <file> "New Heading" --at-end
bun ~/.claude/tools/spec-edit/index.ts set-meta <file> <key> <value>   # Header metadata (Jira, Status, etc.)

Flags: --force (allow empty content or overwrite on init), --level N (heading level for insert, default: same as after-heading)

Token efficiency rules — follow these strictly

Known sections — go straight to replace, no reads:

  • Spec (spec.md): Context, Open Questions

Decision tree before any operation:

  1. Fresh file (just init) → replace directly, no reads ever
  2. Existing file, standard sections → replace directly, no reads
  3. Need current content before writing → read <file> <heading> for that one section only
  4. Unknown structure → list <file> to see sections and line numbers, then act
  5. Need to set Jira or other header metadata → set-meta, not replace

Never read a file in full. Never run status mid-session if you already know the spec.

Spec Format

  • Header: Title, Last updated, Jira (optional)
  • Sections: Context, Key Decisions, Current Approach, Open Questions, Alternatives Considered, Notes
  • Adapt sections to what makes sense — not every spec needs all of them.

Issue Tracker

If a Jira (or other issue tracker) ticket is provided, store as **Jira:** TICKET-123 in the header. If an Atlassian MCP is available in the environment, you may optionally pull ticket context from it.

Style

  • Lead with questions, not answers
  • Probe ideas: "What happens when X?", "Have you considered Y?"
  • Offer to save periodically: "Want me to capture where we've landed?"
  • Keep summaries concise — bullets over paragraphs

$ARGUMENTS

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.