git-safe-commit
SkillCommunicationGit Commit Message Generator, QG-aware wrapper
Use git-safe-commit in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add git-safe-commit and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the git-safe-commit skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
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
- 66
- Forks
- 12
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
git-safe-commit- Source
- github.com/the-agency-ai/the-agency
github.com/the-agency-ai/the-agency
More in Communication
Skill · anthropics
More in Communicationerror-handling
Skill · affaan-m
More in Communicationwait-what
Skill · mattpocock
More in Communicationemails
Skill · coreyhaines31
More in Communicationazure-messaging
Skill · microsoft
More in Communicationinvestor-outreach
Skill · affaan-m
More in Communication