agentleFS
abhattacherjeeabhattacherjee/claude-code-skills/spec-implement/SKILL.md

spec-implement

Skill1 starsChanged 2 months agoMITView on GitHub

Implements a previously created and reviewed story spec end-to-end: reads the spec, creates a feature branch, implements all sub-tasks with progress tracking, validates acceptance criteria, updates tracking files, and creates a PR. Optionally delegates to separately-installed brainstorming, frontend-design, and ui-from-requirements skills for complex UI work. Use when: (1) user says /spec-implement or 'implement this spec', (2) a story spec has been created and reviewed and is ready for implementation, (3) user provides a spec file path to implement.

  • Commits and pushes

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. 0 are common, 9 are distinctive, and 12 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 12

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting, determine workflow and create the task checklist:

    line 23
  2. Distinctive:

    Create all tasks from manifest at start (TaskCreate)

    line 45
  3. Very specific:

    If a task fails, keep it in_progress and report the error

    line 47
  4. Very specific:

    Read design guidelines: if spec references them — specs/design-guidelines.md

    line 58
  5. Very specific:

    UI-heavy: if spec: adds new DS components, creates new pages, or references frontend-design / ui-from-requirements

    line 61
  6. Distinctive:

    If the spec involves:

    line 88
  7. Very specific:

    Run npm run lint: after each sub-task if changes are substantial (catch errors early)

    line 110
  8. Very specific:

    Import DS components from @/design-system (never direct paths)

    line 114
  9. Very specific:

    Use th-* tokens for colors (never text-white, bg-black)

    line 115
  10. Very specific:

    Use font-[Orbitron] or font-[Rajdhani] only (never font-sans)

    line 116
  11. Very specific:

    All mock data in src/data/ with TypeScript interfaces (never inline arrays)

    line 117
  12. Very specific:

    All user-facing strings via import { t } from '@/i18n' (never hardcoded)

    line 118
  13. Very specific:

    Use cn() from @/lib/utils for conditional classnames

    line 119
  14. Very specific:

    If any new DS component was added to packages/design-system/src/components.tsx, add a corresponding section to …

    line 129
  15. Very specific:

    Run the target project's build and lint commands (discovered in Phase 1.

    line 139
  16. Distinctive:

    Read the error output

    line 140
  17. Distinctive:

    Run a verification command (grep, read, or build) to confirm the change

    line 152
  18. Distinctive:

    Run the verification (grep, build, lint, or note as browser-only)

    line 162
  19. Distinctive:

    Add PR number to the PR column

    line 188
  20. Distinctive:

    Update the epic-level summary (stories completed count, progress percentage)

    line 189
  21. Distinctive:

    Test plan (from spec's Test Plan section)

    line 233

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

Path convention: ./scripts/… and ./references/… below are relative to this skill's own base directory — announced as "Base directory for this skill" when the skill is invoked. A Bash tool call's working directory is the user's project, not the skill directory, so prefix these with that base directory when running them. Paths written without the leading ./ (for example scripts/ or tests/ inside a search over the codebase) refer to the target project being worked on, not to this skill.

Implements a reviewed story spec end-to-end — from branch creation to PR.

Usage

/spec-implement <spec-file-path>
/spec-implement specs/stories/epic-0/story-0.1-touch-targets-accessibility.md

Progress Tracking (MANDATORY)

Before starting, determine workflow and create the task checklist:

./scripts/task-manifest.sh standard    # Default
./scripts/task-manifest.sh ui-heavy    # If spec adds new DS components or pages

Standard workflow (7 tasks):

#TaskActive form
1Read spec and discover project conventionsReading spec and project conventions
2Create feature branchCreating feature branch
3Implement sub-tasksImplementing sub-tasks
4Validate build and lintValidating build and lint
5Verify acceptance criteriaVerifying acceptance criteria
6Update tracking and changelogUpdating tracking files
7Create PRCreating pull request

UI-heavy workflow (9 tasks): adds "Assess complexity and invoke design skills" after branch creation and "Update ComponentShowcase" before validation.

Update rules:

  • Create all tasks from manifest at start (TaskCreate)
  • Mark in_progress before starting each task, completed after
  • If a task fails, keep it in_progress and report the error
  • On abort, mark remaining as deleted

Workflow

Phase 1: Read Spec & Discover Conventions

TaskUpdate: task 1 in_progress

  1. Read the spec file — extract: title, epic, sub-tasks, acceptance criteria, files to modify, DS components used, i18n requirements, mock data requirements
  2. Read project CLAUDE.md files — understand branching strategy, commit conventions, deployment commands
  3. Read design guidelines if spec references them — specs/design-guidelines.md
  4. Identify tracking file — typically specs/mvp-ux-tracking.md
  5. Determine workflow type:
    • UI-heavy if spec: adds new DS components, creates new pages, or references frontend-design / ui-from-requirements
    • Standard otherwise

TaskUpdate: task 1 completed

Phase 2: Create Feature Branch

TaskUpdate: task 2 in_progress

Branch from the integration branch identified in Phase 1 — develop under Git Flow, main on a single-trunk repo. The commands below assume Git Flow; substitute the discovered branch name.

git checkout develop
git pull origin develop
git checkout -b feature/<story-slug>

Branch name: feature/story-{epic}.{story}-{kebab-slug} (e.g., feature/story-0.1-touch-targets-accessibility).

TaskUpdate: task 2 completed

Phase 3: Assess Complexity (UI-heavy only)

TaskUpdate: task 3 in_progress (ui-heavy only)

Each Skill(...) below is an optional external plugin. If it is not installed, implement that step directly and note the skip.

If the spec involves:

  • New pages with significant UI — invoke Skill(superpowers:brainstorming) or Skill(frontend-design:frontend-design) for aesthetic direction before coding
  • New DS components + pages + data — invoke Skill(ui-from-requirements) for full pipeline
  • Incremental fixes to existing pages — skip, implement directly

Most Epic 0 (compliance) stories are standard. Epics 1-5 (new features) are more likely UI-heavy.

TaskUpdate: task 3 completed (ui-heavy only)

Phase 4: Implement Sub-Tasks

TaskUpdate: task 3/4 in_progress (depending on workflow)

For each sub-task in the spec:

  1. Read the target file(s) — understand current state before modifying
  2. Implement the changes described in the sub-task
  3. Check off acceptance criteria — edit the spec file to mark each criterion:
    - [x] Bell, logout, collapse toggles compute >= 44px  ✅ verified via grep
    - [x] No `p-1.5` remaining on interactive icon buttons  ✅ zero matches
  4. Run npm run lint after each sub-task if changes are substantial (catch errors early)

Implementation rules — EXAMPLE ONLY, from the authoring project's CLAUDE.md:

Replace these with the rules you actually read from the target project's CLAUDE.md in Phase 1. They are shown as an illustration of the KIND of rule to extract, not as defaults to apply.

  • Import DS components from @/design-system (never direct paths)
  • Use th-* tokens for colors (never text-white, bg-black)
  • Use font-[Orbitron] or font-[Rajdhani] only (never font-sans)
  • All mock data in src/data/ with TypeScript interfaces (never inline arrays)
  • All user-facing strings via import { t } from '@/i18n' (never hardcoded)
  • Use cn() from @/lib/utils for conditional classnames

Parallelization: If sub-tasks modify independent files with no shared state, use parallel Agent calls to implement 2-3 sub-tasks simultaneously. Only parallelize when files don't overlap. Verify each dispatched sub-task's claims before advancing (MANDATORY). A parallel Agent narrates its result back to you; that narration is a claim, not evidence. Verify each against ground truth in your own context per ./references/delegated-verification.md — a Write/Edit sub-agent can return "done" without writing the file (test -f <path> && grep -Fc "<change-unique sentinel>" <path>), and background agents must be told to SendMessage their result (an idle-completion notification is not a deliverable). Self-implemented sub-tasks don't narrate a claim and are covered by Phase 6's existing verification — do not duplicate this step there.

TaskUpdate: task 3/4 completed

Phase 4b: Update ComponentShowcase (UI-heavy only)

TaskUpdate: task 5 in_progress (ui-heavy only)

If any new DS component was added to packages/design-system/src/components.tsx, add a corresponding section to src/components/sportsbook/ComponentShowcase.tsx with:

  • Live preview of the component
  • Copyable code snippet

TaskUpdate: task 5 completed (ui-heavy only)

Phase 5: Validate Build & Lint

TaskUpdate: task 4/6 in_progress

Run the target project's build and lint commands (discovered in Phase 1; npm run build / npm run lint on a typical npm project). Both must pass with zero errors. If either fails:

  • Read the error output
  • Fix the issue
  • Re-run until clean

TaskUpdate: task 4/6 completed

Phase 6: Verify Acceptance Criteria & Execute Test Plan

TaskUpdate: task 5/7 in_progress

6a. Acceptance criteria check-off — walk through every acceptance criterion in the spec. For each:

  1. Run a verification command (grep, read, or build) to confirm the change
  2. Edit the spec file to check off the criterion and add evidence:
    - [x] All 10 files use `<SectionHeader>`  ✅ grep confirms zero custom h2 headers
    - [x] Visual output identical  ⏳ requires manual browser check
  3. Criteria needing manual browser verification: mark with ⏳ and add to PR test plan

6b. Execute test plan — walk through the spec's Test Plan section. For each item:

  1. Run the verification (grep, build, lint, or note as browser-only)
  2. Edit the spec file to check off each test plan item:
    - [x] `npm run build` passes  ✅
    - [x] `npm run lint` passes  ✅
    - [x] DevTools: all icon buttons >= 44×44px  ⏳ browser manual
  3. Output a results table summarizing pass/fail/manual for each item

6c. Check off Definition of Done — edit the spec file's Definition of Done section:

- [x] All sub-tasks complete
- [x] `npm run build` passes
- [x] `npm run lint` passes
- [x] Responsive: verified at 375px, 768px, 1280px  ⏳ browser manual
- [x] PR created and reviewed

TaskUpdate: task 5/7 completed

Phase 7: Update Tracking & Changelog

TaskUpdate: task 6/8 in_progress

  1. Update tracking file — edit specs/mvp-ux-tracking.md:
    • Change story status from Not Started to Complete
    • Add PR number to the PR column
    • Update the epic-level summary (stories completed count, progress percentage)
  2. Update CHANGELOG.md — add entry under [Unreleased]:
    ### Changed
    - Story 0.1: Touch targets increased to 44px minimum, semantic HTML landmarks, ARIA tablist pattern
  3. Update spec status — edit the spec file's metadata:
    **Status**: Complete
  4. Commit tracking updates separately from implementation (clean history):
    git add specs/ CHANGELOG.md
    git commit -m "docs: update tracking for Story {E}.{S} completion"

TaskUpdate: task 6/8 completed

Phase 8: Create PR

TaskUpdate: task 7/9 in_progress

  1. Stage and commit — use conventional commit format:
git add -A
git commit -m "feat: <story title> (Story {E}.{S})

<Summary of changes>

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>"
  1. Push and create PR:
git push -u origin feature/<story-slug>
gh pr create --base develop --title "feat: <story title> (Story {E}.{S})" --body "..." # use the integration branch identified in Phase 1
  1. PR body must include:
    • Summary of changes (from spec sub-tasks)
    • Link to spec file: **Spec**: specs/stories/epic-{E}/story-{E}.{S}-*.md
    • Test plan (from spec's Test Plan section)
    • Files changed count
  2. Return the PR URL to the user.

TaskUpdate: task 7/9 completed

Skill Delegation Matrix

Every Skill(...) referenced in this matrix is an optional external plugin that ships separately from this one. If one is not installed, implement that step directly and note the skip.

Spec characteristicDelegate toWhen
New pages with creative UISkill(superpowers:brainstorming)Before coding, to align on design direction
New DS components + full page buildSkill(ui-from-requirements)When spec describes a complete new UI surface
Frontend aesthetic decisionsSkill(frontend-design:frontend-design)When spec says "design a new page" without specific wireframes
Multiple independent sub-tasksAgent (parallel)When sub-tasks touch different files with no overlap
Post-implementation code reviewSkill(superpowers:verification-before-completion)Before claiming work is done

Error Recovery

ErrorRecovery
Build fails after implementationRead error, fix, re-run build
Lint failsRead error, fix, re-run lint
Merge conflict with developgit pull origin develop --rebase, resolve conflicts
Spec references file that doesn't existCheck if file was renamed; grep for the component/function name
Acceptance criterion can't be metReport to user with explanation; don't skip silently

See Also

These are separate skills that may not be installed alongside this plugin.

  • spec-creator — creates the specs this skill implements
  • spec-review — reviews specs for accuracy before implementation
  • git-flow:finish — merges the feature branch after PR approval
  • ui-from-requirements — full UI build pipeline for complex specs

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.