Files
James G. Best dcfb6afe0c feat: add Opencode slash commands (#83)
* First pass at adding Opencode slash commands

* Fix the agent

* Pass in Arguments to opencode slash commands

* Remove unneeded agents file
2025-09-26 01:37:30 +10:00

1.1 KiB

Implementation Tasks

1. Templates and Configurators

  • 1.1 Create shared templates for the Proposal, Apply, and Archive commands with instructions for each workflow stage from openspec/README.md.
  • 1.2 Implement a SlashCommandConfigurator base and tool-specific configurators for Claude Code and Cursor.

2. Claude Code Integration

  • 2.1 Generate .claude/commands/openspec/{proposal,apply,archive}.md during openspec init using shared templates.
  • 2.2 Update existing .claude/commands/openspec/* files during openspec update.

3. Cursor Integration

  • 3.1 Generate .cursor/commands/{openspec-proposal,openspec-apply,openspec-archive}.md during openspec init using shared templates.
  • 3.2 Update existing .cursor/commands/* files during openspec update.

4. Verification

  • 4.1 Add tests verifying slash command files are created and updated correctly.

5. OpenCode Integration

  • 5.1 Generate .opencode/commands/{openspec-proposal,openspec-apply,openspec-archive}.md during openspec init using shared templates.
  • 5.2 Update existing .opencode/commands/* files during openspec update.