本文へ移動
cccskills
無料GitHub で公開日本語紹介

commit

変更内容を確認して対象ファイルを選び、Conventional CommitsとDCO署名の形式でGitコミットを作成します。

原文原文の説明を見る

Stage and commit changes using Conventional Commits

BuddiesOfBudgie/budgie-desktopスター 1,345(GitHub 1,345 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • 変更を確認してコミットしたいとき
  • コミットメッセージの形式をそろえたいとき
  • DCO署名付きで変更を記録したいとき

日本語での紹介

できること

作業ツリー、ステージ済みの差分、直近のコミット形式を確認し、今回の変更に合うファイルとコミット種別を選んでコミットを作成します。秘密情報を含む可能性がある.envや認証情報などは対象から除外します。メッセージはConventional Commitsの形式にし、必要に応じてスコープや本文を加えます。すべてのコミットに必要なDCO署名はgit commit -sで付与し、作成後にgit statusで状態を確認します。

こんなときに便利

変更を小さく整理して記録したいときや、プロジェクト内でコミットメッセージの書式をそろえたいときに役立ちます。会話の経緯からClaudeがコード変更を手伝ったかも確認し、該当する場合だけ指定のトレーラーを付ける手順が含まれています。

使い方の例

  • 「変更を確認して、適切な形式でコミットして」
  • 「この修正をfixスコープでコミットして」

注意点

Gitを使います。コミットにはDCO署名が必要です。引数が渡された場合は、メッセージやスコープを決める際の参考にします。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md2.4 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 (generate implementations, refactor logic, write new functions)? → Add Assisted-by: Claude:<model-id> trailer
    • Did Claude only perform mechanical tasks (committing, formatting, running commands) or did the human make all code changes? → NO trailer
    • Never use Co-Authored-By
  5. Craft the commit message following this format:

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

[optional body]

[Assisted-by: Claude:<model-id> — only if Claude assisted with code changes]
Signed-off-by: <name> <email>

Important: All commits require a DCO sign-off. Always use git commit -s to automatically add the Signed-off-by trailer.

Conventional Commit types and scopes

See CONTRIBUTING.md for the full list of types and scopes.

Rules

  • The description should be lowercase, imperative mood, and not end with a period
  • Keep the first line under 72 characters
  • Scope is optional but encouraged — use the most relevant area
  • The body should explain why, not what — the diff shows what changed
  • 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

無料概要あり

現在のブランチの変更とコミットを確認し、規約に沿ったタイトルとテンプレートでプルリクエストを作成します。

  • 作業ブランチをPRに出したいとき
  • 変更全体をPR本文にまとめたいとき
  • テンプレートに沿ってPRを作りたいとき
BuddiesOfBudgie/budgie-desktop1,3452026年10月27日 更新

BuddiesOfBudgie のスキルをすべて見る

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