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.
1.9 KiB
1.9 KiB
1. CLI integration
- 1.1 Add Codex to the init tool picker with display text that clarifies prompts live in the global
.codex/prompts/directory and implement "already configured" detection by checking for managed Codex prompt files. - 1.2 Implement a
CodexSlashCommandConfiguratorthat writes.codex/prompts/openspec-{proposal,apply,archive}.md, ensuring the prompt directory exists and wrapping content in OpenSpec markers. // (No helper command required) - 1.3 Register the configurator with the slash-command registry and include Codex in init/update wiring so both commands invoke the new configurator when appropriate.
2. Prompt templates
- 2.1 Extend the shared slash-command templates (or add a Codex-specific wrapper) to inject numbered placeholders (
$1,$2, …) where Codex expects user-supplied arguments. - 2.2 Verify generated Markdown stays within Codex's formatting expectations (no front matter, heading-first layout) and matches the problem-analyzer style shown in the reference screenshot.
3. Update support & tests
- 3.1 Update the
openspec updateflow to refresh existing Codex prompts without creating new ones when files are missing. - 3.2 Add integration coverage that exercises init/update against a temporary global Codex prompts directory by setting
CODEX_HOME, asserting marker preservation and idempotent updates. - 3.3 Document Codex's global-only discovery and automatic installation in README and CHANGELOG.
- 3.3 Confirm error handling surfaces clear paths when the CLI cannot write to the Codex prompt directory (permissions, missing home directory, etc.).
4. Documentation
- 4.1 Document Codex slash-command support in the README and changelog alongside other assistant integrations.
- 4.2 Add a release note snippet that points Codex users to the generated
/openspec-proposal,/openspec-apply, and/openspec-archivecommands.