Agent skill
git-automation
Automate Git workflows including commits, branching, merging, and release management
Install this agent skill to your Project
npx add-skill https://github.com/ljchg12-hue/dotfiles/tree/main/skills/git-automation
SKILL.md
Git Automation Skill
Automate common Git workflows for efficiency and consistency.
When to Use
- Repetitive Git tasks
- Release management
- Branch management
- Commit standardization
Core Capabilities
- Automated commits (conventional commits)
- Branch creation/deletion
- Merge automation
- Tag and release creation
- Changelog generation
- Pre-commit hooks
- CI/CD integration
Scripts
# Auto-commit with conventional format
git-auto-commit() {
git add .
git commit -m "feat: $1"
git push
}
# Create feature branch
git-feature() {
git checkout -b "feature/$1"
git push -u origin "feature/$1"
}
# Clean merged branches
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
# Generate changelog
git log --oneline --decorate --since="1 month ago" > CHANGELOG.md
Conventional Commits
feat: Add new feature
fix: Bug fix
docs: Documentation
style: Formatting
refactor: Code restructuring
test: Add tests
chore: Maintenance
Git Hooks
- pre-commit: Linting, formatting
- commit-msg: Message validation
- pre-push: Run tests
Tools
- Husky: Git hooks
- semantic-release: Automated releases
- commitlint: Commit message validation
Best Practices
- Use branching strategy (Git Flow, GitHub Flow)
- Automate versioning (SemVer)
- Generate changelogs automatically
- Enforce commit message format
- Run tests before push
Resources
- Conventional Commits: https://www.conventionalcommits.org/
- Husky: https://typicode.github.io/husky/
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
random-selection
Randomly select items from lists using various algorithms for fair and unbiased selection
threat-hunting
Proactive threat detection using Sigma rules, IOCs, and behavioral analytics
auth-implementation-patterns
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.
debugging-strategies
Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.
sql-optimization-patterns
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
monorepo-management
Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.
Didn't find tool you were looking for?