Files
X-Financial/tools/agent-change-log/README.md
caoxiaozhu d4ff79f326 chore(agent): 新增变更日志/checkpoint skill 与 post-commit hook
- AGENTS.md 新增变更日志 Skill 规范:变更后增量更新 document/work-log,更新前先做 Git 拉取检查
- 新增 .codex/skills 下 agent-change-log、git-checkpoint-commit 两个 skill
- 新增 .githooks/post-commit 与 tools/agent-change-log 自动化脚本,提供提交后最低限度日志追加
2026-06-24 10:41:56 +08:00

23 lines
693 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Agent Change Log Automation
这个目录提供 `agent-change-log` 的可执行部分。
## 手动写入一条日志
```bash
python3 tools/agent-change-log/update_change_log.py --event "manual"
```
## 安装提交后自动日志 hook
```bash
tools/agent-change-log/install_post_commit_hook.sh
```
安装后,每次 `git commit` 完成,`.githooks/post-commit` 会调用
`update_change_log.py`把最近提交、Git 双向提交检查和触发时间追加到
`document/work-log/YYYY-MM-DD.md`
注意hook 只能覆盖“提交后自动记录”。没有提交的普通文件修改,仍需要执行代理在任务完成前按
`AGENTS.md``agent-change-log` 主动记录。