Install
$ agentstack add skill-shalomb-agent-skills-git-commit-formatter ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Commit — Atomic Commit Protocol (ACP)
You must adhere to the Atomic Commit Protocol (ACP) before making any git commit. The ACP guarantees that every commit is a complete, self-contained, and logically indivisible unit of work.
Core ACP Composition Rules
An Atomic Commit MUST contain the following elements. Do not commit until all conditions are met:
- One Logical Change: Do NOT mix functional changes with refactoring or formatting. Split unrelated changes into separate commits.
- Implementation & Verification:
- You MUST include TDD tests that validate the implementation. At least one test MUST have failed prior to the implementation and pass afterward.
- Run the test suite and confirm it passes. Never commit broken code.
- Documentation: You MUST include updates to end-user documentation or inline code comments that reflect the change and explain non-obvious logic.
- Cleanliness: You MUST remove all temporary files, build artifacts, debug statements (
console.log,print), and leftover comments before committing. - Intentional Staging: Use
git addfor specific paths. Do NOT usegit add .blindly.
For the full formal specification, including rationale and TDD mapping, read: [references/acp-spec.md](references/acp-spec.md)
Commit Message Format
():
1. The Header (Subject Line)
- Type (Required):
feat,fix,docs,refactor,chore,test,perf,style,ci - Scope (Optional): Short noun for the affected area (e.g.,
auth,api) - Summary (Required):
- MUST be 50 characters or less.
- MUST be in the imperative mood (e.g., "Add feature", not "Added feature").
- SHOULD be Capitalized.
- MUST NOT end with a period.
2. The Body
- MUST be separated from the header by a single blank line.
- MUST explain the reasoning and context behind the change (the "why"), rather than just repeating what the code does.
- SHOULD wrap lines at 72 characters.
- SHOULD include an
Impact:section and aTesting:section detailing how the code was verified (see Appendix B in the spec for an example).
What NOT to Do
- Do NOT add
Signed-off-byor sign-off footers unless explicitly requested. - Do NOT include breaking-change markers or BREAKING CHANGE footers unless explicitly requested.
- Do NOT push — only commit. The user decides when to push.
Steps Before Committing
- Review Diff: Run
git diff --cachedto catch accidental debug lines or unrelated changes. - Verify Tests: Run tests (e.g.,
make test,pytest,npm test) and ensure the GREEN state. - Match Conventions: Run
git log -n 5 --pretty=format:%sto match existing project style. - Draft Message: Ensure it follows the ACP format and explains the "why".
- Commit: Execute the commit. If the change spans multiple logical units, make separate, sequential atomic commits.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: shalomb
- Source: shalomb/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.