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

latest
Source
npmnpm
Version
2.2.3
Version published
Weekly downloads
51
5000%
Maintainers
1
Weekly downloads
 
Created
Source

SpecSafe

SpecSafe is a two-phase software engineering framework for AI-assisted development. It provides structured planning workflows to reduce ambiguity, then enforces test-driven implementation through small spec slices — regardless of which AI coding tool you use.

For the full canonical workflow, see docs/SPECSAFE-CANONICAL-WORKFLOW.md.

Two-Phase Workflow

PHASE 1: PLANNING
brainstorm → principles → brief → PRD → UX → architecture → readiness

PHASE 2: DEVELOPMENT
spec slice → tests → implementation → verify/QA → complete (or loop back)

Phase 1: Planning

Planning removes ambiguity before implementation begins. Each planning skill produces an artifact that informs the next stage.

StepSkillDescription
1specsafe-brainstormDivergent exploration of possibilities
2specsafe-principlesProduct principles, non-goals, quality priorities
3specsafe-briefConcise product/business framing document
4specsafe-prdTestable requirements with user journeys and acceptance criteria
5specsafe-uxUX design: tokens, components, flows, accessibility
6specsafe-architectureSystem architecture with ADRs and technology decisions
7specsafe-readinessPre-development coherence check: GO / NEEDS REVISION / BLOCKED

Phase 2: Development

Development begins only after the change is understood well enough to be implemented as a small spec slice.

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

Quick Start

# Install globally
npm install -g @specsafe/cli

# 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

21 canonical skills:

Planning Skills

SkillDescription
specsafe-brainstormDivergent exploration before converging on a solution
specsafe-principlesProduct principles, non-goals, and quality priorities
specsafe-briefCreate a concise product brief — problem, users, scope, success criteria
specsafe-prdExpand brief into full PRD with user journeys, FRs, NFRs
specsafe-uxUX design foundations — tokens, components, accessibility, flows
specsafe-architectureSystem architecture — components, data model, ADRs, technology stack
specsafe-readinessPre-development coherence and readiness check

Development Skills

SkillDescription
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

Utility Skills

SkillDescription
specsafe-initInitialize project — creates dirs, config, PROJECT_STATE.md
specsafe-explorePre-spec exploration and research mode
specsafe-contextGather and present project context for AI agents
specsafe-statusProject dashboard with spec counts by stage
specsafe-archiveArchive obsolete or abandoned specs
specsafe-doctorValidate project health and configuration
specsafe-skill-creatorCreate new SpecSafe skills with proper structure and validation

Agent Personas

PersonaRoleArchetypeStages
ElenaExploration LeadScoutEXPLORE
KaiSpec ArchitectMasonSPEC, BRIEF, PRD
RevaTest EngineerForgeTEST
ZaneImplementation EngineerBoltCODE
LyraQA InspectorWardenQA, VERIFY
CassRelease ManagerHeraldCOMPLETE, STATUS, ARCHIVE, INIT, DOCTOR
AriaUX DesignerPrismUX
NolanSystem ArchitectSageARCHITECTURE

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.rules + .zed/settings.json
gemini1 — Full Skills.gemini/skills/*/SKILL.md + .gemini/commands/*.toml + GEMINI.md
antigravity1 — Full Skills.agent/skills/*/SKILL.md + .agent/rules/specsafe.md + AGENTS.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

Keywords

tdd

FAQs

Package last updated on 06 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts