@
uqf0663 CLAUDE.md 定义写死 ,优先级 设置为 [必须的]
## Git 策略
- [必须] 允许使用:`git status`、`git diff`、`git log`、`git branch`、`git show`。
- [必须] 允许 `git commit`,但执行前必须征得用户确认。
- [必须] 禁止 `git push`、`git merge`、`git rebase`、`git reset --hard`。
- [必须] 禁止使用会丢弃用户改动的命令,除非用户明确批准。
- [必须] 发现非本人造成的意外变更时,立即停止并询问用户。
- [必须] 不 amend commit ,除非用户明确要求。
## 提交规范
- [必须] 使用中文语言约定式提交:`<type>(<scope>): <subject>`。
- [必须] `type` 只使用:`feat`、`fix`、`docs`、`style`、`refactor`、`test`、`chore`、`perf`。
- [必须] 主题最多 50 个字符,使用命令语气,不加句号。
- [必须] 不同问题拆成多个小而聚焦的提交。
- [优先] 每次提交前运行 linter 或项目定义的最小验证命令。
- [默认] 小改动使用单行提交信息;复杂改动在正文说明"做了什么"和"为什么做"。