spec-kit-init

A setup command for GitHub Spec Kit, a workflow for developing from written requirements before planning and implementing code. It makes Spec Kit commands available in the current project.

In plain words
What is it for?
Use it to check required tools and prepare the project for constitution, specification, clarification, planning, task creation, and implementation steps.
Why use it?
It gives a project a structured requirements-to-implementation process while leaving installation of the separate `specify-cli` tool 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/cloudnative-co/claude-code-starter-kit/spec-kit-init
Clone the repo
git clone --depth 1 https://github.com/cloudnative-co/claude-code-starter-kit
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,437 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 3 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.00000 $0.01437
Opus 5 $0.00000 $0.00718
Sonnet 5 $0.00000 $0.00287
Haiku 4.5 $0.00000 $0.00144

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

Security

Grade E, and why

spec-kit-init scanned grade E with 3 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- `uv --version` (required; install hint if missing: `curl -LsSf https://astral.sh/uv/install.sh | sh`)

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Spec Kit's bash scripts (`.specify/scripts/bash/*.sh`) do NOT use `rm -rf`, `curl`, `wget`, `sudo`, or `git push --force`. They are compatible with the StarterKit's deny rules.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `uv --version` (required; install hint if missing: `curl -LsSf https://astral.sh/uv/install.sh | sh`)
commands/spec-kit-init.md · 118 lines

How it starts

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

/spec-kit-init - Bootstrap GitHub Spec Kit in the current project

Initialize GitHub Spec Kit (Spec-Driven Development workflow) inside the current project so that the /speckit-constitution, /speckit-specify, /speckit-clarify, /speckit-plan, /speckit-tasks, and /speckit-implement skills become available alongside the StarterKit's own commands.

This command is a thin guide layer — it does NOT install specify-cli itself. You install specify-cli once per machine via uv (or pipx), and this command shows you the canonical invocation for the current project. The StarterKit deliberately stays decoupled from Spec Kit's release cycle; uv tool upgrade specify-cli is how you keep Spec Kit current.

Instructions

You are entering Spec Kit Initialization. Walk the user through the 5 steps below in order. Do not execute heavy operations without confirmation; the user is in control.

Step 1 — Verify prerequisites

Run these checks and report their results to the user as a small table:

  • uv --version (required; install hint if missing: curl -LsSf https://astral.sh/uv/install.sh | sh)
  • python3 --version (≥ 3.10 required by specify-cli)
  • git --version (required)
  • claude --version (Claude Code itself; should already be installed if you're reading this)

If any of the first three are missing, STOP and ask the user how they want to proceed (install via Homebrew? via official installer? skip?). Do not run installers without explicit consent.

Step 2 — Install or update specify-cli (user-scope)

If specify --version does not return a version, run:

LATEST_TAG=$(gh api repos/github/spec-kit/releases/latest --jq .tag_name)
uv tool install specify-cli --from "git+https://github.com/github/spec-kit.git@${LATEST_TAG}"

If specify is already installed, offer to upgrade:

uv tool upgrade specify-cli

Confirm with specify --version and specify check | grep -i claude (the latter must show Claude Code (available)).

Read the full file on GitHub · 118 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 · 118 lines · 0 tokens per session scan E 1308bcdb657f

Subscribe to this mod's changes

spec-kit-init is a command published in the GitHub repository cloudnative-co/claude-code-starter-kit (147 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,437 tokens. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.