hemang11/agent-core/commit-guidelines
Claude Code and agent skill by hemang11/agent-core
- community
Checking that the SKILL.md file is still in the repository.
Help users write excellent git commit messages following Conventional Commits for JavaScript and TypeScript projects. Use this skill whenever a user asks to write a commit message, improve a commit, stage changes, or summarize what to commit — even if they just say "help me commit this", "what should my commit say", "write a commit for these changes", or "is this a good commit message". Also trigger when reviewing staged files or a diff and the user wants to structure their commits well. Covers…
Install
npx vskill@latest install hemang11/agent-core/commit-guidelinesSKILL.md
The same SKILL.md was published earlier as hemang11/agent-core/commit-guidelines.
Commit Guidelines Skill (JavaScript / TypeScript)
Help users write clear, consistent git commit messages using Conventional Commits.
The Format
Types
| Type | When to use | |
|---|---|---|
feat | New feature or capability | |
fix | Bug fix | |
docs | Documentation only | |
style | Formatting, whitespace (no logic change) | |
refactor | Code change with no feature/bug change | |
perf | Performance improvement | |
test | Adding or correcting tests | |
build | Build system, npm scripts, dependencies | |
ci | CI/CD configuration (GitHub Actions, etc.) | |
chore | Tooling, config, non-src changes | |
revert | Reverts a prior commit |
Breaking changes: Append ! to the type:
Scopes for JS/TS Projects
Use scopes that reflect your project's actual structure. Common patterns:
By layer: feat(api): fix(db): refactor(ui): fix(middleware):
By feature/domain: feat(auth): fix(checkout): perf(search): test(dashboard):
By tooling: build(webpack): ci(github-actions): chore(eslint): build(tsconfig):
By framework area: fix(hooks): refactor(components): perf(context): test(reducers):
Tip: pick a scope convention and keep it consistent across the team.
Subject Line Rules
- 50 chars or fewer (hard limit: 72)
- Imperative mood: "add" not "added" / "adds"
- No period at the end
- Capitalize first word after the colon
- Say what changed, not that something changed
JS/TS Examples — Bad → Good
| ❌ Bad | ✅ Good | ||
|---|---|---|---|
fix types | `fix(auth): correct return type on getUser to User \ | null` | |
update deps | build: upgrade TypeScript to 5.4 and fix type errors | ||
refactor stuff | refactor(cart): extract price calculation into usePricing hook | ||
WIP | feat(search): add debounced filtering for product list | ||
fix bug in login | fix(auth): prevent redirect loop when session token expires | ||
async fix | fix(api): await Promise.all instead of sequential fetches | ||
lint | style: apply eslint --fix across src directory | ||
add tests | test(checkout): add coverage for failed payment state |
Writing the Body
Add a body when the why isn't obvious. Skip it for simple, self-explanatory changes.
Wrap at 72 chars. Explain what and why — not how.
Footers
Breaking change footer:
Commit Granularity
One logical change per commit. Ask: "If I reverted just this, would it make sense?"
Split when:
- Summary needs "and" to describe two separate things
- A dependency bump is mixed with feature code
- A refactor is mixed with a new feature
- Type fixes are mixed with logic changes
JS/TS-specific splitting guidance:
Workflow: Writing a Commit from a Diff
- What changed? Identify the logical unit of work.
- Type: Is it a fix, feat, refactor, build?
- Scope: Which module, hook, component, or domain?
- Subject: Imperative, specific, ≤50 chars.
- Body needed? Is the why non-obvious?
- Footers: Issue refs, breaking changes, co-authors.
- Split needed? Multiple concerns → multiple commits.
Provide the message in a code block, ready to copy:
Quick Reference
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/public/commit-guidelines/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hemang11/agent-core/commit-guidelines)