Structure your thinking
before you code.
Spectra is a spec-driven development toolkit for coding agents: skills that guide your agent, a desktop app, and a CLI. Your agent writes proposals, specs, and tasks; you follow progress, review specs, and archive finished changes in the app.
$ npm install -g @kaochenlong/spxa
Clarifies requirements and compares approaches before proposing. It does not touch code, and before writing any document it says which files it will change and waits for your approval.
The requirement is still fuzzy and you want to settle the direction first.
The conclusion can go straight into propose.
Writes a complete change: proposal, design, tasks, and the specs this change modifies.
You are about to build or change something and want the plan written down first.
The change is parked and waits in the app's change list for your review.
Implements the tasks one by one, or resumes a change that is halfway done.
The proposal has been reviewed and you are ready to start.
Tasks get checked off one by one, and the app shows the progress.
Writes requirements or plans that changed midway back into the change.
You changed the approach during implementation, or the requirement moved.
The proposal, design, specs, and tasks are updated to match.
Before archiving, checks the code against this change's specs, tasks, and design.
The tasks are done and you are about to archive.
You get a check report.
Reads the proposal, design, and tasks first, then reviews the implementation.
The implementation is finished and you want a code review.
It only reports and never edits files; every finding states what it is based on.
Finds contradictions and gaps across the proposal, design, specs, and tasks.
Before coding, to confirm the documents agree with each other.
Lists contradictions and gaps. It only reports and never blocks the workflow.
Checks the changed code for security problems.
When you need a security check.
Lists the security problems it found.
Detects drift between a change and the current codebase.
Before resuming a change that has been sitting for a while.
Scores time, structure, tasks, and environment and suggests the next step. It only reports and never blocks the workflow.
Builds a repeatable reproduction of the failure first, then ranks hypotheses by evidence.
You hit a bug, or two attempts did not fix it.
A reproducible failure comes before any fix.
Archives the change and merges its spec changes into the main specs.
Every task is done and checked.
The change moves to Completed, and the main specs are updated.
Commits only the files that belong to this change, following the repository's existing commit style.
You are ready to commit this change.
Anything else you had staged stays out of the commit.
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- Antigravity
- JetBrains Junie
One toolkit, three ways in
Your agent follows the workflow through skills, you see the results in the desktop app, and the CLI puts the same checks into your scripts.
-
Skill
For coding agentsInstall 12 skills into your project. From discussion and proposal to implementation and archive, your agent follows the same workflow at every step.
› /spectra-propose -
Desktop app
For youChanges, specs, and task progress in one window. Check off tasks, read specs, and archive without digging through Markdown yourself.
macOS · Windows -
CLI
For terminals and scriptsThe desktop app ships with the spectra command. Don't want the app? Install spxa from npm; it runs on Linux too.
$ spectra validate
When there are no specs
AI writes code fast, but without structure it creates as many problems as it solves.
Context gets lost
With every new conversation, the agent forgets the earlier decisions, constraints, and reasons.
Specs keep the context
Specs and each change's proposal, design, and tasks are files in the repo, so the next session can read them.
Scope keeps growing
A small feature turns into a big refactor along the way, and no one can say what it was supposed to do.
Proposals set the boundaries
Every change starts with a proposal that spells out what it will do and what it won't (Non-Goals).
AI drifts from the design
Compiling doesn't mean it's what you wanted. The code slowly drifts away from the original architecture.
Checked against the specs before archiving
The agent implements against the specs and tasks, and verify and review check it again before archiving.
Between the plan and the implementation
You keep using Plan Mode the way you do now. Once the plan is ready, it becomes a proposal you review, then gets implemented task by task. If the implementation changes along the way, the specs are synced, and the change is archived at the end. Each skill is explained in the command palette at the top.
- Plan Mode
- Create Plan
- Proposal
- Review
- Implement
- Adjust
- Archive
- Done
SpectraWork out what to build in your coding agent's Plan Mode.
This step is the same on both sides. Spectra takes over from the next one.
The agent turns the requirement into steps.
The general flow starts building right away, and the plan only lives in the conversation.
Build straight from the plan.
Spectra adds two steps before this one: a proposal and a review.
Finish and wrap up.
The next session has no way to find out why it was built this way.
Work out what to build in your coding agent's Plan Mode.
This step is the same on both sides. Spectra doesn't change how you already work.
The agent turns the requirement into steps.
The general flow starts building next; Spectra first writes the plan up as a proposal.
Turns the plan into a formal change: proposal, design, tasks, and the specs this change modifies, all saved in the repo.
The general flow has no such step, so the next session can't read this plan.
A finished proposal is parked first. You read and edit it in the app, and start once you're sure.
The general flow has no review; the agent starts building as soon as it has a plan.
The agent implements the tasks one by one, and the task progress in the app updates along the way.
The general flow also starts building in this column, but without tasks to check against.
Did the implementation change the original design? If so, sync the specs first; if not, archive right away.
The general flow never asks this question.
Archives the change and merges its spec changes into the main specs. You can run /spectra-verify or /spectra-review before archiving.
The general flow just ends, leaving no record.
The change moves to Completed, where you can still search and share it.
Both sides are done. The difference is whether the specs were kept.
When the requirement is still fuzzy, discuss it and compare approaches first. It doesn't change code, and the conclusion goes to propose.
If the requirement is clear, skip it and go straight to propose.
Writes the changes made during implementation back into the specs and tasks, so the documents match the code.
In the general flow, only that one conversation remembers what changed.
The specs live in your repo
Each change is a folder full of Markdown. Any agent can read it, and git tracks it. New projects use docs/spectra/ by default.
- archived changes
- 596
- specs
- 246
Spectra's own repo is built with Spectra (as of November 2026).
$ tree docs/spectra docs/spectra ├── specs │ └── theme │ └── spec.md └── changes ├── add-dark-mode │ ├── proposal.md │ ├── design.md │ ├── tasks.md │ └── specs/theme/spec.md └── archive └── 2026-11-02-add-csv-export
Open the app and see where things stand
Your agent writes the changes; the app doesn't create them. It shows you where things stand, lets you check off tasks, and archives finished work.
- ⌘E
- Changes page
- ⌘T
- Quick memo
- ⌘D
- Toggle compact mode
- ⌘O
- Open a project
- ⌘1–7
- Switch between open projects
- ⌘,
- Settings
- n ⇧N
- Next / previous unfinished task in the Tasks tab
In-progress work stays on top
The spotlight card shows task progress. Open it to switch between the proposal, design, tasks, and specs.
Tasks follow tasks.md
When the agent checks off an item, the app updates right away. You can also check items off in the app.
Specs that read like specs
Requirements and Scenarios are split into cards, with their conditions lined up.
Several projects at once
Switch projects from the left rail; each project keeps its own progress.
Keep it beside your editor
Press ⌘D to shrink it into a small floating panel that shows progress.
Also: full-text search and sharing for archived changes · Light and Dark appearances · English, 日本語, 繁體中文, 简体中文
Check it from the terminal too
The desktop app ships with the spectra command. Run the pre-archive checks in your terminal first; analyze, validate, and scope all take --json, so they plug into CI.
Don't want the desktop app?
The npm version of the command is called spxa, and it runs on macOS, Linux, and Windows.
$ spectra validate add-dark-mode ✓ add-dark-mode — valid $ spectra analyze add-dark-mode Change: add-dark-mode ✓ Coverage Clean (0 findings) ✓ Consistency Clean (0 findings) ✓ Ambiguity Clean (0 findings) ✓ Gaps Clean (0 findings) ✓ Localization Clean (0 findings) Analyzed: proposal, specs, design, tasks ✓ No issues found $ spectra scope --change add-dark-mode Scope: touched_tracking (Resolved) "src/theme/store.ts": [Unstaged] "src/styles/tokens.css": [Staged] $ spectra archive add-dark-mode --preview Archive preview: add-dark-mode Incomplete tasks: 3 Spec updates: 1
Frequently asked questions
A spec-driven development toolkit made of three parts: skills for coding agents, a desktop app, and a CLI. It's free to use.
You write what you're about to build as a proposal, specs, and tasks first, then let the agent implement from them. When the requirement changes midway, the change goes back into the specs instead of staying only in the conversation.
Claude Code, Codex, Cursor, GitHub Copilot, Antigravity, and JetBrains Junie.
The desktop app runs on macOS (Apple Silicon and Intel) and Windows. On Linux, use spxa from npm.
In your project's repo; new projects use docs/spectra/ by default. Everything is Markdown, versioned with git.
Download for free
The desktop app runs on macOS and Windows. If you only want the CLI and skills, install them with npm.
macOS
$ brew install --cask spectra-app
Windows
npm
$ npm install -g @kaochenlong/spxa