OpenSpec helps an AI coding assistant turn a requested change into Markdown files you can review before implementation. It adds a command-line tool, planning templates, and integrations for coding assistants. The assistant writes the plan and code; OpenSpec organizes the change and supplies instructions and status. How the assistant and CLI work together.

Consider an existing web app and a request to “add a clear button to search.” That leaves several decisions open: what happens to the results, where keyboard focus goes, and whether clearing search also resets other filters. OpenSpec gives those decisions a place outside the chat. The clear-search example below is an original illustration, not output generated or tested with OpenSpec.

What goes into a change

OpenSpec separates maintained behavior descriptions in openspec/specs/ from proposed changes in openspec/changes/. A change’s delta specs describe requirements being added, modified, removed, or renamed. After implementation, those changes can be merged into the maintained specs. This is useful when you return to a feature later and need to understand which behavior was agreed. Specs and change folders.

For the default spec-driven workflow, the planning material has four roles. Keep implementation choices in the design and observable behavior in the specs. The schema calls for a design document when technical ambiguity or complexity warrants one. Default schema and instructions.

Swipe or scroll horizontally to view all columns.

Illustrative planning choices for the clear-search change
Material What to review
proposal.md Why clearing search matters, the affected capability, and the scope: clear the search term while preserving category filters.
specs/ Required behavior for a populated search, an empty field, keyboard use, and a narrow mobile layout.
design.md How the button will reuse existing search state and restore focus without introducing a second reset path.
tasks.md Implementation tasks, each with a way to verify completion.
Illustrative clear-search plan: agree on the proposal and behavior scenarios, review design decisions and tasks, then inspect implementation, tests, and the code diff.
Original editorial illustration of a possible OpenSpec change. The example was not generated or tested with OpenSpec. Human review is a recommended process choice, not an enforced approval gate.

Start in the terminal, then use your assistant’s chat

You need a project and a supported coding assistant that can work with its files. OpenSpec has standalone installers for macOS, Linux, and Windows. The npm installation route requires Node.js 22.12.0 or newer. Install the CLI, open the intended project directory, and run openspec init there to select your assistant integrations. Review the files it adds to the project. Installation options.

Run openspec init in a terminal. Use the installed skills in your coding assistant’s chat. OpenSpec 2.0 installs shared skills in .agents/skills/. In Claude Code or Cursor, type /openspec-propose. In the Codex CLI or IDE extension, use $openspec-propose. In the Codex desktop app, select openspec-propose from Skills. Supported tools and invocation names.

Upgrading an existing project from 1.x? After updating the CLI, run openspec update --dry-run in the project to preview changes to generated files, then run openspec update. Save any edits you made in .agents/skills/ before updating. OpenSpec 2.0 upgrade guide.

For a first change, ask the assistant to inspect existing search behavior and related specs. Use the optional explore action if the scope is unclear, then propose a named change. In Claude Code or Cursor, try this request:

/openspec-propose add-clear-search
Add a clear-search button to this app. Preserve category filters.
Inspect the existing search behavior and specs first.
Draft the planning files for review before implementation.

Read the resulting files and resolve any open decisions. When the plan is ready, use the openspec-apply-change skill to implement it. Use openspec-update-change if the plan needs a revision. Both are part of the default core profile, along with explore, propose, sync, and archive. OpenSpec skill reference.

Make the missing behavior visible

A useful review question is: “Could two implementations satisfy this sentence and behave differently?” For “clear search,” one could erase the text but leave stale results; another could reset every filter. Decide the intended behavior before either implementation becomes a surprise.

For our invented app, the requirement could read as follows. This is a partial teaching example; it is not a complete or validated change file.

### Requirement: Clear the search term
The app SHALL let users clear the search term while preserving
the selected category filter.

#### Scenario: Clear a populated search
- **GIVEN** a search term and a selected category
- **WHEN** the user activates Clear search
- **THEN** the search field is empty
- **AND** results match the selected category without a search term
- **AND** keyboard focus returns to the search field

Ask for additional scenarios covering an already empty field and keyboard activation. For this example, choose to hide the button when the field is empty and check that it remains usable on a narrow screen. These are product decisions for the example. Your app may need different behavior.

Reuse an existing search capability if the project already has one. The schema tells the assistant to inspect existing specs and preserve the complete requirement block when modifying it. A fragment that omits old scenarios can lose important detail during merging. Delta-spec instructions.

Check the result before archiving

After apply, test the agreed scenarios in the app and inspect the code diff. Check that clearing updates results, preserves the category, returns focus, and works from the keyboard. In a terminal, openspec status --change add-clear-search reports planning-artifact progress. It does not establish that those browser behaviors work. Status reference.

The optional openspec-verify-change skill reviews the implementation against the plan and reports its findings. To add it, run openspec config profile in a terminal, select verify, then run openspec update in the project. The openspec-archive-change skill can warn about unfinished tasks and ask whether to sync outstanding delta specs before moving the change into the archive. Review the proposed merge before choosing whether to sync. Verification and archive behavior.

OpenSpec’s workflow permits revising artifacts as you learn. Make review and testing explicit parts of your team’s process: the presence of planning files does not enforce human approval or guarantee correct software. Workflow design.

When the extra files earn their place

OpenSpec is worth considering for changes whose acceptance conditions are easily lost in chat: a search reset, a form’s error states, or behavior shared by multiple screens. For a tiny edit with an obvious result, a clear request and ordinary code review may be enough. Our Matt Pocock skills guide covers broader planning and testing procedures; T3 Code covers the workspace for following agent threads and reviewing diffs. OpenSpec adds a persistent record of the proposed behavior and its change history.

OpenSpec’s source is MIT-licensed. Access, charges, and data handling for the connected coding assistant remain separate. The README says OpenSpec collects command names and its version as anonymous usage statistics by default; openspec config set telemetry.enabled false disables that collection. Local Markdown files do not determine what a connected assistant sends to its provider. Telemetry documentation.

Documentation checked November 12, 2026, against OpenSpec 2.0.0. We did not install OpenSpec, run its commands, generate planning files, or test an implementation for this article.

← Back to Tech Guides
Tech Guides
Turn a PDF Into Editable Markdown With Docling ↗