Sign In

@specsafe/cli

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@specsafe/cli

Skills-first TDD framework for AI-assisted development

Source
npmnpm
Version
2.0.2
Version published
Weekly downloads
3
-86.96%
Maintainers
1
Weekly downloads
 
Created
Source

SpecSafe

SpecSafe is a skills-first TDD framework for AI-assisted development. It provides a structured 5-stage workflow that keeps AI agents aligned with human intent through specifications, test-driven implementation, and QA gates — regardless of which AI coding tool you use.

The 5-Stage Workflow

SPEC → TEST → CODE → VERIFY → QA → COMPLETE
StageSkillPersonaWhat happens
SPECspecsafe-new, specsafe-specKai (Mason)Create and refine a spec with requirements, acceptance criteria, scenarios
TESTspecsafe-testReva (Forge)Generate test files from spec scenarios — all tests start skipped
CODEspecsafe-codeZane (Bolt)TDD red-green-refactor: unskip one test, write code to pass, repeat
VERIFYspecsafe-verifyLyra (Warden)Run tests, validate against spec, loop back on failure
QAspecsafe-qa, specsafe-completeLyra (Warden), Cass (Herald)Full QA report with GO/NO-GO, then human approval gate

Additional utility skills:

SkillPersonaPurpose
specsafe-initCass (Herald)Initialize a new SpecSafe project
specsafe-exploreElena (Scout)Pre-spec exploration and research
specsafe-statusCass (Herald)Project dashboard with spec counts and metrics
specsafe-doctorCass (Herald)Validate project health
specsafe-archiveCass (Herald)Archive obsolete specs

Quick Start

# Install
pnpm add specsafe

# Initialize a project
specsafe init my-project

# Install skills for your AI tool
specsafe install claude-code    # Tier 1: full skills
specsafe install aider          # Tier 2: conventions
specsafe install continue       # Tier 3: prompts

# Check project health
specsafe doctor

Skills Reference

All 12 canonical skills:

SkillDescription
specsafe-initInitialize project — creates dirs, config, PROJECT_STATE.md
specsafe-explorePre-spec exploration and research mode
specsafe-newCreate a new spec with unique ID and initial requirements
specsafe-specRefine spec with detailed requirements, criteria, scenarios
specsafe-testGenerate test files from spec scenarios (all tests start skipped)
specsafe-codeTDD implementation — unskip tests one at a time, write code to pass
specsafe-verifyRun tests, validate against spec, loop on failure
specsafe-qaFull QA validation with report and GO/NO-GO recommendation
specsafe-completeHuman approval gate — moves spec to COMPLETE
specsafe-statusProject dashboard with spec counts by stage
specsafe-archiveArchive obsolete or abandoned specs
specsafe-doctorValidate project health and configuration

Agent Personas

PersonaRoleArchetypeStages
ElenaExploration LeadScoutEXPLORE
KaiSpec ArchitectMasonSPEC
RevaTest EngineerForgeTEST
ZaneImplementation EngineerBoltCODE
LyraQA InspectorWardenQA, VERIFY
CassRelease ManagerHeraldCOMPLETE, STATUS, ARCHIVE, INIT, DOCTOR

Supported Tools

ToolTierOutput
claude-code1 — Full Skills.claude/skills/*/SKILL.md + CLAUDE.md
opencode1 — Full Skills.opencode/skills/*/SKILL.md + .opencode/command/*.md
cursor1 — Full Skills.cursor/skills/*/SKILL.md + .cursorrules
continue3 — Prompts.continue/prompts/*.md + agent config
aider2 — Conventions.aider.conf.yml + CONVENTIONS.md
zed2 — Conventions.zed/prompts/*.md
gemini2 — ConventionsGEMINI.md
antigravity2 — ConventionsAGENTS.md

Configuration

specsafe.config.json

{
  "project": "my-project",
  "version": "1.0.0",
  "tools": ["claude-code"],
  "testFramework": "vitest",
  "testCommand": "pnpm test",
  "coverageCommand": "pnpm test --coverage",
  "language": "typescript",
  "specsafeVersion": "2.0.0"
}

PROJECT_STATE.md

Tracks the current state of all specs in the project:

# Project State — my-project

## Active Specs
| ID | Title | Stage | Owner |
|----|-------|-------|-------|

## Completed Specs
| ID | Title | Completed |
|----|-------|-----------|

## Metrics
- Total specs: 0
- Active: 0
- Completed: 0

Further Reading

  • Tool Support Guide — per-tool setup details
  • Persona Guide — how each persona works

Keywords

tdd

FAQs

Package last updated on 02 Apr 2026

Related posts