Install
$ agentstack add skill-magnus-gille-claude-skills-commit ✓ 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 Used
- ✓ 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 - Standardized Git Commit
Create clean, well-documented git commits with safety checks.
Usage
/commit- Stage, review, commit, and optionally push/commit- Commit with a specific message (still runs safety checks)/commit amend- Amend the last commit (with confirmation)
Workflow
Step 1: Verify Author Identity
git config user.name
git config user.email
- The user's expected
user.nameanduser.emailshould be configured in their global~/.gitconfigor in the repo's.git/config. Ifgit config user.emailreturns an unexpected value (e.g. a CI/bot email, or empty), warn the user before proceeding. - Do NOT silently fix it — the user should decide whether to update the config or commit under the current identity.
Step 2: Review Changes
Run in parallel:
git status
git diff --stat
git diff --staged --stat
Present a summary:
- Files modified (staged vs unstaged)
- Files added/deleted
- Untracked files that might need staging
Ask the user which files to stage if there are unstaged changes. Prefer staging specific files over git add -A.
Step 3: Security Check
Before committing, verify:
- No
.env,credentials.json,token.json, orclient_secret_*.jsonfiles are staged - No files in
secrets/are staged - No files with
key,secret, ortokenin the name are staged (unless they're clearly code files)
If any are found, warn and stop. Do not commit.
Step 4: Write Commit Message
If no message was provided, draft one:
- Use conventional commit format:
type: description - Types:
feat,fix,docs,refactor,test,chore,style - Keep the first line under 72 characters
- Add a body paragraph if the change is non-trivial
- Always end with:
Co-Authored-By: Claude(use the current model name)
Show the proposed message and ask for confirmation.
Step 5: Commit
git add
git commit -m ""
Use a heredoc for multi-line messages.
Step 6: Push
After committing:
- Show the commit hash and summary
- If a remote is configured and the branch tracks one: ask "Push to remote?" and push if confirmed
- If no remote or untracked branch: just confirm the local commit
Key Rules
- Never auto-push — always ask first
- Never amend without confirmation — amending rewrites history
- Never use
--no-verify— respect pre-commit hooks - Never use
git add -A— stage specific files - Always show the diff summary — the user should know what they're committing
- Always verify author — wrong author requires force-push to fix
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Magnus-Gille
- Source: Magnus-Gille/claude-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.