Skip to content

Conversation

@riccorohl
Copy link
Contributor

Add Windsurf IDE support with slash commands

  • Added Windsurf to the AI_TOOLS configuration
  • Created WindsurfSlashCommandConfigurator following the same pattern as Cursor/OpenCode
  • Registered Windsurf in the slash command registry
  • Merged latest v7.0.0 changes and resolved conflicts

Testing:

  • Fully tested on v6.0.0 with a complete application build (all OpenSpec workflow steps)
  • Verified on v7.0.0 that:
    • Project builds successfully
    • Windsurf appears in tool selection during openspec init
    • Slash command files are correctly generated in .windsurf/commands/
    • Commands are recognized in Windsurf IDE

Did not run a full application test on v7.0.0 due to time constraints, but the implementation follows the exact same pattern as the existing Kilocode integration that was added in v7.0.0.

@riccorohl riccorohl requested a review from TabishB as a code owner October 3, 2025 03:46
@TabishB TabishB changed the base branch from codex/research-slash-command-support-for-windsurf to main October 3, 2025 04:54
Copy link
Contributor

@TabishB TabishB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey thanks for giving this a try! It's a great effort for someone from a non-dev background!

There's a few things that need to be tidied up, but I can handle this. Namely this needs the following extra stuff:

  • Adding/updating unit tests
  • Updates to documentation

But great effort! I'll get this merged in soon and you get to be a contributor and part of this projects history!

import { SlashCommandId } from '../../templates/index.js';

const FILE_PATHS: Record<SlashCommandId, string> = {
proposal: '.windsurf/commands/openspec-proposal.md',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is .windsurf/workflows/ not .windsurf/commands/ according to the docs: https://docs.windsurf.com/windsurf/cascade/workflows

let me know if I got something wrong here.

archive: '.windsurf/commands/openspec-archive.md'
};

const FRONTMATTER: Record<SlashCommandId, string> = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we don't need a frontmatter for Windsurf. Seems like a plain markdown works, but could be wrong. I'll test this out.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out you do need a formatter, but just description and auto_execution_mode

…ows and simplify templates\n\n- Write workflows to .windsurf/workflows instead of .windsurf/commands\n- Remove YAML frontmatter; add concise intro before managed markers\n- Add init/update tests for Windsurf and marker preservation\n- List Windsurf in README native tools table\n- Normalize registry indentation
…n\n- Drop intro hook and headings for Windsurf workflows\n- Keep OPENSPEC markers-only body for safe updates\n- Adjust tests to assert marker-managed content
…de description and auto_execution_mode: 3 for proposal/apply/archive\n- Keep content minimal; body remains marker-managed
@TabishB TabishB merged commit b3d05d2 into Fission-AI:main Oct 3, 2025
6 checks passed
drvova pushed a commit to drvova/VovaSpec that referenced this pull request Oct 13, 2025
* docs(windsurf): propose workflow support

* restore missing opencode spec

* Add Windsurf IDE support with slash commands

* feat(windsurf): add Windsurf workflows support under .windsurf/workflows and simplify templates\n\n- Write workflows to .windsurf/workflows instead of .windsurf/commands\n- Remove YAML frontmatter; add concise intro before managed markers\n- Add init/update tests for Windsurf and marker preservation\n- List Windsurf in README native tools table\n- Normalize registry indentation

* chore(windsurf): remove optional intro content to simplify workflows\n\n- Drop intro hook and headings for Windsurf workflows\n- Keep OPENSPEC markers-only body for safe updates\n- Adjust tests to assert marker-managed content

* feat(windsurf): add required YAML frontmatter to workflows\n\n- Include description and auto_execution_mode: 3 for proposal/apply/archive\n- Keep content minimal; body remains marker-managed

---------

Co-authored-by: Tabish Bidiwale <[email protected]>
Co-authored-by: Tabish Bidiwale <[email protected]>
Kh05ifr4nD pushed a commit to Kh05ifr4nD/sorapec that referenced this pull request Jan 6, 2026
* docs(windsurf): propose workflow support

* restore missing opencode spec

* Add Windsurf IDE support with slash commands

* feat(windsurf): add Windsurf workflows support under .windsurf/workflows and simplify templates\n\n- Write workflows to .windsurf/workflows instead of .windsurf/commands\n- Remove YAML frontmatter; add concise intro before managed markers\n- Add init/update tests for Windsurf and marker preservation\n- List Windsurf in README native tools table\n- Normalize registry indentation

* chore(windsurf): remove optional intro content to simplify workflows\n\n- Drop intro hook and headings for Windsurf workflows\n- Keep OPENSPEC markers-only body for safe updates\n- Adjust tests to assert marker-managed content

* feat(windsurf): add required YAML frontmatter to workflows\n\n- Include description and auto_execution_mode: 3 for proposal/apply/archive\n- Keep content minimal; body remains marker-managed

---------

Co-authored-by: Tabish Bidiwale <[email protected]>
Co-authored-by: Tabish Bidiwale <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants