refactor: Standardize @include reference system across all command files

- Fix @include references to use underscore format (Universal_Legend, Standard_Messages_Templates)
- Add missing ultracompressed.yml shared pattern file
- Update broken reference paths in all 18 command files
- Ensure consistent template naming across command system
- Optimize command file structure with standardized includes

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
NomenAK
2025-06-25 00:21:27 +02:00
parent 219ff3905a
commit 23a103d5dc
36 changed files with 3139 additions and 1375 deletions

View File

@@ -1,140 +1,31 @@
# /git - Manage git workflows and repository operations
## Legend
@include shared/universal-constants.yml#Universal_Legend
## Purpose
Manage comprehensive git workflows for repositories specified in $ARGUMENTS with safety checks and automation.
## Command Execution
Execute: immediate. --plan→show plan first
Legend: Generated based on symbols used in command
Purpose: "[Action][Subject] in $ARGUMENTS"
## Syntax
`/git [flags] [operation/message]`
Manage comprehensive git workflows for repositories specified in $ARGUMENTS.
@include shared/flag-inheritance.yml#Universal_Always
## Core Operations
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
--commit flag:
- Stage appropriate files
- Generate meaningful commit message
- Include co-author attribution
- Follow conventional commits
Git operations:
--pr flag:
- Create pull request
- Generate PR description
- Set reviewers & labels
- Link related issues
**--commit:** Stage appropriate files | Generate meaningful commit message | Include co-author attribution | Follow conventional commits
--flow flag:
- feature: Feature branch workflow
- hotfix: Emergency fix workflow
- release: Release branch workflow
- gitflow: Full GitFlow model
**--pr:** Create pull request | Generate PR description | Set reviewers & labels | Link related issues
## Git Workflows
**--flow:** Git workflow patterns
- feature: Feature branch workflow | hotfix: Emergency fix workflow
- release: Release branch workflow | gitflow: Full GitFlow model
Feature Development:
```bash
# Start new feature
/git --flow feature "user-authentication"
@include shared/execution-patterns.yml#Git_Integration_Patterns
# Commit progress
/git --commit "Add login form validation"
@include shared/docs-patterns.yml#Standard_Notifications
# Create PR when ready
/git --pr --reviewers @team
```
Hotfix Process:
```bash
# Emergency fix
/git --flow hotfix "security-patch"
# Quick commit & PR
/git --commit --pr "Fix SQL injection vulnerability"
```
Release Management:
```bash
# Start release
/git --flow release "v2.0.0"
# Tag & merge
/git --tag --merge "Release version 2.0.0"
```
## Safety Features
Pre-commit Checks:
- Verify branch is up to date
- Run linters & formatters
- Execute test suite
- Check for secrets
- Validate commit message
Merge Protection:
- Require PR reviews
- Ensure CI passes
- Check branch policies
- Prevent force pushes
- Backup before risky ops
## Advanced Features
--interactive flag:
- Interactive staging (git add -p)
- Commit message editor
- Conflict resolution helper
- Cherry-pick assistance
--history flag:
- Clean up commit history
- Interactive rebase
- Squash related commits
- Reorder for clarity
--stats flag:
- Contribution analytics
- Code churn metrics
- Review turnaround time
- Branch lifetime stats
## Best Practices
Commits:
- Atomic, focused changes
- Present tense messages
- Reference issue numbers
- Co-author attribution
- Sign commits when required
Branches:
- Descriptive names
- Regular rebasing
- Clean before merging
- Delete after merge
- Protect main branches
## Examples
```bash
# Standard commit with message
/git --commit "Add user profile API endpoint"
# Create PR with reviewers
/git --pr --reviewers alice,bob --labels api,feature
# Interactive cleanup before PR
/git --history --interactive
# Full feature workflow
/git --flow feature "payment-integration" --think
```
## Deliverables
- Clean git history
- Meaningful commit messages
- Automated PR creation
- Branch management
- Workflow documentation
@include shared/universal-constants.yml#Standard_Messages_Templates