Git 钩子目录,通过 install-hooks.sh 注册为仓库的 core.hooksPath。
bash install-hooks.sh会将 core.hooksPath 指向此目录,启用以下守卫。
拦截对以下文件的未治理变更:
skills-engineering/ios-engineer/SKILL.mdskills-engineering/ios-engineer/references/*.md
如果这些文件被 staged,同一个 commit 必须包含对应的 proposal 和 approval 记录。
推送前顺序执行:
sync-skills.sh— 同步 skill 到各 Agent 目录sync-agent-preamble.sh— 重写 preamble 托管块verify-sync.sh— 校验同步结果sync/scripts/sync_all.sh— 同步 MCP 配置到所有平台
任一步骤失败则阻止推送。
SKILL_BYPASS=1 git commit -m "..." # 跳过 skill 治理检查
SKILL_BYPASS=1 git push # 跳过 skill-sync 段
git push --no-verify # 跳过所有 hooks绕过仅限紧急修复,需在 commit message 中说明原因。