SpecSafe
Getting Started

Installation

Install SpecSafe and configure it for your AI coding tool.

Prerequisites

  • Node.js >= 18

That's all you need. SpecSafe has no other system dependencies.

Install SpecSafe as a global command:

npm install -g @specsafe/cli

Then initialize your project:

specsafe init

The init command is interactive -- it will:

  1. Ask for your project name (defaults to the current directory name)
  2. Auto-detect which AI tools you use (by looking for .claude/, .cursor/, etc.)
  3. Let you select which tools to install skills for
  4. Ask for your test framework (vitest, jest, pytest, go test)
  5. Create all project files and install the selected tool skill files

Local installs won't expose the command

Running npm i @specsafe/cli (without -g) installs the package locally but does not add specsafe to your PATH. Use npm install -g @specsafe/cli for the global command, or use npx @specsafe/cli as a one-off alternative.

Supported AI tools

SpecSafe supports 8 AI tools. During specsafe init, you select which ones to install:

ToolDetected by
Claude Code.claude/ directory
Cursor.cursor/ directory
OpenCode.opencode/ directory
Aider.aider.conf.yml file
Zed.zed/ directory
Gemini CLI.gemini/ directory
Continue.continue/ directory
Antigravity.agent/ directory

Adding tools later

If you need to add a tool after initial setup, you can run specsafe install <tool-name> separately (e.g., specsafe install cursor).

What gets created

After running init and install, your project will contain:

  • specs/ -- Directory for active, completed, and archived specs
  • PROJECT_STATE.md -- Single source of truth for all spec status
  • specsafe.config.json -- Project configuration
  • Tool-specific skill files -- For example, Claude Code gets .claude/skills/specsafe-*/SKILL.md files

See Project Structure for the full breakdown.

Verify the installation

Run the doctor command to confirm everything is set up correctly:

specsafe doctor

This checks that your configuration is valid, skill files are in place, and the specs/ directory structure exists.

Troubleshooting

If specsafe doctor reports missing skill files, re-run specsafe install <tool> for your AI tool. If you see configuration errors, check that specsafe.config.json exists in your project root.