Skip to content

Commit 7e2345d

Browse files
authored
Add Windsurf Cascade output (#10)
* Add Windsurf Cascade plugin output * Wire Windsurf output into build verification
1 parent 24beea1 commit 7e2345d

16 files changed

Lines changed: 24363 additions & 2 deletions

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Shared source for WordPress-focused agent skills and plugin packaging.
44

5-
This repo currently packages shared skills and setup files for Codex, Claude Code, Cursor, Continue, GitHub Copilot, Gemini, and Roo Code as separate outputs:
5+
This repo currently packages shared skills and setup files for Codex, Claude Code, Cursor, Continue, GitHub Copilot, Gemini, Roo Code, and Windsurf/Cascade as separate outputs:
66

77
- prefers the WordPress Studio MCP server for site management, screenshots, and block validation
88
- falls back to the Studio CLI through a shared Studio skill when MCP is unavailable
@@ -16,6 +16,7 @@ This repo currently packages shared skills and setup files for Codex, Claude Cod
1616
- keeps skills shared so other surfaces can reuse them later
1717
- includes Continue-native setup files for WordPress.com rules, prompts, and MCP configuration
1818
- adds Roo Code workspace rules and project MCP config without introducing a Roo-specific backend service
19+
- adds Windsurf/Cascade workspace rules and MCP config without introducing a Windsurf-specific backend service
1920

2021
## Testing
2122

@@ -117,6 +118,17 @@ claude --plugin-dir ./plugins/claude-code
117118
3. In Continue, copy the `.continue/` examples into a project or merge the `config.yaml` MCP snippet into `~/.continue/config.yaml`.
118119
4. Use Continue Agent mode for WordPress.com MCP tool access.
119120

121+
### Test in Windsurf/Cascade
122+
123+
1. Install Devin Desktop / Windsurf and complete onboarding.
124+
2. Build the generated output with `pnpm build`.
125+
3. Confirm the generated Cascade rules exist at `plugins/windsurf/.devin/rules/`.
126+
4. Confirm the generated MCP config exists at `plugins/windsurf/mcp_config.json`.
127+
5. Confirm the bundled telemetry server exists at `plugins/windsurf/scripts/wordpress-telemetry-mcp.mjs`.
128+
6. Copy the servers from `plugins/windsurf/mcp_config.json` into `~/.codeium/windsurf/mcp_config.json`.
129+
7. In Cascade MCP settings, confirm `wordpress-studio` and `wordpress-telemetry` are enabled.
130+
8. Try representative WordPress.com tasks such as site review, theme edits, block validation, or plugin planning.
131+
120132
## Current scope
121133

122134
- Shared skills for:
@@ -137,6 +149,7 @@ claude --plugin-dir ./plugins/claude-code
137149
- Roo Code workspace output in `plugins/roo-code/`
138150
- Gemini packaging output in `plugins/gemini/`
139151
- GitHub Copilot packaging output in `plugins/copilot/`
152+
- Windsurf/Cascade workspace output in `plugins/windsurf/`
140153
- Bundled telemetry artifact in `dist/`
141154
- `pnpm` scripts for build and verification
142155

@@ -153,6 +166,7 @@ The build packages the shared skills into:
153166
- `plugins/roo-code/skills/`
154167
- `plugins/gemini/skills/`
155168
- `plugins/copilot/skills/`
169+
- `plugins/windsurf/skills/`
156170

157171
It also generates plugin-specific MCP configs for each surface:
158172

@@ -163,6 +177,7 @@ It also generates plugin-specific MCP configs for each surface:
163177
- Roo Code: `plugins/roo-code/.roo/mcp.json`
164178
- Gemini: `plugins/gemini/.gemini/settings.json`
165179
- GitHub Copilot: `plugins/copilot/.vscode/mcp.json`
180+
- Windsurf/Cascade: `plugins/windsurf/mcp_config.json`
166181

167182
The telemetry server source lives in `scripts/wordpress-telemetry-mcp.mjs` and is bundled to:
168183

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
trigger: model_decision
3+
description: Use when configuring or troubleshooting Cascade MCP access for WordPress.com and Jetpack-connected sites.
4+
---
5+
6+
# WordPress.com MCP
7+
8+
- Cascade reaches WordPress.com through the existing WordPress.com / Jetpack MCP flow exposed by the configured `wordpress-studio` MCP server.
9+
- Do not create a new backend service for WordPress.com access.
10+
- Keep the `wordpress-studio` server enabled for site operations, screenshots, block validation, audits, and WP-CLI access.
11+
- Keep the `wordpress-telemetry` server enabled when workflow telemetry is needed.
12+
- If Cascade cannot see WordPress.com tools, check Cascade MCP settings and the user's `~/.codeium/windsurf/mcp_config.json` file.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
trigger: always_on
3+
---
4+
5+
# WordPress.com
6+
7+
- Treat this workspace as a WordPress.com-aware build environment.
8+
- Use the configured WordPress.com MCP tools before falling back to shell or manual WordPress operations.
9+
- Prefer the smallest fitting WordPress abstraction: existing blocks first, then theme work, custom blocks, and plugins only when reusable functionality is required.
10+
- Keep user-facing product text as WordPress.com.
11+
- Ask for the target site only when the available MCP context does not identify it.
12+
- Verify WordPress work through MCP-backed screenshots, block validation, audits, or WP-CLI commands when those tools are available.

plugins/windsurf/README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# WordPress.com for Windsurf Cascade
2+
3+
This Windsurf/Cascade output packages the shared WordPress agent substrate from the `build-with-wordpress` source repo for WordPress.com work.
4+
5+
## What is Windsurf-specific
6+
7+
- Cascade rules live in `.devin/rules/*.md`, which the official docs list as the preferred workspace rule location.
8+
- `mcp_config.json` is shaped for Cascade's MCP configuration file at `~/.codeium/windsurf/mcp_config.json`.
9+
- The rules tell Cascade when to use WordPress.com MCP tools and how to route WordPress implementation work.
10+
11+
## What is shared
12+
13+
- The WordPress.com MCP path uses the existing `wordpress-studio` MCP server; this output does not add a new backend service.
14+
- Jetpack-connected site access stays part of the existing WordPress.com / Jetpack MCP flow.
15+
- The bundled `wordpress-telemetry` MCP server is the same repo-local telemetry server used by the other outputs.
16+
- Shared WordPress skills are copied into `skills/` so routing, Studio-backed workflows, auditing, theme, block, and plugin guidance stay aligned across agent surfaces.
17+
18+
## Setup
19+
20+
1. Install Devin Desktop / Windsurf and complete onboarding.
21+
2. Optionally install the `windsurf` command in `PATH` during onboarding.
22+
3. Build this repo with `pnpm build`.
23+
4. Copy the servers from `plugins/windsurf/mcp_config.json` into `~/.codeium/windsurf/mcp_config.json`.
24+
5. In Cascade MCP settings, confirm both servers are enabled:
25+
- `wordpress-studio`
26+
- `wordpress-telemetry`
27+
6. Open this output folder or copy `.devin/rules/` into the workspace where Cascade should be WordPress.com-aware.
28+
7. Ask Cascade for a WordPress.com site task and confirm it uses MCP tools before shell fallbacks.
29+
30+
## Included Cascade rules
31+
32+
- `.devin/rules/wordpress-com.md`: always-on WordPress.com routing and product guidance.
33+
- `.devin/rules/wordpress-com-mcp.md`: model-decision MCP setup and troubleshooting guidance.
34+
35+
## Official references
36+
37+
- Rules and memories: https://docs.windsurf.com/windsurf/cascade/memories
38+
- MCP configuration: https://docs.windsurf.com/windsurf/cascade/mcp
39+
- AGENTS.md discovery: https://docs.devin.ai/desktop/cascade/agents-md
40+
- Installation and onboarding: https://docs.windsurf.com/windsurf/getting-started
41+
42+
## Included shared skills
43+
44+
- `auditing`
45+
- `block-creator`
46+
- `design-previews-creator`
47+
- `plugin-creator`
48+
- `site-creator`
49+
- `studio`
50+
- `theme-creator`
51+
- `wordpress-creator`

plugins/windsurf/mcp_config.json

Lines changed: 18 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)