agentleFS
KoshuxKoshux/agentic-sdlc-scaffold/.github/skills/create-spec/SKILL.md

create-spec

Skill0 starsChanged 4 months agoMITView on GitHub

Author a new SPEC-NNN contract in docs/specs/ from a problem statement, feature plan, or gap analysis. Use when asked to \"create a spec for X\" or to turn a plan into an implementable contract. Produces the input the implement-spec skill consumes — this skill never branches, implements, runs tests, or merges.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-spec, create-plan and 6 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.
  • dekozaSkill

    review-spec

    Use when a diff must be reviewed against the spec, ticket, or issue that originated it — missing requirements, scope creep, and requirements implemented wrongly — producing cited findings and nothing else. One axis of a two-axis review, independently invocable. Triggers on: "spec review", "does this match the ticket", "review the PR against the spec", "did we build what was asked", "spec axis". Does not judge code style — that is review-standards.

    Also in 4 projects that use this

  • JetBrainsSkill

    create-plan

    Research the codebase and create an implementation plan with architecture notes, design document, and track decomposition. Use when starting a new feature or large change.

    Also in 3 projects that use this

  • AWSSkill

    ship-it

    Ship work in the llm-evaluation-system repo end-to-end — commit with conventional-commit messages, push to a feature branch (never directly to main), open a PR with the proper title format, and after merge either run `make release` to publish to PyPI or just clean up branches. Use this skill whenever the user says ship/commit/push/open a PR/release/publish, or after code changes are done and ready to go out. Don't invent your own git workflow — invoke this skill so the repo conventions (conventional commits, manual release, setuptools-scm tag flow, branch cleanup) are applied consistently.

    Also in 3 projects that use this

  • VercelSkill

    vercel-react-best-practices

    React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

    Also in 3 projects that use this

  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 3 projects that use this

  • BlockSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If handed a draft plan or scratch file, mine it for the problem statement and journey, then let the spec supersede it.

    line 17

“Common” is measured: kept by at least 6 in 10 of the 17 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

Create Spec — spec-as-contract authoring

A spec is a contract: the single handoff artifact between planning and implementation, and between assistants. It must stand alone — an implementer holding only the spec and the repo should need zero clarifying questions.

Canonical skeleton: docs/templates/SPEC-TEMPLATE.md. Worked example: docs/examples/SPEC-001-task-quick-filters.md. Lifecycle: docs/sdlc.md.

Pre-flight

  1. Pick the number. List docs/specs/ and take the next free top-level number. Gap analysis on an unmerged spec is an iteration, not a new number: name it SPEC-NNN<letter>-<short-name>.md (lowercase suffix, no separator), header **Iteration of:** SPEC-NNN, and the work stays on the parent's feature branch. See .claude/rules/00-core-workflow.md.
  2. Read what it touches. Related specs (capture under Depends on: with a reason each) and the area rules the contract must respect (database, backend, frontend, ux).
  3. If handed a draft plan or scratch file, mine it for the problem statement and journey, then let the spec supersede it.

Required sections

Match docs/templates/SPEC-TEMPLATE.md exactly — if this summary and the template ever disagree, the template wins:

# SPEC-NNN: <Title>

**Status:** Draft | In Progress | Merged
**Created:** YYYY-MM-DD
**Author:** Operator + Agent
**Priority:** Low | Medium | High — <one-line justification>
**Risk Level:** Low | Medium | High — <what drives the risk>
**Iteration of:** <SPEC-NNN when this is an iteration spec, else "—">
**Related:** <SPEC-NNN links, or "None">
**Depends on:** <SPEC-NNN (reason) for a sequencing dependency on a genuinely separate spec, else "None">
**Feature branch:** `feature/spec-NNN-<short-name>`

## 0. Problem Statement          — the gap, concrete symptoms, root cause
## 1. Goal
## 2. Non-Goals
## 3. Journey                    — Before / After, from the user's seat
## 4. Scope & Contract           — 4.1 API contract · 4.2 Schema & validation contract · 4.3 UI contract
## 5. Acceptance Criteria        — | ID | Criterion | Verification |
## 6. Risks & Mitigations        — | # | Risk | Severity | Mitigation | (at least four rows)
## 7. Implementation Phases      — each phase cites the AC IDs it satisfies
## 8. Test Plan                  — with the literal "**Containers required:**" line
## 9. Dependencies & Coordination
## 10. Open Questions

Authoring rules (non-negotiable)

  • Every AC is verifiable. Section 5 is a table with a Verification column on every row — API test, unit test, DB query, migration up/down, browser check. Never "feature works correctly".
  • Risks table is mandatory. At least four real risks, each with severity and mitigation. A spec whose risks section says "none identified" has not been read hard enough — read it again.
  • Containers required is explicit. The Test Plan (§8) keeps the literal **Containers required:** line naming the exact compose services verification needs (e.g. postgres-main api-core) so the implementer's preflight involves zero guesswork.
  • Schema implications are sketched in section 4 (a Prisma sketch, plus a note that the change runs migrate → pnpm db:generate → pnpm zod:generate), even if details shift during implementation.
  • Mutations name their invariants. State which mutations write the audit log, which broadcast SSE, and that soft-delete semantics hold. Silence here is how invariants get dropped.
  • One contract per spec. Scope = one PR. Split independently shippable phases into separate specs and defer explicitly in §2 (Non-Goals).
  • Handoff boundary stated. Browser verification and merge to main belong to the operator; the implementing agent pushes a branch and stops.

Stage 2.5 — before handoff

A written spec is not implementable until it passes spec-review (Stage 2.5) against the live codebase, with every HIGH finding resolved in the spec. Record the pass under the spec header. Only a trivial doc-only spec is exempt.

Cross-assistant handoff

The spec is assistant-neutral: it may be authored in Copilot or Claude Code, and implemented by either via its implement-spec twin (Copilot · Claude), optionally driven by a per-spec prompt file generated with create-spec-prompt. Keep workflow policy out of the spec body — link the rules instead. The spec carries the what; the rules carry the how.

Anti-patterns

  • ACs without a Verification entry, or "works correctly" criteria.
  • A risks section that says "none identified".
  • "Containers required" left implicit — the implementer's preflight then guesses.
  • Branching, implementing, or running tests from this skill. It is contract-only.
  • Mixing independently shippable phases into one spec.
  • A new top-level number for gap analysis on an unmerged spec (use SPEC-NNN<letter>).
  • Workflow policy pasted into the spec body — duplication drifts; link the canonical rules.

Spec / problem statement: $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.