Git Workflow Plugin¶
Professional git workflow automation with pre-commit checks, emoji conventional commits, PR management, and comprehensive references.
Version 2.2.2¶
Minor Update: Added /git-workflow:resolve-conflicts command for intelligent merge conflict resolution with semantic analysis, automated test validation, and comprehensive reference documentation.
Commands¶
/git-workflow:commit¶
Create professional git commits with automated pre-commit checks and emoji conventional commit format.
Features:
- π¨ Emoji Conventional Commits (β¨ feat, π fix, π docs, etc.)
- β‘ Automated pre-commit checks for Java, Python, React, and Documentation
- π Project type detection (Maven, Gradle, npm, pytest, etc.)
- π Comprehensive commit message validation
- π Optional integration with professional-commit-workflow skill (~70% faster)
- β Best practices enforcement
- π Extensive reference documentation
Usage:
| Bash | |
|---|---|
Pre-Commit Checks:
- Java: Maven/Gradle build, Checkstyle, JUnit tests
- Python: Ruff/Black formatting, pytest, mypy type checking
- React/Node.js: ESLint, Prettier, TypeScript compilation, Jest/Vitest
- Documentation: LaTeX compilation, Markdown linting
Supported Commit Types:
- β¨
feat- New features - π
fix- Bug fixes - π
docs- Documentation changes - π
style- Code formatting - β»οΈ
refactor- Code restructuring - β‘
perf- Performance improvements - π§ͺ
test- Testing - π§
chore- Build/tools/config
See commit-types.md for complete list.
References: - Best Practices - Commit quality guidelines - Commit Types - Complete emoji conventional commit types - Pre-Commit Checks - Automated validation details - Troubleshooting - Common issues and solutions
/git-workflow:create-pr¶
Create pull requests with automated branch management, commit analysis, and professional PR descriptions.
Features:
- π Automatic PR description generation from commits
- π Branch status verification and validation
- πͺ Related issue linking and references
- β‘ Breaking changes documentation
- π₯ Reviewer suggestions
- π― Test plan generation
- π Code formatting integration (Biome, Black, Prettier)
- π Optional integration with professional-pr-workflow skill
Usage:
| Bash | |
|---|---|
PR Description Includes:
- Summary of changes from all commits (not just latest!)
- Technical implementation details
- Breaking changes (if any)
- Related issues and references
- Comprehensive test plan checklist
- Generated with Claude Code attribution
References:
- Code Formatting - Automatic code formatting
- Commit Workflow - Commit management in PRs
- PR Template - PR description structure
- Troubleshooting - Common PR issues
/git-workflow:resolve-conflicts¶
Analyze and resolve merge conflicts intelligently with automated root cause analysis, semantic code merging, and test validation.
Features:
- π Automatic conflict root cause analysis with source identification
- π§ Smart strategy with semantic understanding of code changes
- π Three merge strategies:
smart(default),ours,theirs - π§ͺ Automated test execution and linting after resolution
- π Comprehensive conflict resolution report
- ποΈ Worktree-aware operation
- π Extensive reference documentation
Usage:
Smart Strategy Capabilities:
- Lock-Files: Automatic regeneration (
uv.lock,bun.lockb,package-lock.json) - Import blocks: Union merge with alphabetical sorting
- Additive changes: Both sides preserved (routes, exports, configs)
- Same-line edits: Context analysis with feature branch prioritization
- Alembic migrations: Revision chain linearization and head merging
- Architectural conflicts: Halts for user decision
References: - Strategies - Detailed merge strategies and decision tree - Best Practices - Prevention and resolution guidelines - Troubleshooting - Common issues and solutions
/git-workflow:pr-edit-history¶
Display the edit history of a GitHub Pull Request description.
Features:
- π View all edits made to PR description
- π€ See who made each edit
- β° Timestamps for all changes
- π Diff view between versions
Usage:
| Bash | |
|---|---|
Skills¶
This plugin includes three powerful skills for enhanced performance. See Skills & Agents Activation Guide for details.
professional-commit-workflow¶
~70% faster than standard command with reduced token consumption.
Activation:
- Via command:
/git-workflow:commit --with-skills
Features:
- Automatic project type detection
- Pre-commit validation (Java, Python, React, Docs)
- Emoji Conventional Commit generation
- JSON-based configuration
- Python module extensibility
Location: ./skills/professional-commit-workflow/
Documentation: professional-commit-workflow/README.md
professional-pr-workflow¶
Automated PR creation with branch management and code formatting.
Activation:
- Via command:
/git-workflow:create-pr --with-skills
Features:
- Branch creation and management
- Automatic commit splitting
- Code formatter integration (Biome, Black, Prettier)
- PR description generation
- GitHub CLI integration
Location: ./skills/professional-pr-workflow/
Documentation: professional-pr-workflow/README.md
Installation¶
This plugin is part of the Talent Factory marketplace.
Add marketplace to .claude/settings.json:
| JSON | |
|---|---|
Install via Claude Code:
Project Structure¶
Best Practices¶
Commit Workflow¶
- Always use
/git-workflow:commitinstead of directgit commit - Let automated checks run - they catch issues early
- Write descriptive messages - explain the "why", not just the "what"
- Keep commits atomic - one logical change per commit
- Use imperative mood - "Add feature" not "Added feature"
- No tool signatures - commits should not include "Generated with Claude Code"
PR Workflow¶
- Use
/git-workflow:create-prfor consistency across team - Review PR description before creating
- Keep PRs small - ideally < 400 lines changed
- Link related issues - use "Fixes #123" syntax
- Document breaking changes clearly
- Include test plan - how to verify changes
Code Quality¶
- β Run linters before committing
- β Ensure all tests pass
- β Update documentation
- β Remove debug statements
- β Check for secrets/API keys
- β Review your own diff first
Examples¶
Creating a Feature Commit¶
Creating a Pull Request¶
| Bash | |
|---|---|
Checking PR Edit History¶
| Bash | |
|---|---|
Advanced Usage¶
Commit with Skill Integration¶
| Bash | |
|---|---|
Skip Pre-Commit Checks¶
| Bash | |
|---|---|
PR with Custom Formatting¶
| Bash | |
|---|---|
Troubleshooting¶
Commit Command Issues¶
Problem: Pre-commit checks fail - Solution: See commit/troubleshooting.md
Problem: Commit message too long - Solution: Keep subject line β€ 72 characters, use body for details
Problem: Wrong commit type detected - Solution: Claude analyzes changes, but you can override in message
PR Creation Issues¶
Problem: GitHub CLI not found - Solution: Install with brew install gh or download from github.com/cli/cli
Problem: Branch not pushed to remote - Solution: /git-workflow:create-pr will push automatically with -u flag
Problem: PR description truncated - Solution: Large diffs may truncate; commit more frequently
See create-pr/troubleshooting.md for more solutions.
Requirements¶
- Git: Version 2.23+ recommended
- GitHub CLI: Optional but recommended for
/git-workflow:create-pr - Working directory: Must be inside a git repository
Project-Specific: - Java: Maven or Gradle - Python: Ruff/Black, pytest, mypy (optional) - React/Node.js: ESLint, Prettier, TypeScript (optional)
Changelog¶
Version 2.2.2 (2026-02-27)¶
Patch Update: - Added keywords and license fields to plugin.json - Translated command and skill documentation to English - Fixed Swiss German orthography (ss instead of Γ) - Updated command references to fully-qualified format
Version 2.2.0 (2026-02-13)¶
Minor Update:
- β¨ Added
/git-workflow:resolve-conflictscommand for intelligent merge conflict resolution - π Added comprehensive reference documentation (strategies, best practices, troubleshooting)
- π§ Smart merge strategy with semantic code analysis
- π Support for
smart,ours, andtheirsstrategies - π§ͺ Automated test and lint validation after resolution
- Now includes 4 commands and 3 professional workflow skills
Version 2.1.0 (2026-02-03)¶
Minor Update:
- β¨ Added
post-merge-cleanupskill for automated branch cleanup after merge - Now includes 3 professional workflow skills
Version 2.0.0 (2026-01-10)¶
Major Update:
- β¨ Added comprehensive reference documentation
- β¨ Integrated professional-commit-workflow skill
- β¨ Integrated professional-pr-workflow skill
- β¨ Added
/git-workflow:pr-edit-historycommand - π Expanded commit types with emoji support
- π Added troubleshooting guides
- π§ Enhanced pre-commit checks
- π§ Improved PR description generation
Migration from 1.0.0:
- All existing commands remain compatible
- New
--with-skillsflag optional - References available for enhanced guidance
Version 1.0.0¶
- Initial release with
/git-workflow:commitand/git-workflow:create-pr
Support¶
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@talent-factory.ch
Contributing¶
See CONTRIBUTING.md in the main repository.
License¶
MIT License - see LICENSE file for details.
Made with β€οΈ by Talent Factory GmbH