Files
hgmj_h5/.cursor/rules/commit-standards.mdc
T
谢宇宁 eada71e211 [Human] chore(project): 初始化导入 91dj H5 客户端项目代码
从本地工程首次入库;.npmrc(含私有 npm 源 token)与 tsbuildinfo 已加入 .gitignore,不随仓库提交。
2026-10-08 14:22:35 +07:00

13 lines
708 B
Plaintext

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