spec-setup

A guided setup command for the Vibe-Spec development stack. It checks which tools a project needs, identifies missing ones, and proposes installation commands one at a time.

In plain words
What is it for?
Use it to prepare a machine for a project by checking tools such as Git, Node, pnpm, Docker, and other dependencies, with confirmation before each installation.
Why use it?
It avoids installing unnecessary software and keeps environment changes under the developer's control.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/connorrmcd6/vibe-spec/spec-setup
Clone the repo
git clone --depth 1 https://github.com/Connorrmcd6/vibe-spec
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 721 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00055 $0.00721
Opus 5 $0.00028 $0.00360
Sonnet 5 $0.00011 $0.00144
Haiku 4.5 $0.00006 $0.00072

Measured 2d ago against content hash 965b7158b92a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spec-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/spec-setup.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are running /spec-setup: a guided, confirm-each-step onboarding that gets the user's machine ready by installing only the tools their project needs. Consult the vibe-spec skill (${CLAUDE_PLUGIN_ROOT}/skills/vibe-spec/reference/18-prerequisites.md) for the tool list, detection commands, and OS-specific install methods.

Hard rules

  • Never auto-install. Propose the exact command and wait for the user to confirm before running anything. If they decline, just print the command for them to run themselves.
  • Never run sudo without surfacing it explicitly and getting confirmation.
  • Prefer user-space installers (Corepack for pnpm, fnm/nvm for Node, uv, Colima for Docker) over system-wide package changes.
  • Handle one tool at a time, in dependency order.
  • Skip tools that are already present — just note the version.

What to do

  1. Consult reference/18-prerequisites.md.

  2. Determine the required tool set (spec first):

    • If docs/project-spec.md exists, read it and infer the needed tools from the features and the tool mappings written during /spec-refine:
      • any web app ⇒ Git, Node, pnpm
      • Postgres / Prisma / a local database ⇒ Docker
      • dbt / data pipelines / transforms ⇒ uv
      • Git is always required
    • Otherwise, use the $ARGUMENTS project type if given, else ask the user which it is (static / crud / api / data). Map it to references via the "what do I need?" table in SKILL.md, then to tools.
    • Tell the user the resolved tool set and why, before proceeding.
  3. Detect what's already installed (same checks as /spec-doctor), scoped to the required set. Detect the OS first. For Docker, also check the daemon (docker info).

  4. For each MISSING tool, in dependency order (Git → Node → pnpm → Docker → uv):

    • State what it's for and the recommended OS-specific install command from the reference (prefer Corepack for pnpm, fnm/nvm for Node).
    • Ask the user to confirm before running it. On confirmation, run it; if they decline, print the command and move on.
    • Re-run that tool's detection to verify it now works before continuing. If it still fails, suggest /spec-troubleshoot and the reference's alternate install method.

Read the full file on GitHub · 56 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 56 lines · 55 tokens per session scan A 965b7158b92a

Subscribe to this mod's changes

spec-setup is a command published in the GitHub repository Connorrmcd6/vibe-spec (9 stars, last pushed 1mo ago), licensed MIT. It adds 55 tokens to every session and 721 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.