Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

windsurf-rules

БесплатноБез исполняемых скриптовНе проверен

Windsurf rules are Markdown files that tell the Cascade AI agent in the Windsurf IDE (now branded Devin Desktop) how to work in a project: stack, code style…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Windsurf Rules

Overview

Rules are persistent instructions that Cascade (the AI agent in the Windsurf IDE) receives while it works. Windsurf is now published as Devin Desktop (by Cognition); the docs and UI use that name, but the same Cascade rules system, the .windsurf/ directory and the legacy .windsurfrules file are still supported, so this skill keeps the Windsurf name.

Rules come at four levels: a global file, per-rule files in the workspace, AGENTS.md files in any directory, and system-level files deployed by IT. Each workspace rule has an activation mode that decides when its text enters the context window, so a rule costs nothing until it is relevant.

Instructions

Step 1: Pick the scope

Scope Location Notes
Global ~/.codeium/windsurf/memories/global_rules.md One file, always on, all workspaces. Limit 6,000 characters.
Workspace .devin/rules/*.md (preferred) or .windsurf/rules/*.md One file per rule, each with an activation mode. Limit 12,000 characters per file.
Directory AGENTS.md (or agents.md) in any folder No frontmatter. Root file is always on; a subfolder file applies only to files inside that folder.
Legacy .windsurfrules at the workspace root Single plain Markdown file, still read. Prefer separate rule files for new work.
System (enterprise) /etc/devin/rules/ (Linux), /Library/Application Support/Devin/rules/ (macOS), C:\ProgramData\Devin\rules\ (Windows) Deployed by IT, read-only; Windsurf directories are the legacy fallback.

Rules are discovered in the workspace, its subdirectories and parent directories up to the git root. Create rules from the UI (the Customizations icon in the Cascade panel, then Rules, then + Global or + Workspace) or write the files by hand and commit them.

Step 2: Write a workspace rule with an activation mode

Each file in .devin/rules/ starts with frontmatter whose trigger field picks the mode:

trigger: When the rule reaches Cascade
always_on Full text in the system prompt on every message
model_decision Only the description is shown; Cascade reads the file when it judges it relevant
glob When Cascade reads or edits a file matching globs (for example src/**/*.ts)
manual Only when you type @rule-name in the Cascade input
mkdir -p .devin/rules
---
trigger: always_on
---
# Stack and conventions
- Frontend: React 19, TypeScript strict mode, Vite, Tailwind CSS
- Backend: Node.js 22, Fastify, Prisma, PostgreSQL
- Named exports only; default exports just for page components
- Business logic in `src/services/`; components stay thin
- Environment variables are read only through `src/config/env.ts`
---
trigger: glob
globs: "**/*.test.ts"
---
- Use `describe`/`it` blocks with Vitest
- Mock external HTTP calls, never internal modules
- Test file sits next to the source: `Button.tsx` and `Button.test.tsx`

Step 3: Write rules Cascade can follow

  • Keep each rule short and specific; the docs advise against generic lines like "write good code", which the model already follows.
  • Use bullet lists and Markdown. XML-style tags can group related rules.
  • Show a small correct example for patterns that are hard to describe, and name the anti-pattern next to it:
## Component pattern
export function UserCard({ userId, onSelect }: UserCardProps) { ... }   // correct
export default function ({ user, click }) { ... }                      // avoid
  • State prohibitions as a short list: no useEffect for data fetching (use TanStack Query), no hardcoded API URLs, no hand-written migrations (use prisma migrate dev).

Step 4: Add AGENTS.md for folder-specific guidance

my-shop/
  AGENTS.md              # always on: project-wide conventions
  frontend/AGENTS.md     # applies only when working under frontend/
  backend/AGENTS.md

Plain Markdown, no frontmatter. The same file is also read by other agents (Codex, Claude Code and others), so it is a good place for rules you want shared across tools.

Step 5: Global rules, memories, workflows and skills

  • Global rules (global_rules.md) hold personal habits that apply everywhere, for example "flag security concerns proactively" or "explain tradeoffs when several approaches exist".
  • Memories are generated by Cascade (or on request: "create a memory of ...") and stored locally in ~/.codeium/windsurf/memories/, per workspace, never committed. They apply to the legacy Cascade agent only; the Devin Local agent does not keep memories. For anything the team should rely on, write a rule or AGENTS.md instead.
  • Workflows (.devin/workflows/*.md, run as /workflow-name) are manual runbooks. Skills (.devin/skills/<name>/SKILL.md, with optional scripts and templates) are picked by the model or by @name. Use a skill when a task needs suppor
Полный SKILL.md на GitHub

Установить windsurf-rules в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл windsurf-rules?

Windsurf rules are Markdown files that tell the Cascade AI agent in the Windsurf IDE (now branded Devin Desktop) how to work in a project: stack, code style, architecture and things to avoid. Use when a user asks to set up .windsurfrules or .windsurf/rules, write global or workspace rules for Windsurf, scope a rule to certain files, share coding standards with a team, or tune Cascade behavior.

Как установить скилл windsurf-rules?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл windsurf-rules запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить windsurf-rules с