Skip to content

About

Spec-driven development plugin for Claude Code. SpecManager gives you an agile AI team that takes a feature from interview → PRD → Architecture → Design → Plan → Build → Walkthrough.

Topics

Resources

Stars

27 stars

Watchers

0 watching

Forks

Latest commit

 

History

507 Commits

Folders and files

Repository files navigation

SpecManager

Listed on ClaudePluginHub

Your AI product team, as a Claude Code plugin.

As a non technical founder or product vibe coder you already have the builder — Claude Code. What you don't have is the rest of the team: the product manager who pins down the problem, the architect who fits it to your codebase, the planner who breaks it into shippable pieces, the reviewer who checks the work against the plan.

SpecManager is that team. It gives you a set of specialised AI agents organised like an agile squad: the agents draft, you review, edit, and approve, and you decide what moves forward. It's spec-driven development you can actually see — a kanban board running on your own machine, one row per feature, one column per stage: PRD → Architecture → (Design) → Plan → Build → Walkthroughs, plus a research rail before any feature exists.

Everything the team produces is plain markdown saved inside your project, so it reads like documents, not code, and your version history keeps every draft. It runs entirely on your own machine — single-user, private, no login.

specmanager.org · MIT licensed


Happy Specmanager

Your team

Each role is its own specialised agent — not one mega-prompt wearing different hats:

  • Researcher (optional) — works before there's a feature to build: a short brief, market research, Docs (wireframes, one-pagers, presentations), a user-research plan and a marketing plan, then findings from your interviews and a strategy whose build list becomes features.
  • Product manager — drafts the PRD, and can run an optional pre-PRD interview that pulls the idea out of your head and stress-tests it before you write anything down.
  • Architect — reads your actual codebase (its structure, conventions, the pieces already there) before designing, so "we'll add X" always points at something real instead of a guess.
  • Designer (optional) — produces high-fidelity screen mockups grounded in a shared design system, so the look stays consistent across features.
  • Tech lead — breaks the architecture into phases and small, scored tasks, defaulting to the smallest increment that actually ships something.
  • Builder — implements one phase at a time, task by task, saving its work as it goes.
  • Reviewer — read-only; checks each finished phase against the spec and returns a plain pass/fail verdict, or asks for you when it couldn't run a phase's UI check. It can't change anything.
  • Tech writer — documents what actually shipped, per phase, so you always have a record.

The agents hand off to each other through approved documents, not a hidden shared memory — and none of them approves its own work. That's your call. You stay in the loop by design: an agent can't move to the next stage until you've approved the current one. Claude can't start the Architecture until you've approved the PRD, because that rule lives in the software itself, not in instructions the AI could talk its way around. The one exception is opt-in: /specmanager:specmanager-loop approves each planning document for you when you ask it to, still going through the same gates, and stops before any code is built.

"Approved" is a commitment, not a freeze. Reopen an earlier document and every later one that depended on it gets a gentle "stale — worth a re-read" badge that follows the chain of dependencies. And because edits are tracked carefully, a late agent write can never overwrite a change you made by hand.

Good habits, built in

The team comes with established product and engineering practice baked in — and when you have the matching Claude Code plugins installed, the agents defer to them automatically (and work fine without them). /specmanager:specmanager-init offers the ones you're missing:

  • Sharper idea stress-testing — the optional pre-PRD interview uses the gstack office-hours forcing-question method to interrogate an idea before any PRD exists, like the cofounder who asks "who is actually desperate for this today?"
  • Agile planning discipline — a phase is defined as a working, testable increment; the planner defaults to a single phase and has to ask before splitting one. Tasks are scored, and anything too big must be broken down.
  • Up-to-date library docs — init offers the context7 plugin, which gives the writers and the builder current library docs instead of model memory. The architect also looks up an unfamiliar library's docs on demand. Without it, the agents fall back to what the model already knows.
  • Visual taste — the designer and builder defer to the official frontend-design skill when it's installed, layered on top of your design system, which stays the source of truth.
  • Execution discipline — the builder defers to Superpowers, when installed, for how it carries out each task.

What's new since 1.0.3

  • The spec loop — /specmanager:specmanager-loop takes a one-line idea to an approved Plan in one run, and stops before Build. More
  • A builder gate per task — the gate now judges each builder as it finishes, checks only the tasks that builder was given, and blocks only the one that keeps failing. It never gates your chat. More
  • A build that asks first — build confirms a git strategy, asks for any human prerequisites, and pauses when a builder needs you. More
  • A reviewer that checks the UI — when a phase changes a screen, the reviewer drives its happy path before passing it. More
  • Research — studies, a Researcher mode on the board, /specmanager:specmanager-research and /specmanager:specmanager-research-loop, and a handoff that turns a strategy's build list into features. More
  • Init helps you set up — it offers four recommended plugins and asks which other repos your project works with. More

