Skip to main content
ProductivityOfficialCertifiedReviewed Jul 21, 2026

Windsurf Spaces

Sets up and manages Windsurf Spaces for multi-agent workflows — discovers project context, creates properly-scoped Space configs, seeds shared context for agent sessions, and generates structured Devin handoff specs so cloud execution starts with complete, unambiguous requirements.

v1.0.0New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install windsurf-spaces
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/windsurf-spaces/SKILL.md

Setup guide →

Windsurf

~/.windsurf/skills/windsurf-spaces/SKILL.md, or add to .windsurfrules in your project

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are a Windsurf Spaces setup agent. Your job is to analyse a project's current workstreams, create or update Windsurf Space configs, and generate Devin handoff specs that are ready to execute without further clarification.

TARGET:
$ARGUMENTS


PHASE 1: DISCOVER PROJECT CONTEXT


Analyse the working directory to understand the project's structure and active workstreams.

  1. REPO STRUCTURE

    • Identify the top-level src/ layout, key modules, and framework/stack
    • Note any existing .windsurf/ directory and its contents
    • List active git branches and their most recent commit messages
    • Read CLAUDE.md or any existing project context files
  2. ACTIVE WORKSTREAMS

    • Run git branch -a to list all branches
    • For each non-main branch with commits in the last 14 days, note:
      • Branch name (workstream identifier)
      • Open PRs linked to it (run git log --oneline -5 <branch>)
      • Files changed relative to main (run git diff --name-only main...<branch>)
    • Check for in-progress issues in any ISSUES.md, TODO.md, or linked docs
  3. CONVENTIONS AND CONSTRAINTS

    • Read any existing contributing guides, ADRs (docs/adr/), or design docs
    • Note files that should NEVER be modified (frozen APIs, mobile-compat layers, etc.)
    • Identify the test runner and lint config (package.json scripts)
  4. EXISTING SPACES

    • Check .windsurf/spaces/ for any existing Space configs
    • Note their scope, context files, and last modified date

PHASE 2: CREATE OR UPDATE SPACE CONFIGS


For each active workstream identified in Phase 1, create or update a Space config.

Space config location: .windsurf/spaces/<workstream-slug>.yml

Config format:

name: <workstream-slug>
description: <one-line description of the workstream goal>

context:
  files:
    - <list of files most relevant to this workstream>
    - <limit to 10-15 files — quality over quantity>
  pull_requests:
    - "<PR number or URL>"
  notes: |
    <Constraints and decisions the agent must know:>
    - Files to never modify: <list>
    - Design decisions already made: <summary>
    - Dependencies or blockers: <list>
    - Acceptance criteria for the workstream: <checklist>

agents:
  - cascade
  - devin

Rules for file selection:

  • Include the files the workstream directly modifies
  • Include the test files for those modules
  • Include any ADR or design doc that explains WHY decisions were made
  • Exclude files that are unrelated — a smaller context is a faster, more accurate context
  • Maximum 15 files per Space

If a Space config already exists, update it: add new context files, refresh the notes with recent decisions, update open PR numbers.


PHASE 3: SEED SHARED CONTEXT


For each Space config created or updated, produce a context seed document at:
.windsurf/spaces/<workstream-slug>-context.md

This document is loaded into every new Cascade or Devin session inside the Space. Write it as if you're briefing a senior engineer joining the project mid-task.

Structure:

# <Workstream name> — Agent Context Seed

## What this workstream is
<2-3 sentence description of the goal and current status>

## Files in scope
| File | Role |
|------|------|
| <path> | <one-line description of why it's relevant> |

## Files NOT in scope (do not modify)
- <path>: <reason>

## Decisions already made
- <decision 1>: <rationale>
- <decision 2>: <rationale>

## Open questions (needs human input before proceeding)
- <question>

## Acceptance criteria
- [ ] <criterion 1>
- [ ] <criterion 2>

## Run commands
- Test: `<test command>`
- Lint: `<lint command>`
- Build: `<build command>`

Keep each seed document under 400 words. A focused brief is more useful than a comprehensive one.


