SDD
Spec-driven development (SDD) starts with a description of how a change should work. Then you implement it and check the result. In onplate, a feature is the plan for one change. It includes requirements, tasks, and verification results.
Open Projects → your project → Features. Active shows work in progress, Archive shows completed or deferred features, and Specifications shows the current requirements.
Get started with SDD
Try the full workflow on a small documentation change. In this example, you’ll document how to run the checks your project already has.
- Open a conversation in the project. Select your project folder and start a conversation with a client that supports SDD. In the launch settings, choose Mode → Work and Permissions → As in the mode. Send a first message such as “What checks are available in this project?” and wait for the reply.
- Choose the sample change. In the conversation header, click Features → SDD walkthrough → Prepare a sample change. This opens a form with the goal and folder name
document-local-checksalready filled in. - Prepare a plan. If asked for a planning source, use the one your project already uses. For a new planning folder, you can choose Onplate SDD. Check the destination and model, then click Generate plan for review.
- Review and save the plan. Open the proposal, requirements, and tasks. Check that they describe the change you want and how to verify it. Click Save plan, confirm, then select Open feature. If some documents are still missing, click Continue plan.
- Implement the tasks. If your project folder has no Git repository, make the changes in your editor and check off the tasks in
tasks.md. For automated implementation, click Implement in the active feature. Review the branch, folder, remaining tasks, and existing edits. Click Start implementation and confirm. After the run, use Open diff to review the updated instructions. - Verify the result. Open Verify implementation in the feature details. Run the check described in the new instructions and record the result for the corresponding scenario.
- Finish the feature. Click Preview archive, review the destination and requirement changes, then confirm the move. Open Archive to see the saved plan. Commit the code changes in Git when you’re ready.
Run the same workflow with chat commands
Suppose an order service saves the order and then publishes an OrderCreated event in a separate call. If the queue is unavailable, the order stays in the database and the event is lost. Let’s add a transactional outbox. The service will save the order and event in the same transaction, and a background worker will send the event when the queue is available.
Open a conversation in the project as in the first step above. The steps below show what to send and examples of what the agent might suggest.
-
Explore the existing code. Send
/sdd:explore Where are orders created and what happens if publishing OrderCreated fails?and click Start exploration.Agent. The order is saved before the queue call. If publishing fails, the event is lost. We can write it to an outbox in the order transaction and reuse the existing queue client in a background worker.
-
Prepare and review the plan. Send
/sdd:propose Add a transactional outbox for OrderCreated with retries if the queue is unavailable. Enterorder-outboxas the feature name, choose the planning source, and click Generate plan for review.Agent. I propose adding an outbox table, saving the order and event in one transaction, and marking the event as sent after the queue acknowledges it. Retries will use the same event ID. The plan includes checks for transaction rollback and retrying after a queue failure.
Open the requirements and tasks in the preview. If the plan looks right, click Save plan and confirm. If parts of the plan are missing, click Continue plan in the feature details.
-
Implement the plan. Send
/sdd:apply order-outbox. Check the working folder and task list, click Start implementation, and confirm. If your project folder has no Git repository, implement the tasks in your editor and skip to verification.Agent. I added the migration, event storage in the order transaction, and background delivery. I added tests for rollback and retrying with the same event ID.
Review the diff after the run and check which tasks are marked complete.
-
Verify the result. Send
/sdd:verify order-outbox. For example, stop the queue in a test environment and create an order. Confirm the event stays in the outbox, then restart the queue and check that it arrives. Record the results for the scenarios you checked. -
Archive the feature. Once the tasks are complete and the result is verified, send
/sdd:archive order-outbox. Review the destination and the new event delivery requirements. Click Merge requirements and archive, confirm, and click Open in archive to see the saved plan and check results.
Create a draft manually
Open Projects → your project → Features → New feature. Enter a folder name such as document-local-checks, review the source, and click Create draft. Onplate shows the path and the first document to write. Open that folder in your editor and describe the change in proposal.md.
To link an existing feature to a conversation, click Features in the conversation header, select the feature, and click Link this conversation.
Verify an implementation
Open the feature and click Verify implementation. Onplate compares the plan with the main specs and lists the scenarios to check.
For a manual check, first try the behavior in the app or code. Under Record a check result, choose a scenario or Implementation matches the design. Describe how you checked it, for example “Downloaded the CSV and checked the header row”, choose an outcome, and click Save result. The result appears next to the scenario.
Verification passed means the tasks are complete, the plan is consistent, and all listed scenario and design checks have passed. A skipped scenario leaves a finding. If the plan or code changes, click Verify again, then record the relevant results against the new state.
Review the report with the model
In a supported managed conversation, open a current report and click Review with model. Check the model, reasoning effort, and plan and code revisions, then click Confirm and analyze. Onplate sends plan status, scenario titles, check outcomes, and exit codes. Onplate's request excludes source files, command arguments, and test logs.
Model analysis is saved alongside the results. The recorded checks continue to determine the status and exit codes. If the report changes during analysis, reopen it and run the analysis again.
Archive a feature
-
Submit
/sdd:archivewith the feature name or click Preview archive in the active feature's details. -
Check the destination, task progress, and proposed requirement changes, called deltas. If the destination is taken, choose the suggested name or enter a different one.
-
In the note field, describe what you checked, for example “Verified exports for a populated report and an empty report”. For unfinished work, enter the reason for archiving it.
-
Choose an action.
- Merge requirements and archive applies the remaining deltas and moves the plan.
- Move to archive is available when the changes are already merged, there are no deltas, or you select Archive without merging the remaining requirements.
- Archive as unfinished saves the reason and marks the feature as unfinished, for example when tasks are still open.
-
Confirm the move. Then click Open in archive to see the saved entry.
To update the requirements before archiving, use /sdd:sync or Preview sync. Review the file comparison, click Merge requirements, and confirm. The feature stays under Active. In a batch, review the order of features that change the same requirements.
Team profile
To require passing verification before archiving, add .onplate/sdd/workflow.yaml to the repository.
version: 1
profile: team
This applies to features from the Onplate SDD source, including bulk archives. If archiving is unavailable, open Verify, rerun a stale report, and record the check results. Once you see Verification passed, refresh the archive preview. Changes to the plan, code, or affected main requirements require fresh verification.
To enable Archive as unfinished, add the block below to the same file. Enter a reason when you archive the feature. The archive retains the remaining deltas without merging them. In a bulk archive, clear Merge requirements for that feature.
archive:
allow_unfinished: true
Where features live
Onplate reads the local openspec/ and .onplate/sdd/ directories. Both sources can appear together in the panel, each with its own paths and specs. When only one directory exists, Onplate selects it automatically. A project with neither directory starts with Onplate SDD selected and also offers OpenSpec. Browsing and supported local operations work without installing the OpenSpec CLI.
When both directories exist, open New feature or Prepare a plan and choose a Planning source. Click Make project default to use it for future features in this project folder. The choice is saved on this device. To use the other source once, select it and proceed. Clear project default restores the prompt to choose a source.
Inside each source, active plans live in changes/<name>/, main requirements in specs/, and archived features in changes/archive/.
In Archive, search by name, path, or content and filter by source, date, archive outcome, requirement status, and implementation evidence. Create a follow-up opens a draft linked to the original entry. Prepare its plan against the project's current requirements.
A feature's History shows saved runs and worktree comparisons. The comparison records paths that changed during the run, including any concurrent edits. Click Link a commit to review and attach a Git commit comparison. You can check the commit against a branch using local Git history. Stored text diffs have age and size limits, so keep important changes in Git commits.
Support and troubleshooting
- A model operation is unavailable. Check client compatibility and conversation settings. The preview shows the model and reasoning effort. You can browse, record manual checks, merge requirements, and archive without running a model.
- Implementation cannot start. Check the standard edit permission, availability of a Git snapshot, plan completeness, and remaining tasks. Open a fresh preview if the plan or code has changed.
- Writes to a planning source are unavailable. Planning uses the built-in
spec-drivenschema. External OpenSpec stores, schema overrides, and custom rules in.onplate/sdd/workflow.yamllimit writes. Version 1.11.0 supports safe directory creation and moves on compatible macOS and Linux filesystems. - Sync or archive was interrupted. Open Features in the affected project and run the offered recovery or cleanup. Check the status and destination before retrying.
Conversation commands
Type / for suggestions. Select a command with the arrow keys and press Enter to insert it, then add its arguments and submit. In Features → SDD command menu, you can switch suggestions from Core to Advanced. Type /sdd: to find both core and advanced commands. Enter the command and its arguments on one line. Square brackets in the table indicate optional arguments.
For commands that accept a feature, pass the folder name, ID, or path shown in the panel. Quote paths that contain spaces. An explicit feature takes precedence over the conversation's link. If names match, choose the source by its path. When onplate needs more information, it opens a list or asks you to narrow the selection.
| Command | What it does |
|---|---|
/sdd:help | Shows command help. |
/sdd:status [feature] | Opens the feature's documents and status. |
/sdd:changes [feature] | Opens requirement deltas and available evidence of code changes. |
/sdd:history [query] | Searches the archive. Open History in a feature's details to see its runs. |
/sdd:explore [topic] | Explores the project in read-only mode. |
/sdd:propose [goal] | Prepares a new plan for you to review and save. |
/sdd:new [name] [--schema spec-driven] | Opens a form to create an empty draft. Use lowercase Latin letters, digits, and hyphens in the folder name. |
/sdd:continue [feature] [--artifact id] | Prepares one missing artifact. Available IDs are proposal, specs, design, and tasks once their dependencies are ready. |
/sdd:ff [name] [--schema spec-driven] | Prepares all missing artifacts in a new or existing draft. |
/sdd:update [feature] [edit] | Shows plan consistency when the edit is omitted. With an edit, the model proposes changes that you can select and save after review. |
/sdd:apply [feature] | Implements the remaining tasks of an active feature and compares the worktree before and after the run. |
/sdd:verify [feature] | Checks plan completeness and consistency and opens results by scenario and design. |
/sdd:sync [feature] [capability paths] | Previews merging deltas into the main specs. The feature stays active. |
/sdd:archive [feature] | Previews the move to the archive. You can merge the remaining deltas or archive with unsynced requirements. |
/sdd:bulk-archive | Selects up to 12 features, previews the combined diff, and archives them in order with a result for each feature. |
/sdd:onboard | Walks through a sample change or an existing feature. |
To edit the linked feature's plan, enter /sdd:update -- Add an empty report scenario. To merge a single capability for the linked feature, use /sdd:sync -- reporting. If planning stops after saving some documents, open the same draft and resume with continue or ff.
Onplate recognizes corresponding /opsx:<command> aliases and, for OpenSpec commands, /opsx-<command>, /openspec-<skill-name>, and $openspec-<skill-name>. For example, /opsx:verify, /openspec-verify-change, and $openspec-verify-change open the same verification view. The legacy aliases /openspec:proposal, /openspec:apply, and /openspec:archive also work.