Skip to content

Commit be8a72b

Browse files
committed
docs(claude): add AI attribution rule and shell tools guidelines
- Add rule to prohibit unauthorized AI editor/model name mentions - Add shell tools usage section specifying preferred modern CLI tools (fd, rg, ast-grep, fzf, jq, yq) over traditional Unix commands
1 parent 575743e commit be8a72b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

CLAUDE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,20 @@ uv run pytest # 4. 執行單元測試
177177
- **除非有明確指示,或任務需求(見 `TASK.md`),**否則**不得刪除或覆蓋現有程式碼。**
178178
- **需要分析或拆解問題,通過 sequential thinking 進行更深度思考**
179179
- **與 GitHub 互動需使用 gh CLI**
180+
- **不准在未經允許的情況下,擅自在任何的文檔、訊息等文字中,包含 AI 編輯器或是 AI 模型的名稱**,例如:
181+
- Generated with [Claude Code]
182+
- Co-Authored-By: Claude
183+
184+
185+
## Shell 工具使用指引
186+
187+
⚠️ **重要**:使用以下專業工具替代傳統 Unix 指令(若缺少請安裝):
188+
189+
| 任務類型 | 必須使用 | 禁止使用 |
190+
|---------|---------|---------|
191+
| 檔案搜尋 | `fd` | `find`, `ls -R` |
192+
| 文字搜尋 | `rg` (ripgrep) | `grep`, `ag` |
193+
| 程式碼結構分析 | `ast-grep` | `grep`, `sed` |
194+
| 互動式選擇 | `fzf` | 手動篩選 |
195+
| 處理 JSON | `jq` | `python -m json.tool` |
196+
| 處理 YAML/XML | `yq` | 手動解析 |

0 commit comments

Comments
 (0)