360 Secure SkillHub
360 安全技能中心

git-conventions

提供 Git 提交信息规范,要求使用语义化 <type>(<scope>): <subject> 格式且仅用英文,并列出 feat、fix、docs 等提交类型;同时规定工作流规则:强制推送前确认、提交带 signoff、整合提交、本地提交后询问是否推送、推送成功后展示仓库地址。

douglarek
douglarek
热度 64.42
最近更新 2026-05-11 17:31:45
分类:开发依赖:纯提示词应用场景:DevOps / 工作流 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add git-conventions
Metadata
name
git-conventions
description
Git commit message conventions and workflow rules. Use when making git commits, pushing changes, or performing git operations.

Git Commit Conventions

Commit Message Format

Use semantic commit format: <type>(<scope>): <subject>

Commit Types

  • feat: add new feature
  • fix: correct bug
  • docs: update documentation
  • style: format code (no functional changes)
  • refactor: restructure code
  • test: add/modify tests
  • chore: update build tasks

Workflow Rules

  1. Language: Use English only for git commit messages.

  2. Force Push: Always confirm before git push --force.

  3. Sign-off: Include --signoff flag with all commits.

  4. Consolidation: Consolidate changes into meaningful commits.

  5. Push Confirmation: After making a local commit, ALWAYS prompt the user whether they want to push to the remote repository.

  6. Display URL: After successfully pushing to remote, display the repository's access URL.