mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
1.7 KiB
1.7 KiB
MODIFIED Requirements
Requirement: AI Tool Configuration
The command SHALL configure AI coding assistants with OpenSpec instructions using a marker system.
Scenario: Prompting for AI tool selection
- WHEN run interactively
- THEN prompt the user with "Which AI tools do you use?" using a multi-select menu
- AND list every available tool with a checkbox:
- Claude Code (creates or refreshes CLAUDE.md and slash commands)
- Cursor (creates or refreshes
.cursor/commands/*slash commands) - OpenCode (creates or refreshes
.opencode/command/openspec-*.mdslash commands) - Windsurf (creates or refreshes
.windsurf/workflows/openspec-*.mdworkflows) - Kilo Code (creates or refreshes
.kilocode/workflows/openspec-*.mdworkflows) - AGENTS.md standard (creates or refreshes AGENTS.md with OpenSpec markers)
- AND show "(already configured)" beside tools whose managed files exist so users understand selections will refresh content
- AND treat disabled tools as "coming soon" and keep them unselectable
- AND allow confirming with Enter after selecting one or more tools
Requirement: Slash Command Configuration
The init command SHALL generate slash command files for supported editors using shared templates.
Scenario: Generating slash commands for Kilo Code
- WHEN the user selects Kilo Code during initialization
- THEN create
.kilocode/workflows/openspec-proposal.md,.kilocode/workflows/openspec-apply.md, and.kilocode/workflows/openspec-archive.md - AND populate each file from shared templates (wrapped in OpenSpec markers) so workflow text matches other tools
- AND each template includes instructions for the relevant OpenSpec workflow stage