commit-push skill
Conventional Commits形式でローカルの変更をコミットし、リモートリポジトリへプッシュします。
- GitHubスター
- 87
- ファイル
- 1
- 最終コミット
- 2026年9月15日
- ライセンス
- Apache-2.0
- 許可されたツール
- —
commit-push skillは何をしますか
commit-pushはAgent Skillsです。 Conventional Commits形式でローカルの変更をコミットし、リモートリポジトリへプッシュします。.
skillのSKILL.mdから生成された要約。
commit-push skill について
このSKILLは、ターミナルベースの環境で作業する開発者向けに、コード変更のステージング、コミット、およびプッシュのプロセスを自動化します。コーディングタスクが完了し、ローカルの変更をリモートリポジトリと同期する必要がある場合に、エージェントはこのツールをロードする必要があります。プロセスは、diffが正しく理解されているか、コミットメッセージがConventional Commits形式に従っているか、そしてステージングエリアが意図した変更と一致しているかを確認するために、厳格な一連のゲートに従って実行されます。
git status、git diff、git logなどの標準的なgitコマンドを利用することで、このSKILLは変更がfeat、fix、docs、refactor、test、chore、perf、またはciのどれに該当するかを分析します。タイプ、オプションのスコープ、および説明を含む構造化されたコミットメッセージを生成し、複数行の本文やIssueへの参照も処理します。ワークフローの最後には、git pushコマンドの実行後、ローカルブランチがアップストリームに対して最新の状態であることを検証します。
エージェントができること
- 1コミット履歴の標準化AIエージェントがすべてのローカルの変更をConventional Commitsの仕様に従ってフォーマットし、クリーンなプロジェクトログを維持できます。
- 2破壊的変更のドキュメント化エージェントが、コミットスコープに適切な感嘆符を追加することで、後方互換性のないアップデートを特定し、フラグを立てることができます。
- 3ローカル作業のリモート同期エージェントが完了した機能をリモートリポジトリにプッシュし、ブランチが正常に更新されたことを確認できます。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
commit-push skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。プラグインにcommit-push skillをインストールする
/plugin marketplace add existential-birds/beagle /plugin install beagle-core@existential-birds
Claude Codeにcommit-push skillをインストールする
~/.claude/skills/commit-push/SKILL.md
$ npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push ~/.claude/skills/commit-pushClaude Code (project)にcommit-push skillをインストールする
.claude/skills/commit-push/SKILL.md
$ npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push .claude/skills/commit-pushCodexにcommit-push skillをインストールする
~/.agents/skills/commit-push/SKILL.md
$ npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push ~/.agents/skills/commit-pushGemini CLIにcommit-push skillをインストールする
~/.gemini/skills/commit-push/SKILL.md
$ npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push ~/.gemini/skills/commit-pushClaude.aiにcommit-push skillをインストールする
npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push commit-push && zip -r commit-push.zip commit-push # claude.ai → Customize → Skills → + → Create skill → Upload a skill → commit-push.zip
SKILL.md
GitHubで表示Commit and Push
Commit all local changes following Conventional Commits format and push to remote.
Gates
Complete in order. Do not run the next action until the Pass condition is satisfied (use command output as evidence, not memory).
- Diff understood — Pass when: Outputs from
git status,git diff, andgit diff --cachedare consistent with your one-sentence description of what changed (or you recorded that there is nothing to commit). - Commit line chosen — Pass when: You have a draft first line
type(scope): description(ortype: descriptionif omitting scope) that matches the change set you intend to ship. - Staging matches intent — Pass when: After
git add,git diff --cached --stat(and spot-checkgit diff --cachedif needed) shows only the paths you meant to include; adjust staging before committing if not. - Push target confirmed — Pass when: Current branch and remote are the ones you intend (
git branch -vv,git remote -v); then push. - Remote caught up — Pass when:
git statusis clean andgit status -sbshows the branch is up to date with its configured upstream (no unexpected unpushed commits left for this task).
Step 1: Gather Context
Run these commands in parallel to understand the changes:
# See all untracked and modified files
git status
# See staged and unstaged changes
git diff
git diff --cached
# See recent commit messages for style reference
git log --oneline -10
Step 2: Analyze Changes
Review the changes and determine:
-
Type: What kind of change is this?
feat- New feature or capabilityfix- Bug fixdocs- Documentation onlyrefactor- Code restructure without behavior changetest- Adding or updating testschore- Maintenance, dependency updatesperf- Performance improvementci- CI/CD changes
-
Scope: Which component is affected?
- Examine the changed files and determine the appropriate scope
- Use consistent scope names within the project (check
git logfor patterns) - (omit scope for cross-cutting changes)
-
Breaking: Does this break backward compatibility? If yes, add ! after scope.
Step 3: Write Commit Message
Format:
type(scope): description
[optional body explaining why, not what]
[optional footer with issue references]
Rules:
- Use imperative mood: "add feature" not "added feature"
- Keep first line under 72 characters
- Focus on why in the body, the diff shows what
- Reference issues:
Closes #123orFixes #456
Step 4: Stage, Commit, and Push
Satisfy Gates 1–3 before git commit; satisfy Gate 4 before git push; satisfy Gate 5 after push.
# Stage all changes (or selectively stage)
git add -A
# Gate 3: confirm staged set before committing
git diff --cached --stat
# Commit with message (use HEREDOC for multi-line)
git commit -m "$(cat <<'EOF'
type(scope): description
Optional body explaining the motivation.
Closes #123
EOF
)"
# Push to remote
git push
Examples
# Simple feature
git commit -m "feat(api): add pagination support to list endpoints"
# Bug fix with body
git commit -m "$(cat <<'EOF'
fix(auth): handle token expiration during long requests
The previous implementation did not account for tokens expiring
during the processing of long-running requests.
Fixes #42
EOF
)"
# Breaking change
git commit -m "$(cat <<'EOF'
feat!(api): change response format for user endpoints
BREAKING CHANGE: The `status` field is now an object with `state` and
`message` properties instead of a plain string.
EOF
)"
Optionally append a co-author or footer trailer per project convention (e.g. a Co-Authored-By: line or a tool-attribution footer). Omit it when the project has no such convention.
Step 5: Verify
After pushing, satisfy Gate 5: run git status and git status -sb and confirm a clean tree and upstream sync (or an expected ahead/behind you can explain, e.g. fork workflow).
このスキルのファイル
1commit-push skillに関する質問
Claude Codeにcommit-push skillをインストールするには
npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push ~/.claude/skills/commit-pushを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
commit-push skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
このSKILLはどのようなコミット形式を使用しますか?
このSKILLは、タイプ、オプションのスコープ、および説明を含むConventional Commits形式に従います。
コミットメッセージの説明はどのように書くべきですか?
'added feature'ではなく'add feature'のように命令形を使用し、1行目は72文字以内に収めてください。