本文へ移動
cccskills
無料GitHub で公開

commit

Stage and commit changes using Conventional Commits

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

pr

無料

Create a pull request for the current branch

日本語の概要は準備中です。原文の説明を表示しています。

BuddiesOfBudgie/docs122026年6月7日 更新

BuddiesOfBudgie のスキルをすべて見る

このスキルの問題を報告する