Files
SuperClaude/.claude/commands/git.md
luciano d3b2c2a029 🔧 Add Pre-commit Integration to /git Command (#46)
feat: add pre-commit integration to /git command

- Add --pre-commit flag with setup and management capabilities
- Create pre-commit-patterns.yml with Python (uv) and Node (npm) support
- Include hooks for linting, formatting, and security scanning
- Add usage examples to command documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-02 17:36:54 +02:00

42 lines
1.7 KiB
Markdown

**Purpose**: Git workflow with checkpoint management
---
@include shared/universal-constants.yml#Universal_Legend
## Command Execution
Execute: immediate. --plan→show plan first
Legend: Generated based on symbols used in command
Purpose: "[Action][Subject] in $ARGUMENTS"
Manage comprehensive git workflows for repositories specified in $ARGUMENTS.
@include shared/flag-inheritance.yml#Universal_Always
Examples:
- `/git --commit "Add user profile API endpoint"` - Standard commit w/ message
- `/git --pr --reviewers alice,bob --labels api,feature` - Create PR w/ reviewers
- `/git --flow feature "payment-integration" --think` - Full feature workflow
- `/git --pre-commit` - Setup pre-commit framework and basic hooks
- `/git --commit "Fix validation logic" --pre-commit` - Commit with pre-commit validation
- `/git --pre-commit --security` - Setup with security hooks included
Git operations:
**--commit:** Stage appropriate files | Generate meaningful commit message | Include co-author attribution | Follow conventional commits
**--pr:** Create pull request | Generate PR description | Set reviewers & labels | Link related issues
**--flow:** Git workflow patterns
- feature: Feature branch workflow | hotfix: Emergency fix workflow
- release: Release branch workflow | gitflow: Full GitFlow model
**--pre-commit:** Setup and manage pre-commit hooks | Auto-install framework | Configure quality checks | Run hooks before commits
@include shared/execution-patterns.yml#Git_Integration_Patterns
@include shared/pre-commit-patterns.yml#Pre_Commit_Setup
@include shared/docs-patterns.yml#Standard_Notifications
@include shared/universal-constants.yml#Standard_Messages_Templates