laurigates/claude-plugins/git-commit
Claude Code and agent skill by laurigates/claude-plugins
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Local commits only: stage the changes, write a conventional message, run pre-commit, create the commit. Use when the user says \"commit\", \"save my work\", or \"stage and commit\". Pushing is git-push.
Install
npx vskill@latest install laurigates/claude-plugins/git-commitSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as laurigates/claude-plugins/git-commit.
Git Commit
When to Use This Skill
| Use this skill when... | Use the alternative when... | |
|---|---|---|
| Creating a local commit with conventional message and pre-commit hooks | Use git-push afterwards to send the commit to remote | |
Auto-detecting related GitHub issues and inserting Refs #N references | Use github-issue-autodetect to study the detection patterns themselves | |
| Staging and committing without pushing or opening a PR | Use git-commit-push-pr to chain commit + push + PR creation in one step | |
| Applying repo conventions (humble tone, logical grouping) to a single commit | Use git-commit-workflow for the broader staging + message convention guidance |
Create local commits with proper conventional messages and issue references.
When to Use
Trigger phrases:
- "commit" / "commit locally" / "commit these changes"
- "save changes" / "save my work"
- "stage and commit"
- "create a commit"
Context signals:
- User has made code changes
git statusshows modified/untracked files- No mention of "push", "remote", or "PR"
Workflow
1. Assess State
2. Stage Changes
Explicit staging (preferred):
Modified tracked files:
3. Run Pre-commit Hooks
If .pre-commit-config.yaml exists:
4. Detect Related Issues
Scan open issues for matches (see github-issue-autodetect skill):
Match staged changes to issues by:
- File paths mentioned in issue body (high confidence)
- Error messages or function names (high confidence)
- Directory/component matches (medium confidence)
5. Create Commit
IMPORTANT: Use HEREDOC directly in the git commit command.
The scope is required. Write type(scope): … — docs(readme): update install steps, never a bare docs: update install steps. The Conventional Commits spec lets you omit the scope; this house convention does not (.claude/rules/conventional-commits.md). Take it from the component or plugin the change touches.
Use the exact Co-Authored-By line the harness provides for the current session — do not copy a model name from this example.
Inside a quoted heredoc (`<<'EOF'`), backticks, `$`, and `\` are already literal — never backslash-escape them. A reflexive \ produces a literal backslash in the commit message that survives into git log and needs an --amend` to clean up.
For trailer conventions (Co-authored-by, Signed-off-by, BREAKING CHANGE, Release-As), see git-commit-trailers skill.
Conventional Commit Types
| Type | Use Case | Version Bump | |
|---|---|---|---|
feat | New feature | Minor | |
fix | Bug fix | Patch | |
perf | Performance improvement | Patch | |
refactor | Code restructuring | None | |
docs | Documentation | None | |
test | Adding tests | None | |
chore | Maintenance, deps | None | |
ci | CI/CD config | None | |
build | Build system, deps | None |
See Conventional Commits Standards for complete reference.
Issue References
Commit messages use Refs #N only. A closing keyword (Fixes #N, Closes #N) in a commit message closes the issue when the commit lands on the default branch, whatever the PR body says; under squash with COMMIT_MESSAGES every branch commit message lands in the squash body. Put closing keywords in the PR body. The no-closing-keywords commit-msg hook rejects them here.
| Where | Keyword | Effect | |
|---|---|---|---|
| Commit message | Refs #N | Links without closing | |
| PR body | Fixes #N / Closes #N | Closes the issue when the PR merges |
Output
On success, report:
Composability
This skill creates local commits only. For remote operations:
- git-push skill: Push commits to remote
- git-pr skill: Create pull request
Common compositions:
- "commit" → git-commit only
- "commit and push" → git-commit → git-push
- "commit and create PR" → git-commit → git-push → git-pr
Before building further on an existing PR branch (an additional in-session request continuing earlier work), invoke /git:pr-sync-check first. If the verdict is anything other than in_sync / no_pr / no_remote — e.g. pr_merged or behind — stop and reconcile (branch off the updated default, or git pull --rebase) before committing. See .claude/rules/pr-branch-sync.md.
Error Handling
No changes to commit:
Pre-commit hook fails:
Merge conflict markers:
Best Practices
- One logical change per commit - Easier to review and revert
- Always reference issues - Maintains traceability
- Run pre-commit before staging - Avoids re-staging formatter changes
- Keep subject under 72 chars - Better display in git log
- Use imperative mood - "Add feature" not "Added feature"
- Add appropriate trailers - Co-authored-by for pair/AI work, Signed-off-by for DCO projects, BREAKING CHANGE for major versions (see git-commit-trailers)
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 repositoryCheckinggit-plugin/skills/git-commit/SKILL.md
Popularity
- Repository stars
- 60
- Repository forks
- 6
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (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/laurigates/claude-plugins/git-commit)