-
Notifications
You must be signed in to change notification settings - Fork 1.2k
docs: add experimental workflow (OPSX) user guide #456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+107
−0
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| # Experimental Workflow (OPSX) | ||
|
|
||
| > **Status:** Experimental. Things might break. Feedback welcome on [Discord](https://discord.gg/BYjPaKbqMt). | ||
| > | ||
| > **Compatibility:** Claude Code only (for now) | ||
|
|
||
| ## What Is It? | ||
|
|
||
| OPSX is a new way to work with OpenSpec changes. Instead of one big proposal, you build **artifacts** step-by-step: | ||
|
|
||
| ``` | ||
| proposal → specs → design → tasks → implementation → archive | ||
| ``` | ||
|
|
||
| Each artifact has dependencies. Can't write tasks until you have specs. Can't implement until you have tasks. The system tracks what's ready and what's blocked. | ||
|
|
||
| ## Setup | ||
|
|
||
| ```bash | ||
| # 1. Make sure you have openspec installed and initialized | ||
| openspec init | ||
|
|
||
| # 2. Generate the experimental skills | ||
| openspec artifact-experimental-setup | ||
| ``` | ||
|
|
||
| This creates skills in `.claude/skills/` that Claude Code auto-detects. | ||
|
|
||
| ## Commands | ||
|
|
||
| | Command | What it does | | ||
| |---------|--------------| | ||
| | `/opsx:new` | Start a new change | | ||
| | `/opsx:continue` | Create the next artifact | | ||
| | `/opsx:ff` | Fast-forward (create all artifacts at once) | | ||
| | `/opsx:apply` | Implement the tasks | | ||
| | `/opsx:sync` | Sync delta specs to main specs | | ||
| | `/opsx:archive` | Archive when done | | ||
|
|
||
| ## Usage | ||
|
|
||
| ### Start a new change | ||
| ``` | ||
| /opsx:new | ||
| ``` | ||
| You'll be asked what you want to build and which workflow schema to use. | ||
|
|
||
| ### Build artifacts step-by-step | ||
| ``` | ||
| /opsx:continue | ||
| ``` | ||
| Creates one artifact at a time. Good for reviewing each step. | ||
|
|
||
| ### Or fast-forward | ||
| ``` | ||
| /opsx:ff add-dark-mode | ||
| ``` | ||
| Creates all artifacts in one go. Good when you know what you want. | ||
|
|
||
| ### Implement | ||
| ``` | ||
| /opsx:apply | ||
| ``` | ||
| Works through tasks, checking them off as you go. | ||
|
|
||
| ### Sync specs and archive | ||
| ``` | ||
| /opsx:sync # Update main specs with your delta specs | ||
| /opsx:archive # Move to archive when done | ||
| ``` | ||
|
|
||
| ## What's Different? | ||
|
|
||
| **Standard workflow** (`/openspec:proposal`): | ||
| - One big proposal document | ||
| - Linear phases: plan → implement → archive | ||
| - All-or-nothing artifact creation | ||
|
|
||
| **Experimental workflow** (`/opsx:*`): | ||
| - Discrete artifacts with dependencies | ||
| - Fluid actions (not phases) - update artifacts anytime | ||
| - Step-by-step or fast-forward | ||
| - Schema-driven (can customize the workflow) | ||
|
|
||
| The key insight: work isn't linear. You implement, realize the design is wrong, update it, continue. OPSX supports this. | ||
|
|
||
| ## Schemas | ||
|
|
||
| Schemas define what artifacts exist and their dependencies. Currently available: | ||
|
|
||
| - **spec-driven** (default): proposal → specs → design → tasks | ||
| - **tdd**: tests → implementation → docs | ||
|
|
||
| Run `openspec schemas` to see available schemas. | ||
|
|
||
| ## Tips | ||
|
|
||
| - Use `/opsx:ff` when you have a clear idea, `/opsx:continue` when exploring | ||
| - Tasks track progress via checkboxes in `tasks.md` | ||
| - Delta specs (in `specs/`) get synced to main specs with `/opsx:sync` | ||
| - If you get stuck, the status command shows what's blocked: `openspec status --change "name"` | ||
|
|
||
| ## Feedback | ||
|
|
||
| This is rough. That's intentional - we're learning what works. | ||
|
|
||
| Found a bug? Have ideas? Join us on [Discord](https://discord.gg/BYjPaKbqMt) or open an issue on [GitHub](https://github.com/Fission-AI/openspec/issues). | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major
Add language specification to code blocks.
Fenced code blocks should specify a language tag for consistency and accessibility. Lines 11, 43, 49, 55, 61, and 67 are missing language specifications.
🔧 Proposed fix for code block language tags
Line 11-13: Change text diagram to specify language
Line 43-45: Specify bash for command
Line 49-52: Specify bash for command
Line 55-58: Specify bash for command
Line 61-64: Specify bash for command
Line 67-70: Specify bash for commands
📝 Committable suggestion
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)
11-11: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents