AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Prepare Git Commit

skill-wanderlima-agent-skills-prepare-git-commit · by wanderlima

>-

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

Install

$ agentstack add skill-wanderlima-agent-skills-prepare-git-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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-wanderlima-agent-skills-prepare-git-commit)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Prepare Git Commit? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Prepare Git Commit

Overview

Stages files for one logical change and writes a commit message to .git/COMMIT_EDITMSG. The user runs git commit locally so hooks (e.g. commit-msg) execute.

When to Use

Use when

  • The user asks to prepare a commit
  • The user asks to stage files or write a commit message
  • The user asks to commit changes without pushing

Do not use when

  • The user explicitly asks to run git commit or git push
  • The user wants amend, squash, or rebase unless explicitly requested
  • Only documentation or review is needed (no staging or message)

Inputs

  • Current branch state (git status, git diff)
  • Files already staged or changed on the branch
  • Recent commit message style (git log)
  • User scope when they name specific paths or changes

Outputs

  • .git/COMMIT_EDITMSG with the formatted commit message
  • List of staged files
  • Reminder to run commit locally:
git commit
# or
git commit -F .git/COMMIT_EDITMSG

Constraints

  • Never run git commit or git push
  • Never amend, squash, or rebase unless explicitly requested
  • Never stage secrets (.env, credentials, tokens)
  • Never add Co-authored-by:, Made-with: Cursor, or any AI/editor attribution
  • Commit message language: en-US

Steps

1. Inspect

Run in parallel when possible:

  • git status
  • git diff (staged + unstaged)
  • git log -n 5 (message style)

2. Stage

  • If files are already staged appropriately, leave as-is
  • Otherwise, pick branch changes related to the same logical work (prefer recent edits)
  • Stage only files for the same logical change
  • Do not stage unrelated or generated files unless explicitly required
  • Run git add for selected paths only

3. Write commit message

  • Write to .git/COMMIT_EDITMSG
  • Format: short title line + bullet list (intent/why, not noisy implementation detail)
  • Prefix — prefer prefix from branch name (e.g. feat/, fix/, chore/); otherwise use feat:, fix:, bugfix:, chore:, refactor:

4. Hand off

Report staged files, the full commit message (copy-ready), and instruct the user to run git commit locally.

Rationalization Traps

| Rationalization | Reality | | --- | --- | | Running git commit is faster | Hooks must run on the user's machine | | Files are already staged, skip inspect | Staging may include unrelated or secret files | | Attribution lines are harmless | Co-authored-by: and editor attribution are prohibited | | One big stage is fine | Unrelated changes block clean review and revert |

Red Flags

  • git commit or git push was executed
  • .env, credentials, or generated artifacts were staged
  • .git/COMMIT_EDITMSG was not written
  • git diff --cached was not reviewed before staging

Verification

  • [ ] git diff --cached reviewed for scope and secrets
  • [ ] Only related files are staged (git diff --cached --name-only)
  • [ ] .git/COMMIT_EDITMSG exists with title, prefix, and bullet list
  • [ ] No prohibited attribution in the message
  • [ ] User received staged file list, full message, and local commit command

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.