360 Secure SkillHub
360 安全技能中心

Commit message guide

该 Skill 提供 git 提交信息的撰写与审阅规范:摘要在 50 字符内且使用祈使语气,摘要与正文之间空一行,正文 72 字符换行,一次提交对应一个逻辑变更,并给出正反示例。它明确只起草或审阅提交信息文本,不执行 git 命令。

分类:开发
kosmits-ai
kosmits-ai
热度 3.01
最近更新 2026-11-03 22:20:18

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add kosmits-ai/thesis-changelog-test-15997
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
Commit message guide
description
Helps the agent write clear git commit messages following the conventional "summary line, blank line, body" format, with concrete rules for length, mood and scope. Published for a university study of registry behaviour and will be removed shortly.

Commit message guide

Use this skill when the user asks you to write, review or improve a git commit message.

Format

  1. Summary line: at most 50 characters, imperative mood ("Add retry to upload client", not "Added" or "Adds"), no trailing period.
  2. Blank line between summary and body. Many tools rely on it to separate the two.
  3. Body: wrap at 72 characters. Explain what changed and why, not how; the diff already shows how.

Rules

  • One logical change per commit. If the summary needs "and", suggest splitting the commit.
  • Reference the issue in the body when one exists, for example Fixes #142.
  • Do not include secrets, tokens or internal hostnames in messages; they stay in history permanently.
  • For a revert, start the summary with Revert and quote the original summary.

Example

Add exponential backoff to upload client

Uploads failed permanently on the first 503 from the storage API.
Retry up to five times with backoff starting at one second, which
covers the short outages seen in the last two incidents.

Fixes #142

What not to do

  • Do not run git commands; only draft or review the text of the message.