fqih/.mycc-setup/atomic-github-push
Claude Code and agent skill by fqih/.mycc-setup
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when committing and pushing to GitHub — guarantees every commit passes lint/format checks, has no Claude co-author or generated-with footer, uses the user's real identity (Fqih / mhmdfkih21@gmail.com), and lands on the remote as a single all-or-nothing unit. Trigger on "commit and push", "push to github", "atomic push", "/atomic-push".
Install
npx vskill@latest install fqih/.mycc-setup/atomic-github-pushSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as fqih/.mycc-setup/atomic-github-push.
atomic-github-push
Commit + push sebagai satu unit atomik. Satu cek gagal = abort total, tidak ada commit setengah jadi, tidak ada push tanpa lint bersih.
Identity (wajib, hard fail)
Verifikasi sebelum commit apa pun:
Salah satu salah → STOP. Jangan commit. Jangan bypass dengan -c user.name=.... Minta user koreksi via git config --global.
Per-repo override yang salah (FQIH/school alias) → tulis ulang dengan git config --global, lalu ulang di repo target dengan --local.
Pre-commit checks (wajib, run berurutan)
Jalankan dari root repo:
Dua-duanya exit 0. Salah satu exit non-zero → abort. Jangan --no-verify. Jangan commit dengan --no-edit setelah auto-fix; minta user konfirmasi perubahan format dulu.
Catatan: jika project tidak punyaruff(mis. JS-only), skip cek ruff dan laporkan ke user, jangan auto-install.
Commit message rules
- Subject ≤ 72 char, imperative mood ("Add", "Fix", "Refactor", bukan "Added" / "Added X").
- Conventional commits prefix bila repo sudah pakai:
feat:,fix:,refactor:,test:,docs:,chore:. - Body kosong kecuali user minta detail.
DILARANG KERAS di commit message (cek via grep sebelum commit)
Co-Authored-By: ...Claude(apa pun variannya)Co-Authored-By: ...AnthropicCo-Authored-By: ...noreply@anthropic.com🤖 Generated with [Claude Code]Generated by Claude- Footer kedua atau lebih dari satu
Co-Authored-By:(cuma boleh Fqih jika ada)
Cek otomatis:
Push rules
Push gagal (non-fast-forward, rejected) → STOP. Jangan --force kecuali user eksplisit minta. Jangan --force-with-lease pun tanpa konfirmasi.
Workflow urutan
- Cek
git status— working tree harus clean atau staged saja, tidak ada untracked yang akan ikut. - Cek identity (atas).
- Scan staged files untuk secret (invoke skill
secret-scan). Leak detected → abort. - Stage:
git add -A(atau file eksplisit jika user minta). - Run ruff checks.
- Tulis commit message ke temp file.
- Grep blocker patterns (Claude co-author + generator footer).
git commit -F "$MSG_FILE".git pull --rebase.- Pre-push scan secret (skill
secret-scan, mode detect). git push origin HEAD.- Lapor ringkas: branch, commit hash, files changed.
Bila gagal
| Gagal di langkah | Tindak | |
|---|---|---|
| Identity salah | STOP, minta user fix git config | |
| Ruff lint fail | Tampilkan error, jangan auto-fix tanpa izin | |
| Format check fail | Tampilkan diff, minta user jalankan ruff format . manual | |
| Co-author terdeteksi | Hapus dari message, ulang langkah 5–7 | |
| Push rejected | STOP, jangan force, lapor ke user | |
| Rebase conflict | STOP, serahkan ke user |
Invokation
Skill ini auto-trigger saat user bilang:
- "commit and push"
- "push to github"
- "atomic push"
- "/atomic-push"
Atau saat context jelas: ada staged changes + user minta "push" / "commit" di repo dengan origin GitHub.
Bukan untuk
- Repo tanpa
originGitHub remote (skill ini asumsi GitHub push) - Commit tanpa push (gunakan git biasa)
- Force push / history rewrite (tindakan terpisah, butuh konfirmasi manual user)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/atomic-github-push/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fqih/.mycc-setup/atomic-github-push)