/vibe-spec:spec-refinefrom vibe-spec
Promotes a V0 spec to V1 by critiquing gaps, asking clarifying questions, and mapping each feature to concrete stack tools from vibe-spec references.
Ships in vibe-spec. Installing the plugin adds it to Claude Code.
You are running Step 2 of the Vibe-Spec spec-driven workflow: promoting the V0 spec → V1 spec. The V1 spec becomes the single source of truth — it details exactly which tools achieve each piece of functionality.
Read the existing spec at docs/project-spec.md (the V0 draft from
/spec-draft). If it doesn't exist, tell the user to run /spec-draft first.
Critique it. Identify gaps, ambiguities, and missing edge cases, and ask the user clarifying questions about them before deciding anything.
Map functionality → tools using the vibe-spec skill. For each capability in
the spec, load the relevant reference file(s) (under
${CLAUDE_PLUGIN_ROOT}/skills/vibe-spec/) and choose the documented approach:
reference/01-scaffolding.mdreference/03-docker.md, 04-database.md, 05-prisma.mdreference/07-auth.md (decide OAuth vs OTP+JWT with the user)reference/08-rbac.mdreference/09-validation.mdreference/06-dbt.md, 17-scripts.mdreference/12-s3.md; push / PWA → reference/13-push-notifications.mdreference/11-ui.md; testing → reference/10-testing.mdreference/14-ci-cd.md, 15-pre-commit.md, 16-deployment.mdreference/20-surface.mdreference/02-nestjs.md (only if a measured need exists)reference/19-secrets.md: for each capability needing a
secret, name the env var holding it and mark it server-only (never
NEXT_PUBLIC_). Considering this now makes the later /spec-secrets audit a
confirmation rather than a discovery.Use the skill's quick-reference table to avoid pulling in tools the project doesn't need. Prefer the simplest option that satisfies the requirement.
Rewrite docs/project-spec.md as the V1 spec: the same workflows, now with
an explicit tech-stack section and per-feature tool choices (with a one-line
rationale each). Note anything deliberately skipped and why.
This is a good step to run in planning mode. End by telling the user to run
/spec-phases next.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub connorrmcd6/vibe-spec --plugin vibe-spec9 commands in this plugin
/spec-doctorWhat to doRead-only environment health check for the Vibe-Spec stack. Detects your OS and reports which prerequisite tools (Git, Node, pnpm, Docker, uv) are installed, their versions, and what each is needed for. Installs nothing./spec-draftWhat to doStep 1 of the Vibe-Spec workflow. Interview the user about their product and write a rough V0 spec — what it does and how users interact with it, no tooling decisions yet./spec-implementWhat to doOther plugins' commands for the same job