Quick start

# 1. Add the marketplace (from GitHub)
/plugin marketplace add joanseg/specmanager

# 2. Install
/plugin install specmanager@specmanager

# 3. Restart Claude Code: quit and reopen it, or reload your IDE window

# 4. In your project, set up SpecManager (it offers recommended plugins and asks about other repos) and open the board
/specmanager:specmanager-init
/specmanager:specmanager-board

# 5. Take your first idea to an approved Plan
/specmanager:specmanager-loop <idea>

Prefer to go one stage at a time? Start with /specmanager:specmanager-interview <idea> or /specmanager:specmanager-prd "<title>" instead of the loop.

Example of a Specmanager board: Specmanager board

That's it — no build step. The compiled server and UI are committed, and Claude Code installs the plugin's runtime dependencies when it installs the plugin.

Requirements: Node 20+ and Claude Code. The board runs at http://127.0.0.1:4317, or the next free port if that one is taken (change the preferred port in the plugin's user config).


Set up with init

/specmanager:specmanager-init is safe to run again: it only adds what's missing and never touches your text outside its markers. It:

  1. Writes the managed files — .claude/specs/ (with manifest.json, the board's index), a managed block in CLAUDE.md, and docs/DESIGN.md, a design-system spec inferred from your UI source.
  2. Offers the recommended plugins you don't have yet.
  3. Asks about other repos your project works with.
  4. Runs Claude Code's own /init to fill in the general codebase docs in CLAUDE.md, outside SpecManager's markers.

Recommended plugins

Init checks which of these you already have and offers the missing ones in one question. It installs only what you pick, one at a time. When it can't ask you (a headless run), it installs nothing and prints the install commands instead. After an install, restart Claude Code (quit and reopen it, or reload your IDE window).

Plugin Used by What it adds Without it
superpowers builder test-first work, systematic debugging and a two-stage review a plain build loop
frontend-design designer, builder on UI tasks visual judgement, still grounded in docs/DESIGN.md docs/DESIGN.md only
context7 all writers and the builder current library docs model memory only
playwright reviewer, on web UI a browser to walk the happy path the build asks you to add it, check the UI yourself, or waive the check

All four come from claude-plugins-official. If your session already has Chrome DevTools tools (mcp__chrome-devtools__*), playwright counts as installed — init never suggests both.

Working across several repos

The layout is flexible. This is the ideal case: one folder named for your project, a specs repo inside it where you run Claude Code and SpecManager, and your product repos beside it.

<project>/
├── <project>-specs/     # run Claude Code and SpecManager here
│                        # CLAUDE.md, docs/, .claude/specs/features/…
├── backend/
├── frontend/
└── another-repo/
../external-repo/        # a repo outside the project folder

From <project>-specs/, pass init the other repos' paths. Use absolute paths: a relative one resolves against the SpecManager server's working directory, which may not be the folder you typed it in.

/specmanager:specmanager-init /path/to/<project>/backend /path/to/<project>/frontend /path/to/<project>/another-repo /path/to/external-repo
  • The paths are the read grant. SpecManager reads only those repos' CLAUDE.md and DESIGN.md, and writes nothing into them. Every write stays inside the specs repo.
  • A mirror per repo. Each repo gets repos/<name>/ in the specs repo, named after its folder: its CLAUDE.md with a read-only banner (or a stub), its DESIGN.md (or a placeholder when it has no UI), and .specmanager-repo.json, which records where it came from relative to <project>/ — backend, or ../external-repo. The managed CLAUDE.md block links each one.
  • Re-run to add more. New paths are added and existing mirrors are kept byte-for-byte, so your notes in them survive. A folder name that clashes with a repo declared from somewhere else is reported and skipped. Run init with no paths and it lists the repos already declared and asks whether to add others.
  • Say where work lands. Describe each repo and its working branch in the specs repo's CLAUDE.md, outside SpecManager's markers, so every session starts from it.

The workflow

Each feature is a row on the board that flows left to right through the lifecycle. You drive it with slash commands; Claude does the drafting via dedicated subagents, and you approve each stage in the board before the next unlocks.

# Spec
/specmanager:specmanager-interview "Checkout corridor" # OPTIONAL pre-PRD interview — extracts & stress-tests the idea
/specmanager:specmanager-loop "Checkout corridor"      # OPTIONAL intent → approved Plan in one go (auto-approves, stops before Build)
/specmanager:specmanager-prd "Checkout corridor"       # create the feature + draft its PRD → approve in board
/specmanager:specmanager-architecture   <feature>       # draft the Architecture   → approve in board
/specmanager:specmanager-design         <feature>       # OPTIONAL high-fi HTML mockups → approve
/specmanager:specmanager-plan           <feature>       # plan.md + phased tasks   → approve in board

# Build
/specmanager:specmanager-build          <feature> next  # build one phase, task by task, then stop
/specmanager:specmanager-walkthrough    <feature> <phase>   # per-phase walkthrough (build drafts it for you)
/specmanager:specmanager-walkthrough    <feature> final     # feature-level roll-up

# Research
/specmanager:specmanager-research-loop  "<idea>"        # OPTIONAL brief → market → Docs → research plan → marketing plan, stops before findings
/specmanager:specmanager-research       <study> [step]  # one research step, starting the study if needed

# Setup and board
/specmanager:specmanager-init           [/abs/path ...] # set up, optionally with other repos
/specmanager:specmanager-board                          # open the kanban board anytime

<feature> is the feature's slug or id (reported by /specmanager:specmanager-prd when it creates the feature). A one-line summary of every command is in the plugin README.

/specmanager:specmanager-interview is optional: a multi-turn interview in your Claude session that pulls the idea out of your head and challenges it (using the gstack office-hours forcing-question method) before any PRD exists. The result can be stored as interview.md in the feature's PRD folder — shown as a chip on the board, never gating anything — and the PRD drafter grounds itself in it when present.

/specmanager:specmanager-loop is optional too: see The spec loop.

Stages and gates

Stage Produces Unlocks when
Interview (optional) interview.md recommended starting point, challenges your ideas and extracts context
PRD prd.md always (the entry point after interview if exists)
Architecture architecture.md PRD approved
Design (optional) high-fidelity HTML mockups PRD approved (runs in parallel with Architecture)
Plan plan.md + task records (tasks.json, rollup) Architecture approved (and Design, if one exists, approved)
Build no doc — it's execution Plan approved
Walkthroughs <slug>.md per phase + a final roll-up the phase's tasks are all done

Gates are enforced in shared code, not in prompts — Claude cannot draft a stage whose gate is closed. Plans are organised into phases, each a testable, runnable increment; tasks carry a Fibonacci complexity score and anything over 3 must be split. /specmanager:specmanager-build builds one phase and stops at its boundary.

Living docs

approved is a commitment, not a freeze. Reopen an approved doc and every downstream doc that depended on it gets a non-blocking stale badge — a "the basis changed, review me" signal. Regenerate or re-approve to clear it.


The spec loop

/specmanager:specmanager-loop <idea> takes a one-line intent to an approved Plan in one run:

  1. Says what it will do before writing anything — including that it approves each stage's document for you.
  2. Asks a few questions — at most two rounds of up to four, each with a recommended answer and a "decide for me" option. It always asks whether the feature has screens. If the feature already has an interview, it asks only what that leaves open.
  3. Drafts each stage through its own agent — PRD, Architecture, Design (only when the feature has screens), Plan — checking the gate first and approving each document as it lands.
  4. Reviews across the documents in one pass: contradictions, requirements dropped or invented between PRD, Architecture and Plan, tasks that don't match the plan, length caps and drift from your original intent. It fixes what's clear-cut.
  5. Asks what's still open and folds your answers into the documents. Questions you skip stay in each doc's Open questions.
  6. Stops before Build and reports each document and the next command, /specmanager:specmanager-build <slug> next.

It's the only command that approves anything, and it still goes through every gate: a closed gate or a failed draft stops it, and nothing is approved after a failure. Docs you've already approved are reused, and it never overwrites a draft you wrote. Pass an existing feature's slug first to continue that feature.

The builder loop

/specmanager:specmanager-build <feature> next builds one phase and stops at its boundary, so you check the work before the next one. In order, it:

  1. Checks the Plan is approved and that earlier phases are done (--force skips the order check).
  2. Confirms a git strategy — from your branches and history it proposes a base branch, a working branch, one commit per task and no pushing. Nothing is branched or committed until you answer, and it never commits to your base branch.
  3. Asks for human prerequisites the phase needs, such as an API key or a test account — now, or when a task actually needs them. Your answers stay in the session, never on disk.
  4. Dispatches one builder per task, at a model picked by the task's score: 1–2 → sonnet, 3 → opus (you can remap it). Tasks whose dependencies are done can run in parallel. --bulk builds the whole phase in one builder instead. A transient overload (529) is retried twice.
  5. Gates every builder as it finishes — see The builder gate.
  6. Pauses when a builder needs you. A builder that replies NEEDS_HUMAN: … hasn't failed: build asks you, then runs the same task again.
  7. Runs the read-only reviewer once every task is done. It checks the phase against the plan and the Architecture, and drives the happy path when the phase changes a UI (a browser on web, the simulator on iOS, adb on Android). It signs in with the test account you gave, which the build keeps in a git-ignored file under .claude/specs/.cache/test-accounts/. If it can't run the UI check (no browser, no login, the app won't start), it never passes the phase: you give it access, check the UI yourself, or waive the check, and the walkthrough records which. On a fail, a fix goes to a builder one tier higher; a fail that persists at the top tier marks the phase blocked.
  8. Drafts the walkthrough of what was built, including what happened along the way, then offers to re-sync CLAUDE.md and docs/DESIGN.md.

The builder gate

A SubagentStop hook — plain bash, no model calls — judges each builder as it finishes:

  • Every builder prompt starts with a Dispatch: line naming its tasks (Dispatch: task-007). The gate checks only those tasks are done.
  • The phase's tests run only when no task in the phase is left open.
  • A builder that fails is told what's left and keeps working. After 3 fails in one dispatch, only that task is marked blocked; the others stay open and the phase stops for you. Running build on the phase again resets the count.
  • It runs only when a specmanager:builder finishes during a build this session started. Your chat is never gated, so you can stop and ask anything mid-build.

Research

Some ideas need research before there's a feature to build. Switch the board to Researcher to see your studies: one row per study, with a Brief chip and the columns Market research · Docs · User research · Marketing plan · Strategy. Studies sit outside features, so they never touch a feature's gates, and research docs have no approval. Research runs in your own Claude session; the plugin makes no model or API calls of its own.

One step at a time

/specmanager:specmanager-research <study> [step] runs one step and stops. With no step, it runs the next one. A step waits for the ones it builds on; the brief is always open.

Step What you get
new a study, from a title and a one-line idea
brief five questions (idea, market, audience, goals, constraints) turned into a short brief that feeds every later step
market market size, competitors and revenue, drafted as three parallel jobs and merged into one doc
docs (alias concepts) the HTML Docs you pick: wireframes, a one-pager, a client or partner presentation, an investor deck, or your own type
plan a user-research plan for your interviews
marketing a marketing plan
findings what your interviews say, from your masked notes
strategy a strategy with a ranked build list
handoff features on the Builder board, from the build-list items you pick

The research loop

/specmanager:specmanager-research-loop <idea> asks every question up front — at most two rounds, including which Docs to make (before interviews it typically offers wireframes, a one-pager and a client presentation) — then drafts brief → market → Docs → user-research plan → marketing plan without pausing. It reviews the docs against each other and the brief (a source on every figure, length caps, drift), asks what's still open, and approves nothing. It stops before findings, because findings need real interviews.

Interviews, findings and strategy

Run the interviews from the plan, then drop transcripts or notes (.md, .txt, .pdf) in the study's notes/ folder, or paste them into the chat. They're masked before Claude reads them for findings: participant codes instead of names, and [redacted] for emails, phones and addresses. Findings never invent a score or a quote. Then run strategy.

Handoff to Builder

/specmanager:specmanager-research <study> handoff lists the strategy's build list (S1, S2, …) and asks which items to hand off. Each one becomes a new feature on the Builder board with an origin chip naming the study it came from; an item already handed off is skipped. From there it's a normal feature: start it with /specmanager:specmanager-prd <slug>.


The board

/specmanager:specmanager-board opens the board in one of two modes, switched with the Builder | Researcher toggle at the top. It updates live over websockets as Claude writes docs or you edit them.

Builder is a grid: one row per feature, one column per stage (PRD · Architecture · Design · Plan · Build · Walkthroughs).

  • Each cell is a card showing status (draft/approved), a stale badge, and whether it was generated by agent or human.
  • Clicking a card opens a doc panel drawer over the dimmed board to read, edit, and approve. HTML design docs render in a sandboxed <iframe>.
  • The Build cell groups tasks under collapsible phase headers with per-phase progress bars instead of a document.
  • The Walkthrough column shows one card per phase plus a final roll-up card that stays locked until every phase walkthrough is approved.
  • A feature handed off from research shows an origin chip naming its study.

Researcher shows one row per study (see Research); its Docs open in the same sandboxed preview.

SpecManager board in Researcher mode, one row per study

Edits you make in the board and writes Claude makes both flow through the same shared logic layer, so the two views never drift. AI writes use optimistic concurrency, so a stale agent write can't clobber your manual edits.


Where your work lives

Everything is markdown with YAML frontmatter under your project, version-controlled by git.

Option 1: run it inside the repo:

<your-project>/
  CLAUDE.md                         # carries a managed SpecManager block (between markers)
  docs/DESIGN.md                    # managed design-system spec (inferred from your UI)
  .claude/specs/
    manifest.json                   # rebuildable board index (derived from frontmatter)
    features/<slug>/
      feature.json
      prd/        press-release.md, prd.md
      architecture/ architecture.md
      design/     <mockups>.html
      plan/       plan.md, tasks.md, tasks.json
      walkthroughs/ <slug>.md
    research/<slug>/
      study.json                    # the study and its build list
      brief.md                      # plus one doc per step
      docs/       <doc>.html
      notes/      masked interview notes

Option 2: run it from a specs repo beside your product repos (see Working across several repos):

<project>/
  <project>-specs/
    CLAUDE.md                       # managed SpecManager block, linking each declared repo
    docs/DESIGN.md                  # managed design-system spec (inferred from your UI)
    repos/
      backend/                      # read-only mirror: CLAUDE.md, DESIGN.md, .specmanager-repo.json
      frontend/
      another-repo/
      external-repo/
    .claude/specs/
      manifest.json                 # rebuildable board index (derived from frontmatter)
      features/<slug>/              # as in Option 1
      research/<slug>/              # as in Option 1
  backend/
  frontend/
  another-repo/
../external-repo/

Frontmatter is authoritative; manifest.json is a cache you can delete and rebuild. The managed regions in CLAUDE.md and DESIGN.md live strictly between <!-- specmanager:start --> / <!-- specmanager:end --> markers — nothing outside them is ever touched.


Contributing / building from source

The plugin ships its compiled server/dist and ui/dist, so users install with no build step. Rebuild before committing source changes:

cd plugins/specmanager
npm ci                    # runtime dependencies (Claude Code installs these for end users)

cd server
npm ci && npm run build
npm run selftest          # core flow against a tmp dir
npm run selftest-directory  # directory conformance of the shipped plugin (the pre-release check)

cd ../ui
npm ci && npm run build   # → ui/dist, served by the board server

There are 16 self-tests, run by name with npm run <name> from server/. The full list, and what each one covers, is in CLAUDE.md.

Then reinstall in a test repo:

/plugin marketplace update specmanager
/plugin uninstall specmanager@specmanager
/plugin install specmanager@specmanager

Then restart Claude Code (quit and reopen it, or reload your IDE window) so the new build and its MCP server load.

Tech stack: Node 20+, TypeScript, MCP stdio transport, Fastify + ws, chokidar, gray-matter, zod, React-style UI on Preact + Vite, Milkdown. One shared @specmanager/core library backs both the MCP server (Claude's interface) and the board server (the UI's interface); one MCP process boots the board.

Repo layout: the marketplace manifest is at the repo root (.claude-plugin/marketplace.json); the plugin itself lives in plugins/specmanager/. Design docs are under docs/ (the original full spec is archived at docs/temp/original-specs/architecture-and-spec.md).


Troubleshooting

  • SpecManager's commands or tools are missing after install — restart Claude Code (quit and reopen it, or reload your IDE window). If that doesn't fix it, do a full restart: quit Claude (Ctrl-C twice), claude daemon stop, kill stragglers (ps aux | grep mcp.js), confirm the port is free (lsof -nP -iTCP:4317 -sTCP:LISTEN), then relaunch claude from your project.
  • Board won't open — the MCP process boots the board server on startup; if it isn't running, restart your Claude session. /specmanager:specmanager-board reports the URL so you can open it manually.

Links

License

MIT © 2026-present Joanseg

About

Spec-driven development plugin for Claude Code. SpecManager gives you an agile AI team that takes a feature from interview → PRD → Architecture → Design → Plan → Build → Walkthrough.

Topics

Resources

Stars

27 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages