Add global CLAUDE.md with behavioral guidelines

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Knowit
2026-04-20 21:15:21 +08:00
parent 53d7951744
commit 6406ef36a5
2 changed files with 74 additions and 0 deletions

View File

@@ -46,6 +46,15 @@ chmod +x ~/.claude/token-stats-hook-bin
|------|------|------|
| 命令集 | `commands/` | Claude Code 自定义斜杠命令 |
| Stop Hook | `hooks/token-stats-hook/` | 会话结束时自动备份 token 用量Go 二进制) |
| 全局 CLAUDE.md | `CLAUDE.md` | 通用行为准则,减少常见 LLM 编码失误 |
### 安装全局 CLAUDE.md
```bash
cp claudeplus/CLAUDE.md ~/.claude/CLAUDE.md
```
放置在 `~/.claude/CLAUDE.md` 后会对所有项目生效,可与项目内的 `CLAUDE.md` 合并使用。
---