moai-ref-git-workflow
БесплатноБез исполняемых скриптовНе проверенGit workflow patterns, branch strategies, conventional commits, and PR templates reference for git operations. Agent-extending skill that amplifies…
от modu-ai★ 1 264 звезды на GitHubОб этом скилле
Git Workflow Reference
Target Agent
manager-git - Applies these patterns directly to git operations, branch management, and PR creation.
Branch Strategy Patterns
GitHub Flow (Default for Most Projects)
main ─────────────────────────────────────────
└── feat/SPEC-XXX-description ──── PR ──→ merge
Rules:
mainis always deployable- Feature branches from
main - PR required for all merges
- Delete branch after merge
GitFlow (Complex Release Cycles)
main ──────────────────────────────────────────
└── develop ─────────────────────────────────
├── feature/SPEC-XXX ──── PR ──→ develop
└── release/v1.2.0 ────── PR ──→ main + develop
Agentic-Trunk (Local Batch Landing)
git_strategy.manual.workflow: af-flow names the model MoAI-ADK's own factory runs on:
main ──────────────────────────────────────────
└── WT-card-slug ── integration-worktree merge ──→ batch PR (release/main-batch-YYYYMMDD) ──→ tagged release
Rules:
- One standing trunk
main; card worktrees branch from it - Two delivery routes, decided by which tree holds
main: when a dedicated integration worktree holds it, cards land serially there (--no-ff, no per-card pull request); when only the primary checkout holds it,moai factory completeopens the card's pull request and the leader merges it - With the dedicated integration worktree, the leader opens one batch pull
request per
lead_push_thresholdlandings - Lanes take no per-version release branch and run no lane push
Trunk-Based (CI/CD Heavy)
main ──────────────────────────────────────────
└── short-lived branch (< 1 day) ──→ merge
Branch Naming Convention
| Pattern | Example | Use Case |
|---|---|---|
feat/SPEC-{ID}-{slug} |
feat/SPEC-AUTH-001-jwt-auth |
New feature |
fix/SPEC-{ID}-{slug} |
fix/SPEC-BUG-042-null-check |
Bug fix |
refactor/{slug} |
refactor/extract-auth-middleware |
Refactoring |
docs/{slug} |
docs/api-reference-update |
Documentation |
chore/{slug} |
chore/upgrade-dependencies |
Maintenance |
Conventional Commits Reference
| Type | When | Example |
|---|---|---|
feat |
New feature | feat(auth): add JWT refresh token flow |
fix |
Bug fix | fix(api): handle null user in profile endpoint |
refactor |
Code restructure | refactor(db): extract query builder |
test |
Test changes | test(auth): add login edge case tests |
docs |
Documentation | docs(api): update endpoint descriptions |
chore |
Maintenance | chore(deps): upgrade Go to 1.23 |
perf |
Performance | perf(query): add index for user lookup |
style |
Formatting | style: apply gofmt formatting |
ci |
CI/CD changes | ci: add GitHub Actions workflow |
revert |
Revert commit | revert: undo feat(auth) commit abc123 |
Commit Message Structure
<type>(<scope>): <description> # max 72 chars
[optional body] # what and why, not how
[optional footer] # Breaking changes, issue refs
BREAKING CHANGE: <description>
Refs: #123, SPEC-AUTH-001
Pull Request Template
## Summary
- [1-3 bullet points describing what this PR does]
## Changes
- [ ] File 1: description of change
- [ ] File 2: description of change
## Test Plan
- [ ] Unit tests added/updated
- [ ] Integration tests pass
- [ ] Manual testing completed
## SPEC Reference
- SPEC-{ID}: {title}
## Checklist
- [ ] Tests pass (project test command)
- [ ] Lint and format pass (project toolchain)
- [ ] No secrets committed
- [ ] Documentation updated if needed
Merge Strategy Selection
| Strategy | When | Command |
|---|---|---|
| Squash merge | Feature branches (clean history) | gh pr merge --squash |
| Merge commit | Release branches (preserve history) | gh pr merge --merge |
| Rebase | Small, clean commits | gh pr merge --rebase |
The active method for sync-phase PR auto-merge is governed by the git_strategy.<mode>.merge_method config value (squash | merge | rebase; default squash), not hardcoded. The sync agent resolves it from the active mode profile and renders the matching gh pr merge --<merge_method> command.
Git Safety Rules
| Action | Risk | Rule |
|---|---|---|
git push --force |
Overwrites remote | NEVER on main/master, ask user first |
git reset --hard |
Loses local changes | Confirm with user first |
git checkout . |
Discards changes | Confirm with user first |
git branch -D |
Deletes branch | Only after merge confirmed |
--no-verify |
Skips hooks | NEVER unless user explicitly requests |
git rebase -i |
Interactive (not supported) | NEVER use (requires interactive input) |
Context Memory in Commits
Embed decision context in commit messages for future session continuity:
feat(auth): implement JWT refresh token rotation
Decision: Chose rotation over sliding window for security
Pat
Установить moai-ref-git-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл moai-ref-git-workflow?
Git workflow patterns, branch strategies, conventional commits, and PR templates reference for git operations. Agent-extending skill that amplifies manager-git expertise with production-grade git workflow patterns. NOT for: code implementation, testing, architecture design, documentation content.
Как установить скилл moai-ref-git-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл moai-ref-git-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic