Agent skill
git-commit
Git workflow automation for commits, branches, and PRs. Triggers on "commit", "push", "create PR", "git workflow".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-commit-project-x-vietnam-landing-page
SKILL.md
Git Commit
Structured git workflow for commits, branch management, and PR creation.
When to Use
- Committing completed work
- Creating feature branches
- Pushing to remote
- Creating pull requests
Core Principles
- Write descriptive commit messages (why, not what)
- One logical change per commit
- Never commit secrets (.env, credentials)
- Always verify changes before committing
Commit Workflow
Step 1: Review Changes
git status # See all changes
git diff # See unstaged changes
git diff --staged # See staged changes
Step 2: Stage Changes
git add <specific-files> # Stage specific files
# or
git add . # Stage all (verify no secrets first)
Never commit:
.envfilesnode_modules/.next/build output- Credential files
Step 3: Commit
Message format:
<type>: <description>
[optional body explaining why]
Types:
feat: New feature or pagefix: Bug fixstyle: Visual/styling changesrefactor: Code restructuring (no behavior change)docs: Documentation onlychore: Build, config, dependency updates
Examples:
feat: add mentors listing page with search and filter
fix: resolve navbar scroll detection on mobile Safari
style: update hero gradient to match new brand guidelines
refactor: extract reusable SectionHeading component
Step 4: Push
git push -u origin HEAD # Push and set upstream
Branch Naming
feat/description # New features
fix/description # Bug fixes
style/description # Visual changes
refactor/description # Code restructuring
PR Creation
gh pr create --title "feat: description" --body "$(cat <<'EOF'
## Summary
- [Change 1]
- [Change 2]
## Test Plan
- [ ] Verify on mobile
- [ ] Verify on desktop
- [ ] Check all links
EOF
)"
Related Skills
| Skill | When to Chain |
|---|---|
| review-pr | Review before committing |
| feature-dev | Commit after feature implementation |
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?