跳到正文
cccskills
免费在 GitHub 公开

commit

Stage and commit changes using Conventional Commits

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

BuddiesOfBudgie/docs星标 12(GitHub 12 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md1.9 KB

SKILL.md(原文)

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

Create a git commit for the current changes following the Conventional Commits specification.

Steps

  1. Run these commands in parallel to understand the current state:

    • git status to see all changed and untracked files
    • git diff to see unstaged changes
    • git diff --cached to see already-staged changes
    • git log --oneline -5 to see recent commit style
  2. Analyze the changes and determine:

    • Which files should be staged (skip files that likely contain secrets like .env, credentials, etc.)
    • The appropriate Conventional Commit type and scope
    • A concise description of the change
  3. Stage the relevant files by name (do NOT use git add -A or git add .)

  4. Determine attribution - analyze the conversation context:

    • Did Claude write or modify code/content (generate implementations, write documentation, create components)? → Add Assisted-by: Claude:<model-id> trailer
    • Did Claude only perform mechanical tasks (committing, formatting, running commands) or did the human make all changes? → NO trailer
    • Never use Co-Authored-By
  5. Craft the commit message using the types, scopes, and rules defined in CONTRIBUTING.md. Additional skill-specific rules:

    • Scope is optional but encouraged - use the most relevant area
    • If changes span multiple concerns, prefer a single commit with a clear summary over being overly granular
    • Always pass the commit message via a HEREDOC:
git commit -s -m "$(cat <<'EOF'
type(scope): description

Optional body.

Assisted-by: Claude:<model-id>
EOF
)"
  1. After committing, run git status to verify success.

Arguments

If $ARGUMENTS is provided, use it as guidance for the commit message or scope.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

pr

免费

Create a pull request for the current branch

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

BuddiesOfBudgie/docs122026年10月20日 更新

查看 BuddiesOfBudgie 的全部技能

报告此技能的问题