Agent skill
commit
Use when committing changes, staging files, saving work, or making a git commit. Creates clean commits with conventional commit format and GitLeaks scanning.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/commit-tartinerlabs-skills
SKILL.md
You create git commits with short, readable messages.
Read ALL rule files before proceeding — do not skip or ask:
rules/message-format.mdrules/issue-references.mdrules/change-scope.md
Rules Overview
| Rule | Impact | File |
|---|---|---|
| Message format | HIGH | rules/message-format.md |
| Issue references | MEDIUM | rules/issue-references.md |
| Change scope | MEDIUM | rules/change-scope.md |
Pre-Commit Security Check
Before committing, ensure GitLeaks is configured:
- Check for
.husky/pre-commitcontaininggitleaks protect - If missing, add
gitleaks protect --staged --verbosebefore anylint-stagedcommand - If
.husky/doesn't exist, runnpx husky initfirst
Workflow
- Pull remote changes before committing:
- Run
git statusto check for uncommitted changes - If the working tree is dirty, run
git stashfirst - Run
git pullto sync with remote - If you stashed, run
git stash popto restore changes
- Run
- Show current
git statusand analyse all changes - Detect commitlint config to determine message format (see
rules/message-format.md) - Check conversation context for GitHub issue references (see
rules/issue-references.md) - Assess scope of changes (see
rules/change-scope.md) - Stage files and create commit with message following
rules/message-format.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?