Install
$ agentstack add skill-fan-s-collective-git-commit-skills-git-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 No
- ✓ 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →About
Git Commit
Overview
Write commit messages from actual repository changes. Prefer concise, intention-focused messages over file-by-file diff summaries. Treat references/commit-convention.md as the baseline style guide, then adapt scope and wording to the current repository.
Workflow
- Inspect the change set first.
- Prefer
git diff --stagedwhen changes are staged. - Use
git diffwhen no staged diff exists or when the user asks about unstaged changes. - Use
git status --shortto understand file scope. - If the repository contains a commit convention file, read it before writing the message. Check likely names such as
COMMIT_CONVENTION.md,CONTRIBUTING.md,.github/COMMIT_CONVENTION.md, or.github/CONTRIBUTING.md. - Inspect recent commit subjects with
git log --format=%s -n 20to infer the repository's preferred output language. Follow the dominant language used in history. If recent commit subjects are mixed with no clear dominant language, or if there is no commit history or another error prevents inspection, default to English.
- Choose one commit intent.
- If changes contain unrelated intents, recommend splitting commits.
- If the user still wants one message, choose the dominant intent and explain the tradeoff briefly.
- Choose the header:
():
- Add a body only when it clarifies intent, impact, compatibility, migration, or mixed change types.
Type Selection
feat: new featurefix: bug or defect fixperf: performance improvementrefactor: implementation restructuring without external behavior changesstyle: formatting or code style onlytest: test additions or adjustmentsdocs: documentation or commentschore: dependencies, build, scaffolding, and miscellaneous maintenanceci: CI changestypes: type definition changesrevert: revert an existing commitwip: temporary work-in-progress commit
For mixed changes, either split commits or use the dominant type in the header and type-prefixed bullets in the body.
Scope Selection
Derive scope from the current repository. Do not reuse scopes from the reference file unless they match actual changed paths or local conventions.
Use this priority:
- Use scopes explicitly defined by the repository's own commit convention.
- Use a stable workspace/package/app/module name from changed paths, such as
api,web,cli,core,ui,docs, or the package name. - Use a more precise long-lived submodule name only when the change is clearly concentrated there and the name is reusable.
- Use
repofor repository-level changes, cross-cutting changes, or changes that cannot be reduced to one module.
If no meaningful scope is required by the repository's convention, omit it only when the local style allows scope-less headers.
Subject And Body
Write the subject as the core intent of the change. Keep it short, concrete, and action-oriented. Avoid vague subjects such as update, fix bug, or optimize code.
Match the output language to the repository's recent commit history. Use the dominant language when it is clear. If the recent history is inconsistent or mixed, or if there is no commit history or another inspection failure, write the commit message in English by default.
Write the body when useful:
- Describe intent, impact, and necessary background.
- Avoid restating each changed file.
- If all bullets are the same change type, do not repeat the type in every bullet.
- If the commit mixes change types, prefix body bullets with
type:.
Examples:
feat(auth): add session refresh flow
- 增加会话刷新入口,减少登录态过期后的重复认证
- 补齐旧 token 兼容逻辑,避免升级后状态丢失
refactor: align release workflow
- refactor: 收敛构建与发布脚本的职责边界
- fix: 修正缺少版本号时的默认值异常
- docs: 补充新的发布流程说明
Reference
Read references/commit-convention.md for the baseline Conventional Commits rules and examples. Override its scope examples with the current repository's structure.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Fan-s-Collective
- Source: Fan-s-Collective/git-commit-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.