mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
345f9dbb45
Archive completed changes: - add-non-interactive-init-options - slim-root-agents-file - update-cli-init-enter-selection - add-windsurf-workflows - add-kilocode-workflows - add-codex-slash-command-support - add-github-copilot-prompts Updates to specs: - cli-init: Added 7 slash command scenarios (Claude Code, Cursor, OpenCode, Windsurf, Kilo Code, Codex, GitHub Copilot) - cli-update: Added corresponding update scenarios for all 7 tools - Fixed MODIFIED requirement deltas to include all existing scenarios before archiving - Manual correction applied to preserve Windsurf scenario after archive conflicts All changes validated with --strict flag.
2.8 KiB
2.8 KiB
MODIFIED Requirements
Requirement: Slash Command Updates
The update command SHALL refresh existing slash command files for configured tools without creating new ones.
Scenario: Updating slash commands for Claude Code
- WHEN
.claude/commands/openspec/containsproposal.md,apply.md, andarchive.md - THEN refresh each file using shared templates
- AND ensure templates include instructions for the relevant workflow stage
Scenario: Updating slash commands for Cursor
- WHEN
.cursor/commands/containsopenspec-proposal.md,openspec-apply.md, andopenspec-archive.md - THEN refresh each file using shared templates
- AND ensure templates include instructions for the relevant workflow stage
Scenario: Updating slash commands for OpenCode
- WHEN
.opencode/command/containsopenspec-proposal.md,openspec-apply.md, andopenspec-archive.md - THEN refresh each file using shared templates
- AND ensure templates include instructions for the relevant workflow stage
Scenario: Updating slash commands for Windsurf
- WHEN
.windsurf/workflows/containsopenspec-proposal.md,openspec-apply.md, andopenspec-archive.md - THEN refresh each file using shared templates wrapped in OpenSpec markers
- AND ensure templates include instructions for the relevant workflow stage
- AND skip creating missing files (the update command only refreshes what already exists)
Scenario: Updating slash commands for Kilo Code
- WHEN
.kilocode/workflows/containsopenspec-proposal.md,openspec-apply.md, andopenspec-archive.md - THEN refresh each file using shared templates wrapped in OpenSpec markers
- AND ensure templates include instructions for the relevant workflow stage
- AND skip creating missing files (the update command only refreshes what already exists)
Scenario: Updating slash commands for Codex
- GIVEN the global Codex prompt directory contains
openspec-proposal.md,openspec-apply.md, andopenspec-archive.md - WHEN a user runs
openspec update - THEN refresh each file using the shared slash-command templates (including placeholder guidance)
- AND preserve any unmanaged content outside the OpenSpec marker block
- AND skip creation when a Codex prompt file is missing
Scenario: Updating slash commands for GitHub Copilot
- WHEN
.github/prompts/containsopenspec-proposal.prompt.md,openspec-apply.prompt.md, andopenspec-archive.prompt.md - THEN refresh each file using shared templates while preserving the YAML frontmatter
- AND update only the OpenSpec-managed block between markers
- AND ensure templates include instructions for the relevant workflow stage
Scenario: Missing slash command file
- WHEN a tool lacks a slash command file
- THEN do not create a new file during update