Skip to content

Windsurf Formatter

PromptScript compiles your .prs sources to native Windsurf configuration. The main output is .windsurf/rules/project.md. It is not enabled by default, add it to targets to use it.

Enable the Target

targets:
- windsurf

Pick an output version when you need more than the default:

targets:
- windsurf:
version: full

At a Glance

PropertyValue
TierTier 1
Main output.windsurf/rules/project.md
Dot directory.windsurf/
SkillsYes (.windsurf/skills/<name>/SKILL.md)
AgentsNo
CommandsNo
Local filesNo

Output Files

FilePathPurpose
Main instructions.windsurf/rules/project.mdPrimary rule file
Lifecycle hooks.windsurf/hooks.jsonProject hooks in multifile and full modes
Skills.windsurf/skills/<name>/SKILL.mdReusable skill definitions

Output Versions

VersionOutput
simpleSingle .windsurf/rules/project.md file
multifileSingle .windsurf/rules/project.md file (skills via full mode)
full (default).windsurf/rules/project.md + .windsurf/skills//SKILL.md

MCP and Hooks

BlockSupport
@mcpServers.windsurf/mcp_config.json (json)
@hooks.windsurf/hooks.json in multifile, full
Hook eventspre-terminal-command, pre-tool-use, post-tool-use, stop

Native hook reference: https://docs.windsurf.com/windsurf/cascade/hooks

Supported Features

FeatureSupported
Markdown OutputYes
MDC FormatNo
Code BlocksYes
Mermaid DiagramsYes
Single File OutputYes
Multiple Rule FilesNo
Workflow FilesNo
Nested Directory StructureNo
YAML FrontmatterPlanned
Description in FrontmatterNo
Globs in FrontmatterNo
Activation TypePlanned
Glob Pattern TargetingNo
Always Apply RulesPlanned
Manual ActivationNo
Auto/Model ActivationNo
Structured ExamplesYes
Character Limit ValidationNo
Content Section SplittingYes
Guard DependenciesYes
Context File InclusionNo
@-MentionsNo
Tool IntegrationNo
Path-Specific RulesNo
Prompt FilesNo
Slash CommandsNo
SkillsYes
Agent InstructionsNo
Local MemoryNo
Nested MemoryNo

See Also