agentleFS
bedomaxbedomax/webdesigner-agent/.claude/skills/spec-writing/SKILL.md

spec-writing

Skill1 starsChanged 4 months agoMITView on GitHub

Spec creation workflow. Use ALWAYS before starting work on any GitHub issue or feature — creates the spec document at /specs/<issue-number>-<slug>/spec.md, in English, before any code is written.

17 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 2

    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. Distinctive:

    No code is written before the spec exists.

    line 8
  2. Very specific:

    If no issue exists yet, create one first: gh issue create --title "..." --body "..." — the spec needs its number.

    line 23
  3. Distinctive:

    All specs are written in English, regardless of the language used in conversation with the user.

    line 27

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

No code is written before the spec exists. This is the first step of every issue and every feature.

Location Rule (strict)

/specs/<issue-number>-<issue-slug>/spec.md
  • At the repository root, always.
  • <issue-number>: the GitHub issue number.
  • <issue-slug>: issue title → lowercase → strip non-alphanumerics → spaces to hyphens → max ~50 chars.
  • Examples:
    • Issue #7 "Fix broken contact form on Safari" → /specs/7-fix-broken-contact-form-on-safari/spec.md
    • Issue #23 "Add pricing page" → /specs/23-add-pricing-page/spec.md
  • Supporting assets (diagrams, screenshots, API samples) live in the same folder.
  • If no issue exists yet, create one first: gh issue create --title "..." --body "..." — the spec needs its number.

Language Rule (strict)

All specs are written in English, regardless of the language used in conversation with the user. Same for commits, PR descriptions, and code comments.

Spec Structure

Copy /specs/TEMPLATE.md. Sections:

  1. Overview: issue link, one-paragraph summary, type (fix/feature).
  2. Problem / Goal: for fixes — root cause analysis; for features — user need and lead-generation impact.
  3. Proposed Solution: the approach, described concretely enough that another engineer could implement it.
  4. Architecture Decisions: numbered ADs with context, decision, alternatives, consequences.
  5. Scope: what is included and explicitly what is NOT.
  6. Implementation Plan: affected/new files, data changes, migrations, ordered steps.
  7. SEO & Performance Impact: meta/structured-data changes, Core Web Vitals considerations (when relevant).
  8. Test Plan: how the change is verified — automated tests, manual checks, devices/breakpoints.
  9. Risks & Rollback: what could break, how to revert.

Workflow Position

issue → spec (this skill) → branch → implement → verify → PR

The branch is created AFTER the spec: fix/<number>-<slug> or feat/<number>-<slug>. The spec is committed as the first commit on the branch with message: docs: add spec for #<number>.

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.