Skip to content

Commit 6624fb5

Browse files
Hongzhi Wenclaude
andcommitted
docs: 修正 .agent 为 Google Antigravity 规范,删除 .cursor 引用,AI 适配改为单段 prompt
- AI 辅助开发文档(3 语言):重写为简洁结构,移除 .cursor 引用和分步指引,改为一段 prompt 让其他 AI agent 自行适配 - README(4 语言):修正 .agent 说明为 Google Antigravity 规范 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c2215a2 commit 6624fb5

7 files changed

Lines changed: 28 additions & 151 deletions

File tree

README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ N.E.K.O/
555555
└── memory_server.py # 🧠 记忆服务器
556556
```
557557

558-
> **AI 辅助开发**`.agent/` 目录包含面向 AI 编程助手(Claude Code、Cursor 等)的开发规范和技能集。支持这些工具的 AI Agent 会自动读取并遵循其中的规则,详见[开发者文档](https://project-neko.online/contributing/ai-assisted-dev)
558+
> **AI 辅助开发**`.agent/` 目录遵循 Google Antigravity 开放规范,包含项目的开发规范和技能集。Claude Code 开箱即用,其他 AI 工具请参阅[适配指引](https://project-neko.online/contributing/ai-assisted-dev)
559559
560560
**数据流向**
561561

docs/README_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ N.E.K.O/
498498
└── memory_server.py # 🧠 Memory server
499499
```
500500

