跳到正文
cccskills
免费在 GitHub 公开

git-conventional-commits

Guide branch creation, commit messages, and titles so the repo’s semantic workflow is enforced

中文简介正在准备中。当前显示原文说明。

集成工具Jira
查看安装方法

包含的文件(1)

  • SKILL.md4.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

When to use

  • When the user authors commits
  • When the user asks about conventional commits

Use Instead [if available]

  • Use pr-create for end-to-end PR title/body drafting and Jira-linking workflow.
  • Use github-pull-request-handling for resolving and replying to existing PR review conversations.

Standard

Apply the Conventional Commits 1.0.0 specification for commit messages and PR titles.

Allowed types

Use exactly one of these types in PR titles and commits:

TypePurpose
choreMaintenance, tooling, config changes
ciCI/CD pipeline changes
deployDeployment-related changes
docsDocumentation only
featNew feature
fixBug fix
improvementGeneral improvement (non-feature, non-fix)
perfPerformance improvement
buildBuild system/dependency changes
refactorCode refactoring, no behavior change
styleFormatting only, no behavior change
testAdding or updating tests

Format

<type>[(scope)]: <description>

[optional body]

[optional footer(s)]
  • Scope (optional): Must match [a-z:_-]+ (lowercase letters, digits, underscores, colons, hyphens). Examples: sdk, api, my_component.
  • Description: Short, imperative summary. No period at the end.

Breaking changes

For breaking changes, append ! after type/scope and include a BREAKING CHANGE: footer when relevant.

Example:

feat(api)!: switch auth token format

BREAKING CHANGE: clients must re-authenticate with the new token format

Body and footers

  • Body is optional and should explain motivation ("why"), not only implementation details.
  • Separate body from subject with one blank line.
  • Use explicit footers for traceability, such as:
    • BREAKING CHANGE: <description>
    • Refs: UN-12345 or Refs: #123
    • Reviewed-by: <name>

Commit Summary

  • feat(toolkit): add streaming support
  • feat(sdk): update message endpoint
  • ci: add semantic PR validation

Branch & commit workflow

  1. Check current branch

    • Run git branch --show-current; do not commit directly to master/main
    • If you are still on the base branch, create a feature branch following this pattern: fix/<scope>/<short-slug> or feat/<scope>/<short-slug>
    • Keep branch names short but descriptive (e.g., fix/payment/null-check)
  2. Review & stage

    • Inspect your diff (git diff for unstaged, git diff --cached for staged)
    • Stage with git add -A once you understand all changes
    • Optionally include Refs: <ticket> block in the commit body to link Jira/Ticket numbers (the repo tooling can pick this up)
  3. Write the commit

    • Use the <type>(<scope>): <description> format
    • Keep the subject ≤ 72 characters without trailing period
    • Add a blank line and optional body for context, explaining why the change is necessary
  4. Examples

    • fix(api): handle missing authorization header
    • feat(payments): add refund webhook handler
    • chore(deps): upgrade pytest to 9.0

Branch/commit rules

  • Always branch before committing (avoid master/main)
  • Use imperative language and don’t end with punctuation
  • Keep commits focused on a single concern
  • Reference tickets/issue IDs in the Refs: section when relevant

Quick checklist

Before finalizing a commit message or PR title:

  • Starts with a valid type
  • Scope is specific and relevant
  • Description is imperative and has no trailing period
  • First line is under 72 characters
  • Breaking changes use ! and/or a BREAKING CHANGE: footer
  • Body explains motivation for non-trivial changes

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Implement comprehensive error handling for Python code paths to keep services resilient and user-friendly. Use when failures are currently silent or exceptions leak through.

中文简介正在准备中。当前显示原文说明。

Unique-AG/ai52026年10月19日 更新

Tabular and numerical data analysis with descriptive statistics and insights. Use when the user provides data, tables, CSVs, or numbers and wants analysis.

中文简介正在准备中。当前显示原文说明。

Unique-AG/ai52026年10月19日 更新

Financial factsheet analysis with key metrics extraction and investment rationale

中文简介正在准备中。当前显示原文说明。

Unique-AG/ai52026年10月19日 更新

ci-fix

免费

Diagnose and fix CI failures without leaving your editor.

中文简介正在准备中。当前显示原文说明。

Unique-AG/ai52026年10月19日 更新

Reproduce ai-repo PR checks locally with Poe and CI scripts, including per-package typecheck and coverage behavior. Use when validating changes before push or when user asks which local commands match CI.

中文简介正在准备中。当前显示原文说明。

Unique-AG/ai52026年10月19日 更新

Ask clarifying questions before implementing to ensure Python requirements are understood. Use when a task lacks detail, dependencies are unclear, or multiple interpretations are possible.

中文简介正在准备中。当前显示原文说明。

Unique-AG/ai52026年10月19日 更新

查看 Unique-AG 的全部技能

报告此技能的问题