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

spec

Skill2 starsChanged 5 months agoMITView on GitHub

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

168 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

  • 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

  • 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

  • +2 more from Saqlain-811

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 145 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 145 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.