501-
> **AI-Assisted Development**: The `.agent/` directory contains development rules and skill sets for AI coding assistants (Claude Code, Cursor, etc.). AI agents that support these tools will automatically load and follow the rules within. See the [developer docs](https://project-neko.online/contributing/ai-assisted-dev) for details.
501+
> **AI-Assisted Development**: The `.agent/` directory follows the Google Antigravity open convention and contains the project's development rules and skill sets. Works out of the box with Claude Code; for other AI tools see the [adaptation guide](https://project-neko.online/contributing/ai-assisted-dev).
502502
503503
**Data Flow**
504504

docs/README_ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ N.E.K.O/
490490
└── memory_server.py # 🧠 記憶サーバー
491491
```
492492

493-
> **AI支援開発**`.agent/` ディレクトリには、AIコーディングアシスタント(Claude Code、Cursor など)向けの開発ルールとスキルセットが含まれています。これらのツールをサポートするAIエージェントは、自動的にルールを読み込んで従います。詳細は[開発者ドキュメント](https://project-neko.online/contributing/ai-assisted-dev)をご覧ください
493+
> **AI支援開発**`.agent/` ディレクトリは Google Antigravity オープン規約に従い、プロジェクトの開発ルールとスキルセットを格納しています。Claude Code ではそのまま利用可能。他のAIツールについては[適応ガイド](https://project-neko.online/contributing/ai-assisted-dev)を参照してください
494494
495495
**データフロー**
496496

docs/README_ru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ N.E.K.O/
490490
└── memory_server.py # 🧠 Сервер памяти
491491
```
492492

493-
> **Разработка с помощью ИИ**: Каталог `.agent/` содержит правила разработки и наборы навыков для ИИ-ассистентов кодирования (Claude Code, Cursor и др.). ИИ-агенты, поддерживающие эти инструменты, автоматически загружают и следуют правилам. Подробнее в [документации для разработчиков](https://project-neko.online/contributing/ai-assisted-dev).
493+
> **Разработка с помощью ИИ**: Каталог `.agent/` следует открытой конвенции Google Antigravity и содержит правила разработки и наборы навыков проекта. Claude Code работает из коробки; для других ИИ-инструментов см. [руководство по адаптации](https://project-neko.online/contributing/ai-assisted-dev).
494494
495495
**Поток данных**
496496

Lines changed: 8 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,25 @@
11
# AI-Assisted Development
22

3-
N.E.K.O. provides built-in configuration for AI coding assistants. The project currently ships with configurations for two platforms, and you can adapt them for any other AI tool.
3+
N.E.K.O. ships a `.agent/` directory in the repository root, following the [Google Antigravity](https://github.com/anthropics/anthropic-cookbook/tree/main/misc/antigravity) open convention. It contains the project's development rules and task-specific skill sets.
44

5-
## Supported platforms
5+
**Claude Code** natively reads `.agent/` and `CLAUDE.md`, so it works out of the box. For any other AI coding assistant, read the prompt below and follow its instructions.
66

7-
| Platform | Config location | Auto-loaded? |
8-
|----------|----------------|--------------|
9-
| **Claude Code** | `.agent/rules/`, `.agent/skills/`, `CLAUDE.md` | Yes — Claude Code natively reads `.agent/` and `CLAUDE.md` |
10-
| **Cursor** | `.cursor/skills/` | Yes — Cursor natively reads `.cursor/` |
11-
| **Other tools** || Manual setup required (see below) |
12-
13-
## `.agent/` directory (Anthropic convention)
14-
15-
`.agent/` follows the [Anthropic agent convention](https://docs.anthropic.com/en/docs/claude-code). **Claude Code** automatically loads these files; other tools do not.
7+
## `.agent/` directory structure
168

179
```
1810
.agent/
1911
├── rules/
20-
│ └── neko-guide.md # Core development rules (always_on trigger)
12+
│ └── neko-guide.md # Core development rules (always_on)
2113
└── skills/ # ~20 task-specific skill sets
2214
├── i18n/
2315
├── frontend-design/
2416
├── vrm-physics/
2517
└── ...
2618
```
2719

28-
### Rules
29-
30-
`.agent/rules/neko-guide.md` is marked `trigger: always_on`, meaning Claude Code loads it at every session start. It covers:
31-
32-
- **i18n**: All 6 locale files must be updated together.
33-
- **`uv run`**: Always use `uv run` instead of the system Python.
34-
- **Code symmetry**: Parallel providers must follow symmetric structure.
35-
- **Core layer purity**: No provider-specific logic in `core.py`.
36-
- **No numeric suffixes**: Extract shared logic into methods instead.
37-
- **Electron vs. dev mode**: Frontend changes must work in both environments.
38-
39-
### Skills
40-
41-
Each subdirectory under `.agent/skills/` contains a `SKILL.md` defining trigger conditions, domain knowledge, and step-by-step workflows. They are loaded on demand when the current task matches.
42-
43-
## Adapting for other AI tools
44-
45-
If your AI coding assistant does **not** natively support `.agent/`, follow these steps to bring the project rules into your tool:
46-
47-
1. **Read the core rules** — Open `.agent/rules/neko-guide.md` and copy its content into your tool's project-level prompt or rules file. For example:
48-
- **Windsurf**: Paste into `.windsurfrules`
49-
- **GitHub Copilot**: Paste into `.github/copilot-instructions.md`
50-
- **Other tools**: Use whatever "project context" or "system prompt" mechanism your tool provides.
51-
52-
2. **Browse the skills** — Look through `.agent/skills/` for domains relevant to your work. Each `SKILL.md` is self-contained Markdown — you can feed it to your AI tool as additional context when working in that area.
53-
54-
3. **Reference `CLAUDE.md`** — This file in the repo root contains a concise summary of the most critical rules. It is a good starting point if you only want to import one file.
55-
56-
The content is plain Markdown and tool-agnostic — the rules themselves apply regardless of which AI assistant you use.
57-
58-
## Key rules summary
20+
- **Rules** (`.agent/rules/neko-guide.md`): Core project conventions — i18n, `uv run`, code symmetry, core layer purity, no numeric suffixes, Electron vs. dev mode awareness.
21+
- **Skills** (`.agent/skills/*/SKILL.md`): Domain-specific trigger conditions, knowledge, and workflows, loaded on demand.
5922

60-
Regardless of which AI tool you use, these are the non-negotiable project rules:
23+
## Prompt for other AI agents
6124

62-
1. **i18n completeness** — Touching any translation string requires updating all 6 locale files (`en`, `ja`, `ko`, `zh-CN`, `zh-TW`, `ru`).
63-
2. **`uv run` for Python** — Never use the system Python directly.
64-
3. **Code symmetry** — If one provider has a pattern, all providers must follow it symmetrically.
65-
4. **Core layer purity**`core.py` must not contain provider-specific imports or logic.
66-
5. **Dual-mode awareness** — Frontend changes must work in both the dev server (single window) and Electron (multi-window) environments.
25+
> **If you are an AI coding assistant other than Claude Code** (e.g. Cursor, Windsurf, Copilot, Cline, etc.), this project uses the `.agent/` directory (Google Antigravity convention) to store development rules and skills. Your tool may not read `.agent/` automatically. Please do the following: (1) Read `.agent/rules/neko-guide.md` and `CLAUDE.md` in the repo root — these contain the project's mandatory coding rules. Internalize them as your project-level instructions. (2) When working on a specific domain (i18n, VRM physics, frontend UI, etc.), check `.agent/skills/` for a matching subdirectory and read its `SKILL.md` for domain-specific guidance. (3) If your tool has a native project rules mechanism (`.cursorrules`, `.windsurfrules`, `.github/copilot-instructions.md`, etc.), consider copying the core rules from `neko-guide.md` into that file so they persist across sessions.
Lines changed: 8 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,25 @@
11
# AI支援開発
22

3-
N.E.K.O. はAIコーディングアシスタント向けの設定を内蔵しています。現在2つのプラットフォーム向けの設定を提供しており、他のAIツールにも適応できます
3+
N.E.K.O. はリポジトリのルートに `.agent/` ディレクトリを提供しており、[Google Antigravity](https://github.com/anthropics/anthropic-cookbook/tree/main/misc/antigravity) オープン規約に従っています。プロジェクトの開発ルールとタスク別スキルセットが含まれています
44

5-
## サポート済みプラットフォーム
5+
**Claude Code**`.agent/``CLAUDE.md` をネイティブに読み込むため、そのまま使えます。他のAIコーディングアシスタントを使用する場合は、以下のプロンプトを読んで指示に従ってください。
66

7-
| プラットフォーム | 設定場所 | 自動読み込み? |
8-
|--------------|---------|-------------|
9-
| **Claude Code** | `.agent/rules/``.agent/skills/``CLAUDE.md` | はい — Claude Code がネイティブに `.agent/``CLAUDE.md` を読み込みます |
10-
| **Cursor** | `.cursor/skills/` | はい — Cursor がネイティブに `.cursor/` を読み込みます |
11-
| **その他のツール** || 手動設定が必要(以下を参照) |
12-
13-
## `.agent/` ディレクトリ(Anthropic規約)
14-
15-
`.agent/`[Anthropic Agent 規約](https://docs.anthropic.com/en/docs/claude-code)に従っています。**Claude Code** がこれらのファイルを自動的に読み込みますが、他のツールでは読み込まれません。
7+
## `.agent/` ディレクトリ構造
168

179
```
1810
.agent/
1911
├── rules/
20-
│ └── neko-guide.md # コア開発ルール(always_on トリガー
12+
│ └── neko-guide.md # コア開発ルール(always_on)
2113
└── skills/ # 約20のタスク別スキルセット
2214
├── i18n/
2315
├── frontend-design/
2416
├── vrm-physics/
2517
└── ...
2618
```
2719

28-
### ルール
29-
30-
`.agent/rules/neko-guide.md``trigger: always_on` としてマークされており、Claude Code はセッション開始時に必ず読み込みます。カバーする内容:
31-
32-
- **i18n**:翻訳文字列を変更する際は、6つのlocaleファイルすべてを同時に更新する必要があります。
33-
- **`uv run`**:システムPythonではなく、常に `uv run` を使用します。
34-
- **コードの対称性**:並列のプロバイダーは対称的な構造を維持する必要があります。
35-
- **coreレイヤーの純粋性**`core.py` にプロバイダー固有のロジックを含めてはいけません。
36-
- **数字サフィックスの禁止**:共有ロジックはメソッドに抽出します。
37-
- **Electron vs. 開発モード**:フロントエンドの変更は両方の実行環境で動作する必要があります。
38-
39-
### スキル
40-
41-
`.agent/skills/` 配下の各サブディレクトリには `SKILL.md` が含まれ、トリガー条件、ドメイン知識、ステップバイステップのワークフローを定義しています。現在のタスクが一致した場合にオンデマンドで読み込まれます。
42-
43-
## 他のAIツールへの適応
44-
45-
お使いのAIコーディングアシスタントが `.agent/` をネイティブに**サポートしていない**場合、以下の手順でプロジェクトルールをツールに取り込んでください:
46-
47-
1. **コアルールを読む**`.agent/rules/neko-guide.md` を開き、ツールのプロジェクトレベルのプロンプトやルールファイルに内容をコピーします。例:
48-
- **Windsurf**`.windsurfrules` に貼り付け
49-
- **GitHub Copilot**`.github/copilot-instructions.md` に貼り付け
50-
- **その他のツール**:ツールが提供する「プロジェクトコンテキスト」や「システムプロンプト」の仕組みを使用してください。
51-
52-
2. **スキルを確認する**`.agent/skills/` から作業に関連するドメインを探します。各 `SKILL.md` は自己完結型のMarkdownです。関連領域の作業時にAIツールへの追加コンテキストとして提供できます。
53-
54-
3. **`CLAUDE.md` を参照する** — リポジトリルートのこのファイルには、最も重要なルールの簡潔なまとめが含まれています。1つのファイルだけ取り込みたい場合の最良の出発点です。
55-
56-
内容はプレーンなMarkdownでツールに依存しません。ルール自体はどのAIアシスタントを使用しても適用されます。
57-
58-
## コアルール速覧
20+
- **ルール**`.agent/rules/neko-guide.md`):プロジェクトのコア規約 — i18n、`uv run`、コードの対称性、coreレイヤーの純粋性、数字サフィックスの禁止、Electron vs. 開発モード。
21+
- **スキル**`.agent/skills/*/SKILL.md`):ドメイン別のトリガー条件、知識、ワークフロー。オンデマンドで読み込み。
5922

60-
どのAIツールを使用する場合でも、以下は違反不可のプロジェクトルールです:
23+
## 他のAIエージェント向けプロンプト
6124

62-
1. **i18n の完全性** — 翻訳文字列の変更時には、6つのlocaleファイル(`en``ja``ko``zh-CN``zh-TW``ru`)すべてを同時に更新する必要があります。
63-
2. **`uv run` でPythonを実行** — システムPythonを直接使用しないでください。
64-
3. **コードの対称性** — 1つのプロバイダーにパターンがあれば、すべてのプロバイダーが対称的に従う必要があります。
65-
4. **coreレイヤーの純粋性**`core.py` にプロバイダー固有のimportやロジックを含めてはいけません。
66-
5. **デュアルモード認識** — フロントエンドの変更は、開発サーバー(単一ウィンドウ)とElectron(マルチウィンドウ)の両方の環境で動作する必要があります。
25+
> **Claude Code以外のAIコーディングアシスタントの場合**(Cursor、Windsurf、Copilot、Clineなど)、このプロジェクトは `.agent/` ディレクトリ(Google Antigravity規約)を使用して開発ルールとスキルセットを格納しています。お使いのツールは `.agent/` を自動的に読み込まない場合があります。以下を実行してください:(1) リポジトリルートの `.agent/rules/neko-guide.md` と `CLAUDE.md` を読み込み、プロジェクトの必須コーディングルールを把握し、プロジェクトレベルの指示として内化してください。(2) 特定のドメイン(i18n、VRM物理、フロントエンドUIなど)で作業する際は、`.agent/skills/` に一致するサブディレクトリがないか確認し、その `SKILL.md` をドメイン固有のガイダンスとして読み込んでください。(3) お使いのツールにネイティブのプロジェクトルール機構(`.cursorrules`、`.windsurfrules`、`.github/copilot-instructions.md` など)がある場合は、`neko-guide.md` のコアルールをそのファイルにコピーして、セッション間で永続化することを検討してください。

0 commit comments

Comments
 (0)