--- description: 用户要求 git commit、提交代码、写 commit message 或创建提交时,必须先加载 commit-convention skill 并严格遵守 alwaysApply: false --- # Git 提交规范自动激活 当用户要求**提交代码**、**git commit**、**写提交说明**或执行提交流程时: 1. 必须先加载 `.cursor/skills/commit-convention/SKILL.md`。 2. Agent 代提交时 subject **必须**以 `[Ai]` 开头,并写清业务变更或 Bug 修复,禁止敷衍 subject。 3. 未获用户明确授权不得 commit;不得提交 `.env` 等含密钥文件;默认不 push。