From base-tools
Commits and pushes code changes using git strategies like squash into existing commits, new commits, or interactive rebase of branch history. Use at implementation completion or on git commit requests.
How this skill is triggered — by the user, by Claude, or both
Slash command
/base-tools:commit-pushhaikuThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
コード変更を適切なgitコミット戦略でgit commitし、pushするためのスキルです。
コード変更を適切なgitコミット戦略でgit commitし、pushするためのスキルです。 このスキルが呼び出された際には、Instructionsに従って、コード変更のgit commitとpushを行ってください。
以下のステップでコード変更のgit commitとpushを行ってください。
以下のコマンドで現在の状態を確認:
git status
git log --oneline --graph origin/main..HEAD
確認事項:
以下の基準でgitコミット戦略を選択:
以下の条件を満たす場合、既存のgitコミットにsquashします:
実行方法:
git add -A
git commit --amend
gitコミットメッセージを適切に更新してください。
以下の場合は新規gitコミットを作成:
実行方法:
git add -A
git commit
以下の場合はブランチ全体のgitコミットを再構成:
実行方法:
git rebase -i origin/main
エディタで以下の操作を実行:
pick: gitコミットをそのまま維持squashまたはs: 前のgitコミットと統合rewordまたはr: gitコミットメッセージを変更gitコミットメッセージは以下の形式で記述:
<type>: <subject>
<body>
<footer>
Type:
feat: 新機能fix: バグ修正refactor: リファクタリングtest: テスト追加・修正docs: ドキュメント変更chore: ビルドプロセスやツールの変更Subject:
Body(オプション):
Footer(オプション):
Closes #123)git commit後、以下を確認:
git log -1 --stat
git status
変更をリモートブランチにpush:
git push origin HEAD --force-with-lease
ブランチにgitコミットがある?
├─ No → 新規gitコミット作成
└─ Yes → 変更は既存のgitコミットと同じテーマ?
├─ Yes → Squash(git commit --amend)
└─ No → gitコミットを分ける合理性がある?
├─ Yes → 新規gitコミット作成
└─ 履歴を整理したい → Interactive Rebase
npx claudepluginhub getty104/claude-code-marketplace --plugin base-toolsCreates semantic git commits with conventional commit format, stages changes, and pushes to remote. Handles pre-commit hooks and writes meaningful commit messages.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.