mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
dcfb6afe0c
* First pass at adding Opencode slash commands * Fix the agent * Pass in Arguments to opencode slash commands * Remove unneeded agents file
1.4 KiB
1.4 KiB
ADDED Requirements
Requirement: Slash Command Configuration
The init command SHALL generate slash command files for supported editors using shared templates.
Scenario: Generating slash commands for Claude Code
- WHEN the user selects Claude Code during initialization
- THEN create
.claude/commands/openspec/proposal.md,.claude/commands/openspec/apply.md, and.claude/commands/openspec/archive.md - AND populate each file from shared templates so command text matches other tools
- AND each template includes instructions for the relevant OpenSpec workflow stage
Scenario: Generating slash commands for Cursor
- WHEN the user selects Cursor during initialization
- THEN create
.cursor/commands/openspec-proposal.md,.cursor/commands/openspec-apply.md, and.cursor/commands/openspec-archive.md - AND populate each file from shared templates so command text matches other tools
- AND each template includes instructions for the relevant OpenSpec workflow stage
Scenario: Generating slash commands for OpenCode
- WHEN the user selects OpenCode during initialization
- THEN create
.opencode/commands/openspec-proposal.md,.opencode/commands/openspec-apply.md, and.opencode/commands/openspec-archive.md - AND populate each file from shared templates so command text matches other tools
- AND each template includes instructions for the relevant OpenSpec workflow stage