360 Secure SkillHub
360 安全技能中心

commit

该 Skill 用于在用户要求提交代码或编写提交信息时,生成符合 Conventional Commits 规范的消息,并强调按逻辑变更拆分提交、只提交自身修改、包含正文以及合理排序。

poteto
热度 0.00
最近更新 2026-10-19 06:44:34
分类:开发依赖:代码执行应用场景:工作流 / 模板 / DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add poteto/noodle/commit
Metadata
name
commit
description
Create conventional commit messages. Use when the user says "commit this", "save changes", "git commit", asks to commit code, write a commit message, or format git history. Follows conventional commits specification.

Conventional Commits

Follow these project-specific rules when creating commits.

Branching

Never create bare branches. If you need branch isolation, use the worktree skill. For simple changes, commit directly on the current branch (including main). Do not run git checkout -b.

Project Rules

  • One commit per logical change — never combine unrelated fixes or features. Three independent changes = three commits.
  • Only commit files you changed — never pull in unrelated files from concurrent sessions.
  • Always include a body — no title-only commits. Explain what and why.
  • merge type — use merge (not a merge commit) when merging a worktree or feature branch.
  • Sequence commits to maximise option value — foundational infrastructure first, then features that build on it.

Example

feat(alerts): Add Slack thread replies for alert updates

When an alert is updated or resolved, post a reply to the original
Slack thread instead of creating a new message. This keeps related
notifications grouped together.

References