NLDClient-yudde/CLAUDE.md

27 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# NLD Project — Claude Code Instructions
> **通用规则**:请同时遵循 `AGENTS.md`项目核心规范含仓库结构、编码要求、git 操作约定等)。
> **规则协议**:行为规则以 `.ai/protocols/` 为权威定义,具体说明见各 protocol 文件。
> 本文件仅包含 **Claude Code 专属** 的补充说明,不重复 `AGENTS.md` 中已有的内容。
## 核心行为约束(嵌入自 .ai/protocols/
以下规则摘自 `.ai/protocols/`,嵌入此处确保 Claude Code 能直接加载:
- **确认再行动**:除非用户要求特别清晰,开始编码前将计划描述给用户并获得确认(收集信息和编写计划不需要确认)
- **Unity 约定**:不要生成 .meta 文件;不要主动编译项目;可以做静态代码检查
- **Git 安全**:除非用户要求,不做任何 git 操作git 操作有风险,须提醒用户;本项目有三个关联仓库,任何 git 操作须读取 `batch-git-ops` 技能后执行
## 技能路径
- 技能源位于 `.ai/skills/`(同步副本在 `.claude/skills/`
- 协议源位于 `.ai/protocols/`(同步副本在 `.claude/protocols/`
- 新增或更新后运行 `.ai/sync-all.sh` 同步到各平台
## 编译约定Claude 专属)
- 修改 GamePlay 中的 .cs 代码后需通过 Unity 菜单编译生成 DLL
- Claude 不主动触发 Unity 编译
## 权限边界
- 参见 `.claude/settings.json` 中的 permissions 配置
- 禁止执行 `git push --force`、`rm -rf` 等破坏性命令