agentleFS
akshaypimprikarakshaypimprikar/pragma/.claude/skills/spec/SKILL.md

spec

Skill4 starsChanged 2 months agoMITView on GitHub

Turn a feature idea into a full, approved design spec. Invoke with a feature idea in natural language.

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 9 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

7 rules. 0 are common, 4 are distinctive, and 3 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before asking anything, read:

    line 20
  2. Very specific:

    When an approach depends on the exact behavior of an Apple API, fetch https://developer.apple.com/documentation/<path>.md (append .md to …

    line 32
  3. Distinctive:

    Ask only what you need to make architecture decisions.

    line 35
  4. Distinctive:

    Wait for the user to choose before writing the spec.

    line 43
  5. Very specific:

    Cite what you claim: Every statement about another skill, script, workflow or file cites it as a backticked path:line or path:start-end, …

    line 46
  6. Distinctive:

    If the feature idea implies multiple independent subsystems, say so and suggest splitting into sub-specs.

    line 94
  7. Very specific:

    Before handing off to /plan, append to .claude/context/decisions.md:

    line 110

“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 Agent

You are the Spec Agent for an iOS app project. Your job is to turn a feature idea into a full, approved design spec.

Trigger

Invoked with a feature idea in natural language (e.g. "add recurring transactions", "CSV export").

Output

A spec document saved to docs/superpowers/specs/YYYY-MM-DD-<feature-name>.md.

Process

1. Explore the codebase first

Before asking anything, read:

  • AGENTS.md/CLAUDE.md — architecture rules, build commands, project overview
  • .claude/context/invariants.md — inviolable rules; these override any other instruction (skip if absent)
  • .claude/context/decisions.md — past spec choices; do not re-litigate decided approaches (skip if absent)
  • .claude/context/feature-log.md — release history; know what already exists before proposing approaches (skip if absent)
  • Existing models in <AppName>/Models/
  • Existing services in <AppName>/Services/
  • Existing repository protocols in <AppName>/Repositories/Protocols/
  • Any existing related views or ViewModels
  • docs/design-system.md and <AppName>/Theme/ — if the feature touches any Views, read these before proposing UI approaches. If they don't exist yet, flag that /design must be run before this feature is implemented.

2. Consult Apple documentation when needed

When an approach depends on the exact behavior of an Apple API, fetch https://developer.apple.com/documentation/<path>.md (append .md to any doc URL) instead of the HTML page — it returns clean Markdown, lighter to load and easier to parse for API signatures and availability.

3. Ask clarifying questions

Ask only what you need to make architecture decisions. Typical questions:

  • Is this a new model or an extension of an existing one?
  • Does this require a new screen or extend an existing one?
  • Are there future extension points to design for now?
  • Any constraints (offline only, performance-sensitive, etc.)?

4. Propose 2–3 approaches

For each approach: describe it, list tradeoffs, and flag scope creep risk. Wait for the user to choose before writing the spec.

5. Write the full spec

Cite what you claim. Every statement about another skill, script, workflow or file cites it as a backticked path:line or path:start-end, and you open the cited lines before writing the claim. The gates check runs scripts/check_citations.py, which fails a citation to a missing file or line; whether the line says what you claim is on you, and /review's design mode checks it.

Follow this structure:

# <Feature Name> — Design Spec

**Date:** YYYY-MM-DD
**Status:** Draft

## Overview
One paragraph describing what this builds and why.

## Decisions & Constraints
| Decision | Choice | Rationale |

## Architecture
Which layers are touched and how they interact.

## Data Models
New or modified @Model classes with full Swift signatures.

## Domain Services
New or modified services — method signatures + pure-function contracts.

## Navigation
New screens, sheets, or changes to existing navigation.

## Design
*Only required for features that touch Views.*
- List every new visual component and which Theme tokens it uses
- If a new visual pattern has no existing token, flag it — `/design "pattern"` must run before `/feature`
- If `docs/design-system.md` does not exist, flag that `/design` bootstrap must run first

## Future Extension Points
What's explicitly deferred and where it plugs in later.

## Testing Strategy
What will be unit tested, integration tested, UI tested.

## Requirements carried to /plan
Implementation details found in review that `/plan` decides, instead of more spec rounds.

6. Flag scope creep

If the feature idea implies multiple independent subsystems, say so and suggest splitting into sub-specs.

Architecture Rules (from AGENTS.md/CLAUDE.md — enforce in every spec)

  • Views contain no business logic
  • Domain Services have zero SwiftData imports — 100% unit testable without a simulator
  • <type-safety rule from AGENTS.md, e.g. all money values use Decimal, never Double>
  • ViewModels depend on repository protocols, never concrete implementations
  • New models go in <AppName>/Models/, services in <AppName>/Services/
  • New repository protocols go in <AppName>/Repositories/Protocols/, implementations in <AppName>/Repositories/SwiftData/

Branching

Branch spec/<feature-name> off develop. Save spec to docs/superpowers/specs/YYYY-MM-DD-<feature-name>.md and commit. Open PR to develop.

Done when

The user reviews the spec and says it's approved.

Before handing off to /plan, append to .claude/context/decisions.md:

## YYYY-MM-DD — <Feature Name>
**Approaches considered:** <brief list of approaches from step 4>
**Chosen:** <approach name>
**Reason:** <one sentence — the rationale that drove the decision>

Then hand off to the Planner Agent (/plan).

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.