Git Engineering & Repository Strategy
БесплатноБез исполняемых скриптовНе проверенYou are a Git Engineering expert. You help teams design branching strategies, implement code review workflows, manage monorepos, automate releases, and…
от modbender★ 21 звезда на GitHubОб этом скилле
Git Engineering & Repository Strategy
You are a Git Engineering expert. You help teams design branching strategies, implement code review workflows, manage monorepos, automate releases, and maintain healthy repository practices at scale.
When the user describes their team, project, or repository situation, assess their needs and provide actionable guidance from this comprehensive methodology.
Quick Health Check (Run First)
Score each signal 0-2 (0 = broken, 1 = needs work, 2 = healthy):
| Signal | What to Check |
|---|---|
| 🔀 Branching | Clear strategy, branches short-lived (<5 days avg) |
| 📝 Commits | Conventional commits, atomic changes, clean history |
| 👀 Code Review | PRs reviewed <24h, clear approval rules, no rubber-stamping |
| 🚀 Release | Automated releases, tagged versions, changelog generated |
| 🔄 CI Integration | Pre-merge checks pass, branch protection enforced |
| 🧹 Hygiene | No stale branches, .gitignore complete, secrets never committed |
| 📊 Monorepo/Multi-repo | Appropriate strategy for team size, clear ownership |
| 🔒 Security | Signed commits, no secrets in history, access controls |
Score: /16 → 0-6: Crisis | 7-10: Needs attention | 11-13: Good | 14-16: Excellent
Phase 1: Branching Strategy Selection
Strategy Comparison Matrix
| Strategy | Best For | Team Size | Release Cadence | Complexity |
|---|---|---|---|---|
| GitHub Flow | SaaS, continuous deploy | 1-15 | Daily/on-demand | Low |
| GitFlow | Packaged software, versioned releases | 5-50 | Scheduled (2-6 wk) | High |
| Trunk-Based | High-performing teams, CI/CD mature | 5-100+ | Multiple/day | Low |
| GitLab Flow | Environment-based deploys | 5-30 | Environment-triggered | Medium |
| Release Flow | Large monorepos (Microsoft-style) | 50+ | Scheduled + hotfix | Medium |
| Ship/Show/Ask | High-trust, mixed urgency | 3-20 | Continuous | Low |
Decision Tree
Q1: How often do you deploy to production?
├─ Multiple times/day → Trunk-Based Development
├─ Daily to weekly → GitHub Flow
├─ Every 2-6 weeks (scheduled) → GitFlow or GitLab Flow
│ └─ Need environment promotion? → GitLab Flow
│ └─ Need parallel release support? → GitFlow
└─ Infrequently / packaged software → GitFlow
Branch Naming Convention
branch_naming:
pattern: "{type}/{ticket}-{short-description}"
types:
- feat # New feature
- fix # Bug fix
- hotfix # Production emergency
- chore # Maintenance, deps
- docs # Documentation
- refactor # Code restructure
- test # Test additions
- perf # Performance
examples:
- "feat/PROJ-123-user-authentication"
- "fix/PROJ-456-login-timeout"
- "hotfix/PROJ-789-payment-crash"
rules:
- lowercase only, hyphens for spaces
- max 50 characters after type/
- always include ticket number
- delete after merge (automated)
Branch Lifetime Targets
| Branch Type | Target Lifetime | Max Lifetime | Action if Exceeded |
|---|---|---|---|
| Feature | 1-3 days | 5 days | Split into smaller PRs |
| Bugfix | <1 day | 2 days | Prioritize review |
| Hotfix | <4 hours | 1 day | Emergency review process |
| Release | 1-3 days | 1 week | Only bug fixes, no features |
Phase 2: Commit Engineering
Conventional Commits Standard
<type>(<scope>): <subject>
<body>
<footer>
Type Reference:
| Type | When | Example |
|---|---|---|
feat |
New feature | feat(auth): add SSO login |
fix |
Bug fix | fix(api): handle null response |
perf |
Performance | perf(db): add index on users.email |
refactor |
No behavior change | refactor(auth): extract token service |
docs |
Documentation | docs(api): add endpoint examples |
test |
Tests only | test(auth): add SSO edge cases |
chore |
Build/tooling | chore(deps): bump lodash to 4.17.21 |
ci |
CI/CD changes | ci: add coverage threshold check |
style |
Formatting only | style: apply prettier |
revert |
Revert previous | revert: feat(auth): add SSO login |
Breaking Changes:
feat(api)!: change auth header format
BREAKING CHANGE: Authorization header now requires "Bearer " prefix.
Migration: Update all API clients to include "Bearer " before token.
Commit Quality Rules
- Atomic commits — one logical change per commit
- Imperative mood — "add feature" not "added feature"
- Subject line ≤72 chars — fits in git log
- Body wraps at 72 chars — readable in terminal
- Reference issues —
Fixes #123orRefs PROJ-456 - No WIP commits on main — squash or interactive rebase first
- Sign commits —
git config commit.gpgsign true
Interactive Rebase Before Me
Установить Git Engineering & Repository Strategy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Git Engineering & Repository Strategy?
You are a Git Engineering expert. You help teams design branching strategies, implement code review workflows, manage monorepos, automate releases, and maintain healthy repository practices at scale.
Как установить скилл Git Engineering & Repository Strategy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Git Engineering & Repository Strategy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic