Git Automation Skill
This skill provides intelligent Git automation capabilities for the Chief of Staff plugin.
Capabilities
Commit Automation
- •Analyze staged and unstaged changes
- •Generate meaningful commit messages following conventional commits or custom styles
- •Smart staging with selective file inclusion
- •Pre-commit validation and checks
Branch Management
- •Create feature branches with proper naming conventions
- •Switch between branches safely
- •Clean up merged branches
- •Branch status overview
Pull Request Workflow
- •Create pull requests with auto-generated descriptions
- •Add proper labels and reviewers
- •Link to related issues
- •Update PR descriptions based on new commits
Merge Operations
- •Safe merge with conflict detection
- •Rebase workflow support
- •Squash merge option
- •Post-merge cleanup
Usage
When working with Git operations, I will:
- •
Analyze the Context: Examine the current repository state, staged changes, and recent commit history.
- •
Generate Appropriate Messages: Create commit messages that accurately describe the changes, following the configured style (conventional, descriptive, or short).
- •
Execute Safely: Always verify before destructive operations and provide clear feedback.
- •
Follow Best Practices: Ensure commits are atomic, messages are clear, and branches are properly managed.
Triggers
This skill activates when:
- •You mention commits, pushing, or pull requests
- •You use commands like
/commit,/pr, or/branch - •Git-related events occur in your workflow
Configuration
- •autoStage: Set to
trueto automatically stage all changes - •commitStyle: Choose between
conventional,descriptive, orshort - •prTemplate: Select a template for PR descriptions
Examples
Creating a Commit
"Commit these changes with a message about the bug fix"
Creating a Pull Request
"Create a PR for the feature branch"
Branch Operations
"Create a new branch for the login feature"