Windsurf rules (.windsurf/rules) and Cline (.clinerules): setup, migration, and live builder.
By Bernard Huang · Updated
Generate properly formatted Windsurf Cascade rules, Cline Plan/Act rules, or unified AGENTS.md files in one click—and keep them synced across IDEs.
On this page
Generate your Windsurf, Cline, Cursor, or AGENTS.md file.
Pick your coding agent target, communication posture, stack, and test command to copy or download a bounded rules file cleanly:
Windsurf vs. Cline rule paths and cross-tool compatibility.
| Tool | Modern workspace path | Legacy / auto-detected files | Global / personal scope |
|---|---|---|---|
| Windsurf (Cascade) | .windsurf/rules/*.md | .windsurfrules at repo root | Windsurf Global Rules (applies across all workspaces) |
| Cline (VS Code / Forks) | .clinerules/*.md or .cline/rules/ | Natively reads .windsurfrules and .cursorrules too | Cline Global Rules / Custom Instructions panel |
| Cross-tool shared root | AGENTS.md (7-agent matrix →) | Symlink or import into CLAUDE.md / .clinerules/ | ~/.codex/AGENTS.md, ~/.claude/CLAUDE.md |
Production Windsurf & Cline templates (stack + Plan/Act discipline).
1. Windsurf (.windsurf/rules/coding-standards.md)
2. Cline (.clinerules/workflow.md)
Migrating legacy .windsurfrules into .clinerules/
mkdir -p .clinerules
cp .windsurfrules .clinerules/windsurf-rules.mdAlready have an existing repo rules file and want to merge your personal communication block safely without deleting build commands? Use our Instruction Converter & Merger.
Questions people ask.
Should I use .windsurfrules or .windsurf/rules/ in Windsurf?
Use .windsurf/rules/*.md for new projects so you can split tech-stack standards, testing gates, and communication style into small, maintainable Markdown files instead of one monolithic .windsurfrules file.
Does Cline automatically read .windsurfrules or .cursorrules?
Yes. Cline natively detects and loads .windsurfrules and .cursorrules in a repository root alongside its own .clinerules/ directory, making cross-tool migration straightforward.
Where should I put personal tone preferences so I don't push them to my team's repo?
Put personal verbosity, tone, and explanation style in Windsurf Global Rules or Cline's Global Rules / Custom Instructions settings, and reserve committed .windsurf/rules/ and .clinerules/ files for shared repo standards.
How do I keep Windsurf, Cline, Cursor, Claude Code, and Codex synced in one repo?
Keep your canonical build, test, and architecture rules in a root AGENTS.md file (under ~200 lines) and let tool-specific rule folders focus only on tool-specific behavior like Cline's Plan/Act gate or Cursor's glob rules.
What changed.
- First published with interactive Windsurf/Cline/Cursor/AGENTS.md rules builder, migration snippet, and Plan/Act templates.