Skill commit-push
Melakukan commit perubahan lokal menggunakan format Conventional Commits dan melakukan push ke remote repository.
- Bintang GitHub
- 87
- File
- 1
- Commit terakhir
- 15 Sep 2026
- Lisensi
- Apache-2.0
- Tool yang diizinkan
- —
Apa fungsi skill commit-push?
commit-push adalah agent skill. Melakukan commit perubahan lokal menggunakan format Conventional Commits dan melakukan push ke remote repository.
Ringkasan dibuat dari SKILL.md skill ini.
Tentang skill commit-push
Skill ini memungkinkan developer yang bekerja di lingkungan berbasis terminal untuk mengotomatisasi proses staging, committing, dan pushing perubahan kode. Agent sebaiknya memuat tool ini setelah menyelesaikan tugas coding dan perlu menyinkronkan modifikasi lokal dengan remote repository. Prosesnya mengikuti urutan gate yang ketat untuk memastikan diff dipahami, pesan commit mengikuti format Conventional Commits, dan staging area sesuai dengan perubahan yang dimaksud.
Dengan memanfaatkan perintah git standar seperti git status, git diff, dan git log, skill ini menganalisis apakah sebuah perubahan termasuk feat, fix, docs, refactor, test, chore, perf, atau ci. Skill ini menghasilkan pesan commit terstruktur yang mencakup type, scope opsional, dan deskripsi, serta menangani body multi-line dan referensi issue. Workflow diakhiri dengan memverifikasi bahwa branch lokal sudah up-to-date dengan upstream setelah perintah git push dijalankan.
Apa yang bisa dilakukan agent dengannya
- 1Standardisasi riwayat commitAI agent dapat memformat semua perubahan lokal ke dalam spesifikasi Conventional Commits untuk menjaga log proyek tetap bersih.
- 2Dokumentasi breaking changesAgent dapat mengidentifikasi dan menandai update yang tidak kompatibel ke belakang (backward-incompatible) dengan menambahkan tanda seru yang sesuai pada commit scope.
- 3Sinkronisasi pekerjaan lokal dengan remoteAgent dapat melakukan push fitur yang sudah selesai ke remote repository dan mengonfirmasi bahwa branch telah berhasil diperbarui.
Ditulis dari SKILL.md milik skill tersebut. Setiap use case diverifikasi dengan kutipan darinya.
Cara install skill commit-push
Setiap perintah menyalin folder skill ke direktori skills client. Restart client atau mulai sesi baru untuk memuatnya.Install skill commit-push di Plugin
/plugin marketplace add existential-birds/beagle /plugin install beagle-core@existential-birds
Install skill commit-push di Claude Code
~/.claude/skills/commit-push/SKILL.md
$ npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push ~/.claude/skills/commit-pushInstall skill commit-push di Claude Code (project)
.claude/skills/commit-push/SKILL.md
$ npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push .claude/skills/commit-pushInstall skill commit-push di Codex
~/.agents/skills/commit-push/SKILL.md
$ npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push ~/.agents/skills/commit-pushInstall skill commit-push di Gemini CLI
~/.gemini/skills/commit-push/SKILL.md
$ npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push ~/.gemini/skills/commit-pushInstall skill commit-push di Claude.ai
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
Lihat di GitHubCommit 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).
Berkas dalam skill ini
1Pertanyaan seputar skill commit-push
Bagaimana cara install skill commit-push di Claude Code?
Jalankan npx degit existential-birds/beagle/plugins/beagle-core/skills/commit-push ~/.claude/skills/commit-push. Claude Code memuat skill dari ~/.claude/skills (semua proyek) atau .claude/skills (satu proyek) dan menggunakan skill saat deskripsinya cocok dengan tugas.
Client mana saja yang bisa menggunakan skill commit-push?
Client apa pun yang membaca format Agent Skills: Claude Code, Codex, Gemini CLI, dan claude.ai (unggah sebagai ZIP). Script dalam skill hanya berjalan di client yang mengizinkan eksekusi kode.
Format commit apa yang digunakan oleh skill ini?
Skill ini mengikuti format Conventional Commits, yang mencakup type, scope opsional, dan deskripsi.
Bagaimana cara menulis deskripsi pesan commit?
Anda harus menggunakan imperative mood, seperti 'add feature' alih-alih 'added feature', dan pastikan baris pertama tidak lebih dari 72 karakter.