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
Implementation Tasks
-
Create
src/core/configurators/slash/github-copilot.tsimplementingSlashCommandConfiguratorbase class- Implement
getRelativePath()to return.github/prompts/openspec-{proposal,apply,archive}.prompt.md - Implement
getFrontmatter()to generate YAML frontmatter withdescriptionfield and include$ARGUMENTSplaceholder - Implement
generateAll()to create.github/prompts/directory and write three prompt files with frontmatter, markers, and shared template bodies - Implement
updateExisting()to refresh only the managed block between markers while preserving frontmatter - Set
toolId = "github-copilot"andisAvailable = true
- Implement
-
Register GitHub Copilot configurator in
src/core/configurators/slash/registry.ts- Import
GitHubCopilotSlashCommandConfigurator - Add to
SLASH_COMMAND_CONFIGURATORSarray - Update tool picker display name to "GitHub Copilot"
- Import
-
Update
src/core/init.tsto include GitHub Copilot in the AI tool selection prompt- Add GitHub Copilot to the available tools list with detection for existing
.github/prompts/openspec-*.prompt.mdfiles - Display "(already configured)" when prompt files exist
- Add GitHub Copilot to the available tools list with detection for existing
-
Update
src/core/update.tsto refresh GitHub Copilot prompts when they exist- Call
updateExisting()for GitHub Copilot configurator when.github/prompts/contains OpenSpec prompt files
- Call
-
Add integration tests for GitHub Copilot slash command generation
- Test
generateAll()creates three prompt files with correct structure (frontmatter + markers + body) - Test
updateExisting()preserves frontmatter and only updates managed blocks - Test that missing prompt files are not created during update
- Test
-
Update documentation
- Add GitHub Copilot to README slash-command support table
- Document
.github/prompts/as the discovery location - Add CHANGELOG entry for GitHub Copilot support