git-safe-commit
SkillCommunicationGit Commit Message Generator, QG-aware wrapper
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the git-safe-commit skill
What this skill tells your AI
The instructions your AI receives, as published by the-agency-ai/the-agency in .claude/skills/git-safe-commit/SKILL.md and read by ahel’s review.
Git Safe Commit — QG-Aware Wrapper
The only way to run git commit. Never run raw git commit — always use this skill.
Arguments
$ARGUMENTS: Optional. Pass--forceto skip the QGR receipt check (for non-QG commits like handoff-only or config-only changes). Any other arguments are treated as the commit message body.
Step 1: Check for QGR receipt
Before committing, verify that a Quality Gate has been run for the staged changes.
- Run
./agency/tools/stage-hashto compute the stage hash of currently staged files. - Glob for
usr/*/*/qgr-*-{stage-hash}-*.mdwhere{stage-hash}is the hash from step 1. - If a matching QGR file is found: Report "QGR receipt found:
{path}" and proceed to Step 2. - If no matching QGR file is found AND
--forcewas NOT passed: Stop and ask:No QGR receipt found for the staged changes (stage hash:
{hash}).Options:
- Run
/quality-gatefirst to produce a QGR - Re-run
/git-safe-commit --forceto commit without a QGR (use sparingly — handoff, config, docs only)
- Run
- If
--forcewas passed: Note "Committing without QGR receipt (--force)" and proceed to Step 2.
Step 2: Analyze changes
- Run
git statusto see all untracked and modified files. - Run
git diff --cachedto see staged changes. - Run
git log --oneline -5to see recent commit style.
Step 3: Generate commit message
Create a commit message following the project's format:
<prefix>: <concise summary in one line>
- Additional detail (if needed)
- Another detail (if needed)
Co-Authored-By: Claude <noreply@anthropic.com>
Prefixes
| Prefix | Usage |
|---|---|
feat | New feature or feature addition |
fix | Bug fix |
misc | Refactors, minor changes, or supporting code changes |
rmv | Major code deletion, removal, or cleanup |
Guidelines
- Keep the main message concise and under 72 characters
- Use imperative mood (e.g., "add feature" not "added feature")
- Only add bullet points for details that cannot fit in the one-liner
- Focus on what changed and why, not how
- If the QGR receipt was found, the caller likely provided a full structured commit message — use it as-is
- If this commit is at an iteration or phase boundary, the message must lead with the Phase-Iteration slug:
Phase 1.3: feat: summary
Step 4: Stage and commit
- Stage any unstaged files that should be included (ask if unsure).
- If a QGR receipt file was found in Step 1, stage it too — it should be committed alongside the work.
- Run
git commitwith the message. - Run
git statusto verify the commit succeeded.
Signals
- GitHub stars
- 55
- Forks
- 8
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
git-safe-commit- Source
- github.com/the-agency-ai/the-agency