AgentStack
SKILL verified MIT Self-run

Commit

skill-magnus-gille-claude-skills-commit · by Magnus-Gille

Standardized git commit workflow with author verification, diff review, and conventional commit messages.

No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add skill-magnus-gille-claude-skills-commit

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

Are you the author of Commit? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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.name and user.email should be configured in their global ~/.gitconfig or in the repo's .git/config. If git config user.email returns 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, or client_secret_*.json files are staged
  • No files in secrets/ are staged
  • No files with key, secret, or token in 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

  1. Never auto-push — always ask first
  2. Never amend without confirmation — amending rewrites history
  3. Never use --no-verify — respect pre-commit hooks
  4. Never use git add -A — stage specific files
  5. Always show the diff summary — the user should know what they're committing
  6. 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.