ce-commit
できること
このスキルは、ローカルのコードの変更を、明確なメッセージつきの1つ以上のgitコミットとして保存します。出荷の追加手順なしで、整ったコミット履歴がほしい開発者向けです。
使う場面
- ✓現在の変更を、明確なメッセージつきのコミットとして保存したいとき。
- ✓関係のない変更がいくつもあり、それを別々のコミットに分けたいとき。
- ✓ローカルでコミットし、プッシュは後で決めたいとき。
スキルのリンク
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-commit/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“現在の変更を、わかりやすいメッセージでコミットしてもらえますか。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、作業ツリーと最近のコミットのスタイルを読み、変更されたファイルをまとめて、結果を述べるコミットメッセージを書きます。その後、コミットを作成し、変更が保存されたかを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Git Commit
Create well-crafted local commit(s) from the current working tree. No push, no PR — use ce-commit-push-pr for the full ship flow.
Done when: each logical change is committed with an explicit file list and a message that states the outcome, and git status is clean of those changes. Stop when: the tree is clean (nothing to commit).
Context
Gather context with each command as its own shell tool call (program + args only). Do not join with ;, &&, ||, pipes, $(...), or redirects — that syntax fails under Windows PowerShell. A non-zero exit is a normal state to interpret, not a failure to suppress.
| Command | Purpose | Non-zero / empty means |
|---|---|---|
git status |
Working-tree state | Not a git repo — stop |
git diff HEAD |
Uncommitted changes | Unborn repo / no commits yet |
git branch --show-current |
Current branch | Empty = detached HEAD |
git log --oneline -10 |
Recent message style | Unborn repo — no history |
git rev-parse --abbrev-ref origin/HEAD |
Remote default branch | No origin/HEAD / bare HEAD — try gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name', else main |
Treat this as a snapshot. Re-read branch and staged set immediately before committing if anything may have changed.
Default branch name: strip a leading origin/ from origin/HEAD (so origin/trunk → trunk). Use that bare name for all “on the default branch?” checks — never compare against origin/<name>.
Workflow
Gather — run every Context command above (own shell call each), then continue.
Nothing to commit — if
git statusshows no staged, modified, or untracked files, report that and stop. Do not usegit diff HEADalone as cleanliness (it misses untracked files).Branch first — if detached HEAD, or on the default branch (
main/master/ the bare default name above), create a feature branch from the change content (git checkout -b <name>), then re-readgit branch --show-current. Do not ask — commit-only still must not leave work only on a detached HEAD or the default branch. If the derived name exists, pick a non-conflicting suffix.Convention — match project commit conventions already in context; else match the recent log pattern; else conventional commits (
type(scope): description). When using conventional commits andfix/featboth fit, default tofix:(remedying broken or missing behavior); reservefeat:for new capabilities. User override wins.Logical commits — if changed files clearly split into distinct concerns, make separate commits (file level only, 2–3 max, no
git add -p). If ambiguous, one commit.Message — subject is imperative and names the outcome (what is now possible or fixed), not the file list. Body only when motivation or trade-offs are not obvious from the subject. When a plan Implementation Unit ID is already in hand for this commit (conversation, caller, or the files belong to one unit), append that unit's U-ID in parentheses —
(U3)means unit 3. Do not hunt for a plan. Omit when the commit spans units, the unit is unclear, or no plan is in hand. When the commit carries someone else's work that will not otherwise land under their name (ported from their branch or PR, or applied from their patch), end the message with aCo-authored-by: Name <email>trailer for each person that work credits: its commit authors and anyone theirCo-authored-bytrailers name. Copy each identity exactly from those commits or the patch. Never guess an email: when none is recorded, name them in the message body instead.- Bad:
Update checkout.rb/Add tests and fix stuff - Good:
Fix double-submit on checkout - Good:
Add per-subscription mute (U3)
- Bad:
Stage and commit — stage named files only (never
git add -Aorgit add .). Honorexclude:<paths>when the invocation carries it: those files stay uncommitted no matter what else changed; say in the report that they were left out. Write the full message — subject line, blank line, optional body — to a file outside the repo with your file-write tool, then stage and commit as two calls per commit group:
git add file1 file2 file3
git commit -F <message-file> -- file1 file2 file3
No shell parses the message with -F: a $, quotes, backticks, or a multi-line body pass through literally under any shell, with no quoting rules to satisfy. Git's normal whitesp
よくある質問
コミットをプッシュしますか?
いいえ。ローカルのコミットを作るだけです。出荷までの完全な流れは別のスキルです。
コミットするものがない場合はどうなりますか?
このスキルは止まり、作業ツリーがきれいな状態であることを報告します。
リポジトリのメッセージのスタイルに合わせますか?
はい。最近のコミットメッセージを確認し、新しいメッセージが既存のスタイルに合うようにします。
詳細
作者による元の説明
Create a git commit with a clear, value-communicating message. Use when the user asks to commit/save staged or unstaged changes with a repo-appropriate message.
人気
- GitHubのスター
- 26k
- ランキング
- #10023
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
ce-babysit-pr
26kエージェントが、開いているGitHubのプルリクエストを、レビューのコメント、失敗したチェック、古くなったブランチを扱いながら、時間をかけてマージに向けて進められるよう支援します。
ce-bakeoff
26kエージェントが、ある問題に対して複数の競合する解決策を作り、それらを比べて、最も強い部分を組み合わせた推奨のアプローチにまとめられるよう支援します。
ce-brainstorm
26kエージェントが、作業を始める前に、短くガイドされた会話を通じて、漠然としたアイデアを明確で適切な大きさの要件に変えられるよう支援します。
ce-code-review
26kエージェントが、指定されたコードの変更やプルリクエストについて、バグ、回帰、テストの不足、基準の問題をレビューし、明確な指摘を報告できるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。