NLDClient-yudde/.claude/hooks/pre-commit.md

16 lines
464 B
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.

---
event: pre-commit
condition: "git commit operation"
action: run_skill
skill: batch-git-ops
protocol: ../protocols/git-safety.md
description: Git 提交前确保三仓同步,遵循 batch-git-ops 技能流程
version: "1.0"
updated: "2026-05-08"
---
> 完整规则定义见 [../protocols/git-safety.md](../protocols/git-safety.md)
触发时:读取 `batch-git-ops` 技能,检查三仓状态,生成 commit message展示变更摘要并获得确认。