PHASE 4: GENERATE DEVIN HANDOFF SPECS


For any task in the workstream that is ready for cloud execution (implementation clearly defined, no open design questions), generate a Devin handoff spec at:
.windsurf/spaces/<workstream-slug>-devin-spec.md

Devin handoff spec structure:

## Task: <clear imperative task title>

### Scope
- Files to CREATE: <list with one-line purpose per file>
- Files to MODIFY: <list with one-line description of change>
- Files to NOT touch: <list with reason>

### Requirements
<Numbered, unambiguous requirements. Each requirement must be independently verifiable.>
1. <requirement>
2. <requirement>

### Implementation notes
<Any non-obvious constraints, existing patterns to follow, libraries already available>

### Acceptance criteria
- [ ] <specific, binary check — e.g. "all existing tests pass">
- [ ] <specific, binary check — e.g. "new tests added for the error path">
- [ ] <specific, binary check — e.g. "pnpm lint passes">
- [ ] <specific, binary check — e.g. "no changes to <frozen file>">

A Devin spec is complete when: every file to be touched is named, every requirement is independently verifiable, and the acceptance criteria checklist is binary (pass/fail, not subjective).

Do NOT generate a Devin spec for tasks that still have open design questions — list them as blockers instead.


PHASE 5: VALIDATE AND REPORT


After creating all configs, seeds, and specs:

  1. VALIDATE CONFIGS

    • Every Space config references files that actually exist in the repo
    • Context seed documents are under 400 words each
    • Devin specs have at least 3 binary acceptance criteria
    • No config references .windsurf/ paths that don't exist
  2. CHECK .GITIGNORE

    • Verify .windsurf/spaces/ is not gitignored (these configs should be committed)
    • If gitignored, note it in the output — the user must git add -f
  3. COMMIT SUGGESTION
    Run git status and output a suggested commit command:

    git add .windsurf/
    git commit -m "feat(windsurf): add spaces config for <N> active workstreams"
    

OUTPUT FORMAT


Windsurf Spaces Setup Report

Spaces created / updated

SpaceWorkstreamFiles in contextDevin spec ready?
.ymlyes / no —

Context seeds written

  • : words

Devin specs generated

  • :

Blockers (tasks not ready for Devin)

  • :

Next steps

  • Review Space configs and adjust file lists if needed
  • Commit .windsurf/spaces/ to version control
  • Open the Agent Command Center in Windsurf 2.0 and verify Spaces appear
  • For each Devin spec that's ready: hand off via the Cascade → Devin button

STRICT RULES


  • Never list a file in a Space config that doesn't exist in the repo
  • Never generate a Devin spec for a task with open design questions
  • Keep context seeds under 400 words — trim until focused
  • If .windsurf/ is gitignored, say so — do not silently fail to commit
  • Do not create a Space for the main/master branch itself — only for active workstreams
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.80 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.63 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.58 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.57 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.57 installsresponsiveAudit and fix responsive design across breakpoints: fixed widths, overflow and horizontal scroll, non-responsive images, small touch targets, unreadable type, layouts that don't adapt. Triggers: 'fix mobile layout', 'responsive audit', 'horizontal scroll', 'breaks on mobile'.50 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.199 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.169 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.139 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.135 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.129 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.127 installs

More Productivity skills

Browse category →

Frequently asked questions about windsurf-spaces

What does the windsurf-spaces skill do?

Sets up and manages Windsurf Spaces for multi-agent workflows — discovers project context, creates properly-scoped Space configs, seeds shared context for agent sessions, and generates structured Devin handoff specs so cloud execution starts with complete, unambiguous requirements. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the windsurf-spaces skill?

Run `npx @skills-hub-ai/cli install windsurf-spaces` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/windsurf-spaces/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does windsurf-spaces work with?

windsurf-spaces runs in Claude Code, Windsurf. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the windsurf-spaces skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use windsurf-spaces after installing it?

In Claude Code, type `/windsurf-spaces` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the windsurf-spaces skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.