360 Secure SkillHub
360 安全技能中心

git-conventions

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

分类:开发
douglarek
douglarek
热度 38.05
最近更新 2026-05-11 17:31:45

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add douglarek/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.