superpowers-spec
v1.0.1
Published
AI-native system for spec-driven development and test-driven development
Maintainers
Readme
Superpowers with Spec
Superpowers with Spec is an AI-native CLI for spec-driven development.
It combines:
- OpenSpec's structured artifact workflow and CLI foundations: proposal/design/tasks/spec lifecycle
- Superpowers' practical skill library for brainstorming, planning, execution, debugging, and verification
Project base references:
- OpenSpec: https://github.com/Fission-AI/OpenSpec
- Superpowers skills: https://github.com/obra/superpowers
What this project is
This repository is a fork/evolution focused on:
- OpenSpec-style rigor: explicit artifacts, traceable changes, predictable implementation flow
- Superpowers-style productivity: reusable skills that guide agent behavior in real coding sessions
- Tool-agnostic setup: generated skills/commands for many coding agents (including Codex)
See it in action
You: /sp:propose add-dark-mode
AI: Created superpowers/changes/add-dark-mode/
✓ proposal.md — why we're doing this, what's changing
✓ specs/ — requirements and scenarios
✓ design.md — technical approach
✓ tasks.md — implementation checklist
Ready for implementation!
You: /sp:apply
AI: Implementing tasks...
✓ 1.1 Add theme context provider
✓ 1.2 Create toggle component
✓ 2.1 Add CSS variables
✓ 2.2 Wire up localStorage
All tasks complete!
You: /sp:archive
AI: Archived to superpowers/changes/archive/2025-01-23-add-dark-mode/
Specs updated. Ready for the next feature.Quickstart
npm i -g superpowers-spec@latest && superpowers --versionInside your target project:
superpowers initMain commands
superpowers init— initialize project and tool assetssuperpowers update— refresh installed skills/commands from current profilesuperpowers list— list changes (or specs with flags)superpowers show— show artifacts/specssuperpowers validate— validate artifacts/specssuperpowers config profile— switch workflow profile
Core concepts
Superpowers with Spec manages change artifacts under superpowers/:
superpowers/changes/<change>/proposal.mdsuperpowers/changes/<change>/design.mdsuperpowers/changes/<change>/tasks.mdsuperpowers/changes/<change>/specs/...
And installs agent-facing assets under tool directories (for example):
.claude/skills,.claude/commands,.claude/hooks,.claude/agents.codex/skills, global Codex prompts under~/.codex/prompts, plus.codex/hooksand.codex/agents
Local development
Requirements
- Node.js >= 20.19.0
- pnpm (recommended) or npm
Install dependencies:
pnpm installBuild:
pnpm run buildRun tests:
pnpm testLint:
pnpm run lintRun CLI locally from repo:
node bin/superpowers.js --help
node bin/superpowers.js --versionInitialize in a project
Inside your target project:
superpowers initOr non-interactive:
superpowers init --tools codex
superpowers init --tools claude,cursor
superpowers init --tools allRepository structure
src/— TypeScript sourceskills/— bundled static skills copied to tool directorieshooks/— bundled hook filesagents/— bundled agent definitionsschemas/— schema templates and validation schematest/— Vitest test suite
Publish to npm
Before publish:
pnpm run build
pnpm test
pnpm run check:pack-versionPublish flow:
pnpm changeset
pnpm changeset version
pnpm run release:ciPackage metadata is in package.json (current package name: superpowers-spec).
Telemetry
Anonymous command telemetry is enabled by default and can be disabled via:
export SUPERPOWERS_TELEMETRY=0
# or
export DO_NOT_TRACK=1License
MIT
