Git
Commands for streamlined Git operations including commits and pull request creation with conventional commit messages.
Plugin Target
Maintain consistent commit history - Every commit follows conventional commit format
Reduce PR creation friction - Automated formatting, templates, and linking
Improve issue-to-code workflow - Clear technical specs from issue descriptions
Ensure team consistency - Standardized Git operations across the team
Overview
The Git plugin provides commands that automate and standardize Git workflows, ensuring consistent commit messages, proper PR formatting, and efficient issue management. It integrates GitHub best practices and conventional commits with emoji.
Most commands require GitHub CLI (gh) for full functionality including creating PRs, loading issues, and setting labels/reviewers.
Quick Start
# Install the plugin
/plugin install git@NeoLabHQ/context-engineering-kit
# Create a well-formatted commit
> /git:commit
# Create a pull request
> /git:create-prAnalyze Open GitHub issues
Commands Overview
/git:commit - Conventional Commits
Create well-formatted commits with conventional commit messages and emoji.
Purpose - Standardize commit messages across the team
Output - Git commit with conventional format
Arguments
Optional flags like --no-verify to skip pre-commit checks.
How It Works
Change Analysis: Reviews staged changes to understand what was modified
Type Detection: Determines commit type (feat, fix, refactor, etc.)
Message Generation: Creates descriptive commit message following conventions
Emoji Selection: Adds appropriate emoji for the commit type
Commit Creation: Executes git commit with formatted message
Commit Types with Emoji
✨
feat
New feature
🐛
fix
Bug fix
📝
docs
Documentation changes
💄
style
Code style changes (formatting)
♻️
refactor
Code refactoring
⚡
perf
Performance improvements
✅
test
Adding or updating tests
🔧
chore
Maintenance tasks
🔨
build
Build system changes
👷
ci
CI/CD changes
Usage Examples
Best Practices
Keep commits focused - One logical change per commit
Reference issues - Include issue numbers when applicable
Review before commit - Use code review commands first
/git:create-pr - Pull Request Creation
Create pull requests using GitHub CLI with proper templates and formatting.
Purpose - Streamline PR creation with consistent formatting
Output - GitHub pull request with template
Arguments
None required - interactive guide for PR creation.
How It Works
Branch Detection: Identifies current branch and target base branch
Template Search: Looks for PR templates in
.github/directoryChange Summary: Analyzes commits to generate description
PR Creation: Uses
gh pr createwith formatted contentIssue Linking: Automatically links related issues
Usage Examples
Best Practices
Push branch first - Ensure branch is pushed to remote
Use descriptive titles - Clear summary of changes
Link issues - Reference related issues in description
Request reviewers - Add appropriate team members
/git:analyze-issue - Issue Analysis
Analyze a GitHub issue and create a detailed technical specification.
Purpose - Transform issues into actionable development tasks
Output - Technical specification with requirements
Arguments
Issue number (e.g., 42) - required.
How It Works
Issue Fetching: Retrieves issue details from GitHub
Requirements Extraction: Identifies user stories and acceptance criteria
Technical Analysis: Determines APIs, data models, and dependencies
Task Breakdown: Creates actionable subtasks
Complexity Assessment: Estimates implementation effort
Usage Examples
Best Practices
Analyze before coding - Understand requirements first
Check issue completeness - Request clarification if needed
Note dependencies - Identify related issues or PRs
Use for planning - Helps estimate and prioritize work
/git:load-issues - Load Open Issues
Load all open issues from GitHub and save them as markdown files.
Purpose - Bulk import issues for planning and analysis
Output - Markdown files for each open issue
Arguments
None required - loads all open issues automatically.
How It Works
Issue Retrieval: Fetches all open issues from repository
Content Extraction: Parses issue title, body, labels, and metadata
File Generation: Creates markdown file for each issue
Organization: Structures files in designated directory
Usage Examples
Best Practices
Use for sprint planning - Get overview of all open work
Combine with analysis - Analyze high-priority issues in detail
Regular updates - Reload periodically to stay current
/git:attach-review-to-pr - PR Review Comments
Add line-specific review comments to pull requests using GitHub CLI API.
Purpose - Attach detailed code review feedback to PRs
Output - Review comments on specific lines
Arguments
PR number or URL (optional - can work with current branch).
Usage Examples
Skills Overview
worktrees - Parallel Branch Development
Use when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, or comparing implementations across branches.
Purpose - Provide git worktree commands and workflow patterns for parallel development
Core Principle - One worktree per active branch; switch contexts by changing directories
Key Concepts
Main worktree
Original working directory from git clone or git init
Linked worktree
Additional directories created with git worktree add
Shared .git
All worktrees share same Git object database (no duplication)
Branch lock
Each branch can only be checked out in ONE worktree at a time
Quick Reference
Create worktree (existing branch)
git worktree add <path> <branch>
Create worktree (new branch)
git worktree add -b <branch> <path>
List all worktrees
git worktree list
Remove worktree
git worktree remove <path>
Common Workflows
Feature + Hotfix in Parallel - Create worktree for hotfix while feature work continues
PR Review While Working - Create temporary worktree to review PRs without stashing
Compare Implementations - Create worktrees for different versions to diff side-by-side
Long-Running Tasks - Run tests in isolated worktree while continuing development
notes - Commit Metadata Annotations
Use when adding metadata to commits without changing history, tracking review status, test results, code quality annotations, or supplementing commit messages post-hoc.
Purpose - Attach non-invasive metadata to Git objects without modifying commit history
Core Principle - Add information to commits after creation without rewriting history
Key Concepts
Notes ref
Storage location, default refs/notes/commits
Non-invasive
Notes never modify SHA of original object
Namespaces
Use --ref for different note categories (reviews, testing, audit)
Display
Notes appear in git log and git show output
Quick Reference
Add note
git notes add -m "message" <sha>
View note
git notes show <sha>
Append to note
git notes append -m "message" <sha>
Use namespace
git notes --ref=<name> <command>
Push notes
git push origin refs/notes/<name>
Common Use Cases
Code Review Tracking - Mark commits as reviewed with reviewer attribution
Test Results Annotation - Record test pass/fail status and coverage
Audit Trail - Attach security review or compliance information
Sharing Notes - Push/fetch notes to share metadata with team
Conventional Commit Format
The plugin follows the conventional commits specification:
Example Commit Messages
Feature Commit
Bug Fix Commit
Refactoring Commit
Last updated