---
title: "Devin Desktop (Windsurf) rules: パスと形式 · DotsAgent"
description: ".devin/rules/*.mdの配置場所、形式とfrontmatter、グローバル版とネストされた版の統合方法、読み込むツールを解説します。2026-10-01時点で確認済み。"
url: https://dotsagent.io/ja/instructions/files/windsurf-rules
---

.devin/rules/*.md

# Devin Desktop (Windsurf) rules: 配置場所とツールでの読み込み方

2026-06-02からWindsurfの新名称となったDevin Desktopは、.devin/rules/ のルールファイルを読み込みます。.windsurf/rules/ と旧式の .windsurfrules も引き続き使用できます。各ルールを常時有効にするか、globで一致させるか、モデルに選ばせるか、手動で呼び出すかは、triggerで指定します。

## 配置場所

- ワークスペース: .devin/rules/*.md（推奨）または .windsurf/rules/*.md（フォールバック）。
- 旧式の単一ファイル: ワークスペースのルートにある .windsurfrules。引き続き読み込まれます。
- グローバル: ~/.codeium/windsurf/memories/global_rules.md。常時有効です。
- 任意のディレクトリにある AGENTS.md。
- システム（Enterprise）: /Library/Application Support/Devin/rules/*.md、/etc/devin/rules/*.md、または C:\ProgramData\Devin\rules\*.md。

## 形式

Markdown。ワークスペースのルールはYAML frontmatterで始まります。triggerには always_on、model_decision、glob、manual を指定します。globルールにはglobsを、model_decisionにはdescriptionを指定します。global_rules.md は6,000文字、各ワークスペースのルールファイルは12,000文字が上限です。

Frontmatterのキー: `trigger``globs``description`

`.devin/rules/*.md`

```
---
trigger: glob
globs: **/*.test.ts
---

# Test files

- Use Vitest and import describe, it and expect explicitly.
- Test one behaviour per case and name it in plain English.
- Mock network calls with the helpers in test/mocks/.
- Never call real payment APIs from a test.
```

## 優先順位と統合

.devin/ は .windsurf/ より優先されます。システムルールはワークスペースルールやグローバルルールを上書きせず、それらと統合されます。global_rules.md とルートの AGENTS.md は常時有効です。ルールはワークスペース内、そのサブディレクトリ内、およびgitルートまでの親ディレクトリ内で検出されます。

## 読み込むツール

| ツール | 対応状況 |
| --- | --- |
| [Cline](https://docs.cline.bot/features/cline-rules) | 旧式の .windsurfrules ファイルを検出します。 |

## ヒント

- 新しいルールは .devin/rules/ に作成し、.windsurf/rules/ は古いインストール環境向けにのみ使用してください。
- エージェントが関連する場合にのみ参照するガイダンスには、明確なdescriptionを指定して trigger: model_decision を使用してください。
- 自動生成されるMemoriesが適用されるのは旧式のCascade agentのみです。現在デフォルトのDevin Localには適用されません。

1つのフォームから、AGENTS.mdと5つのツールに対応するルールファイルを生成します。 [AGENTS.mdジェネレーターを開く →](https://dotsagent.io/ja/instructions)

## その他の指示ファイル

[AGENTS.md](https://dotsagent.io/ja/instructions/files/agents-md)

[CLAUDE.md](https://dotsagent.io/ja/instructions/files/claude-md)

[GEMINI.md](https://dotsagent.io/ja/instructions/files/gemini-md)

[.cursor/rules/*.mdc](https://dotsagent.io/ja/instructions/files/cursor-rules)

[.github/copilot-instructions.md](https://dotsagent.io/ja/instructions/files/github-copilot-instructions)

[.clinerules/](https://dotsagent.io/ja/instructions/files/cline-rules)

[~/.openclaw/workspace/AGENTS.md](https://dotsagent.io/ja/instructions/files/openclaw-workspace)

## 出典

1. [docs.windsurf.com](https://docs.windsurf.com/windsurf/cascade/memories)/windsurf/cascade/memories
2. [devin.ai](https://devin.ai/blog/windsurf-is-now-devin-desktop)/blog/windsurf-is-now-devin-desktop
3. [docs.devin.ai](https://docs.devin.ai/desktop/devin-desktop-faq)/desktop/devin-desktop-faq

AIエージェント開発者向けの独立したリファレンスです。ここに記載されているいずれのベンダーとも提携していません。

© 2026 DotsAgent · 確認日: 2026年10月1日
