agentsclimarketplace

Git commit

Skill zlliang/skills/skills/git-commit

My agent skills.

Install
npx -y skills add zlliang/skills --skill git-commit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Create Git commits with Conventional Commits analysis, safe staging, and concise message generation. Use when the user asks to commit changes or create a git commit.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.3 KB, 955 tokens by cl100k_base, as published. Nobody here has run it

Git Commit with Conventional Commits

Create standardized, semantic git commits using the Conventional Commits specification. Analyze the actual diff to determine appropriate type, scope, and message.

Commit format

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Commit types

TypePurpose
featNew feature
fixBug fix
docsDocumentation only
styleFormatting/style (no logic)
refactorCode refactor (no feature/fix)
perfPerformance improvement
testAdd/update tests
buildBuild system/dependencies
ciCI/config changes
choreMaintenance/misc
revertRevert commit

Breaking changes

Exclamation mark after type/scope:

feat!: remove deprecated endpoint

And/or: BREAKING CHANGE footer

feat: allow config to extend other configs

BREAKING CHANGE: `extends` key behavior changed

Workflow

1. Inspect status

git status --porcelain

Default behavior:

  • Prefer already staged changes when present.
  • If nothing is staged, stage only the coherent logical change.
  • Leave unrelated worktree changes untouched.

2. Analyze diff

# If files are staged, use staged diff.
git diff --staged

# If nothing is staged, use working tree diff.
git diff

When staged and unstaged changes coexist, commit only the staged changes by default. If the staged changes appear incomplete, inspect the unstaged diff and decide whether to stage closely related files or ask the user.

3. Stage files (if needed)

If nothing is staged or you want to group changes differently:

# Stage specific files
git add path/to/file1 path/to/file2

# Stage by pattern
git add *.test.*
git add src/components/*

Never commit secrets (.env, credentials.json, private keys).

4. Generate commit message

Analyze the diff to determine:

  • Type: What kind of change is this?
  • Scope: What area/module is affected?
  • Description: One-line summary of what changed. (present tense, imperative mood, <72 chars)

Use the smallest accurate type and scope. Prefer short, single-line commits with no body. Add a body only when the commit is large or nuanced enough that it cannot be summarized clearly in one short sentence. Do not add an explanatory body just because extra context is available.

Use breaking-change syntax only when the diff truly changes a public contract.

5. Execute commit

# Single line
git commit -m "<type>[scope]: <description>"

# Multi-line with body/footer
git commit -m "$(cat <<'EOF'
<type>[scope]: <description>

<optional body>

<optional footer>
EOF
)"

Best practices

  • One logical change per commit.
  • Present tense: "add" not "added".
  • Imperative mood: "fix bug" not "fixes bug".
  • Keep description under 72 characters.
  • Reference issues with trailers such as Closes #123 or Refs #456 only when the diff or user request provides that context. If there is no body, append after the description instead: feat: add login, closes #123.

Git safety protocol

  • Never update git config.
  • Never run destructive commands (--force, hard reset) without explicit request.
  • Never skip hooks (--no-verify) unless user asks.
  • Never force push to main/master.
  • If hooks fail before the commit is created, fix the issue and retry
  • If a commit was created and later validation fails, do not amend unless requested

Final verification

After committing:

git status --short
git log -1 --oneline

Report the new commit hash and subject. Mention any remaining unstaged or untracked changes.

References

What ships with it: 1 file

10.2 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.