-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update Windsurf file path from commands to workflows #610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
git ls-files src/core/command-generation/adapters/ | head -20Repository: Fission-AI/OpenSpec
Length of output: 1021
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 2177
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 1857
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 1006
🏁 Script executed:
rg -A 30 "formatFile.*commandId" src/core/command-generation/adapters/windsurf.tsRepository: Fission-AI/OpenSpec
Length of output: 45
🏁 Script executed:
sed -n '45,100p' src/core/command-generation/adapters/windsurf.tsRepository: Fission-AI/OpenSpec
Length of output: 337
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 45
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 2996
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 113
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 113
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 45
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 110
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 114
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 1778
🌐 Web query:
Windsurf IDE workflow file format YAML frontmatter specification💡 Result:
Windsurf Workflow files are Markdown (
.md) files stored under.windsurf/workflows/(and can also be discovered in subdirectories / up to the git root). They are invoked in Cascade via a slash command/[workflow-name], and the docs describe their contents as a title, a description, and an ordered series of steps/instructions. The official Windsurf docs do not publish a YAML-frontmatter schema/spec for workflow files (i.e., no documented required/optional frontmatter keys for workflows). [1]What is explicitly documented in Windsurf is YAML frontmatter for Skills (
.windsurf/skills/<skill-name>/SKILL.md), where the frontmatter uses---delimiters and includes (at least)nameanddescription. [2]Sources:
[1] Windsurf Docs – Workflows (storage/discovery/character limit; “title, description, and steps”; slash invocation)
[2] Windsurf Docs – Cascade Skills (SKILL.md YAML frontmatter example/required fields)
🏁 Script executed:
rg -i "workflow" src/core/command-generation/adapters/windsurf.ts -B 2 -A 2Repository: Fission-AI/OpenSpec
Length of output: 336
🌐 Web query:
Windsurf IDE .windsurf/workflows directory structure file format💡 Result:
.windsurf/workflowsdirectory structure (discovery)Windsurf/Cascade loads workflow files from any folder named:
./.windsurf/workflows/(at your workspace root)./**/.windsurf/workflows/(in any subdirectory).windsurf/workflows/folders (so workflows can be shared from higher-level folders). New workflows you create are saved to the current workspace’s.windsurf/workflows/(not necessarily the git root). [1](Enterprise) System-level workflows can also be deployed via OS directories like
/Library/Application Support/Windsurf/workflows/*.md,/etc/windsurf/workflows/*.md, orC:\ProgramData\Windsurf\workflows\*.md, and they take precedence over workspace/global/built-in workflows. [1]File format
.md) placed in a discovered.windsurf/workflows/directory. [1]Minimal template (practical)
Invocation: type
/my-workflow-namein Cascade. [1]Sources:
[1] Windsurf Docs — “Workflows” (storage locations, discovery rules, and that workflows are
.mdwith title/description/steps; size limit; enterprise paths/precedence). (docs.windsurf.com)Citations:
🏁 Script executed:
Repository: Fission-AI/OpenSpec
Length of output: 2274
Path structure is correct, but frontmatter format is unsupported for Windsurf workflows.
The path change to
.windsurf/workflows/opsx-<id>.mdaligns with Windsurf's directory structure, but the implementation has a critical issue: the adapter generates YAML frontmatter (name,description,category,tags), which is not documented in Windsurf's official workflow specification. According to Windsurf documentation, workflow files should contain a markdown title, description, and ordered steps—not YAML frontmatter. YAML frontmatter is only documented for Windsurf Skills (.windsurf/skills/), not workflows.The current format may not work with actual Windsurf workflows. Consider either: (1) removing the YAML frontmatter and using markdown headers similar to the Cline adapter, or (2) clarifying that this format is intended for Skills, not workflows, and adjust the file path accordingly.
🤖 Prompt for AI Agents