Files
Tabish Bidiwale 5cb84a775e Add change proposal for Windsurf workflow support (#94)
* docs(windsurf): propose workflow support

* restore missing opencode spec
2025-10-01 11:51:07 +10:00

1.6 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-*.md slash commands)
    • Windsurf (creates or refreshes .windsurf/workflows/openspec-*.md workflows)
    • 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 Windsurf

  • WHEN the user selects Windsurf during initialization
  • THEN create .windsurf/workflows/openspec-proposal.md, .windsurf/workflows/openspec-apply.md, and .windsurf/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