/core:git-strategyfrom core
Defines branch naming, commit format, merge, and conflict-resolution strategy for ClaudeAutoPM projects. Use when creating branches, committing, merging, or opening PRs.
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This document defines the SINGLE, AUTHORITATIVE Git workflow for ClaudeAutoPM projects.
ClaudeAutoPM uses a branch-based strategy for all development work. This ensures simplicity, compatibility, and consistency across all environments and tools.
main (or master)
├── epic/authentication
├── epic/dashboard
├── feature/issue-123
└── hotfix/critical-bug
Always create branches from a clean, updated main branch:
# Ensure main is up to date
git checkout main
git pull origin main
# Create branch for epic
git checkout -b epic/{epic-name}
git push -u origin epic/{epic-name}
# Create branch for standalone issue
git checkout -b feature/issue-{number}
git push -u origin feature/issue-{number}
{type}(scope): {description} #{issue}feat(auth): Add JWT validation #123fix(api): Handle null response #456docs(readme): Update installation steps #789# Start your day - get latest changes
git pull origin epic/{name}
# Make changes
git add {files}
git commit -m "feat(scope): Description #issue"
# Push changes regularly
git push origin epic/{name}
When multiple agents work on the same epic:
# Agent A completes work
git add src/api/*
git commit -m "feat(api): Add user endpoints #123"
git push origin epic/{name}
# Agent B starts work - MUST PULL FIRST
git pull origin epic/{name}
git add src/ui/*
git commit -m "feat(ui): Add dashboard #124"
git push origin epic/{name}
Create PR when epic is ready:
gh pr create --base main --head epic/{name} \
--title "Epic: {name}" \
--body "Closes #{epic-issue}"
Review and merge via GitHub/Azure DevOps UI
Clean up after merge:
git checkout main
git pull origin main
git branch -d epic/{name}
git push origin --delete epic/{name}
# Update main
git checkout main
git pull origin main
# Merge epic
git merge --no-ff epic/{name} -m "Merge epic: {name}"
git push origin main
# Clean up
git branch -d epic/{name}
git push origin --delete epic/{name}
# During pull
git pull origin epic/{name}
# If conflicts occur, Git will notify you
# View conflicts
git status
# Resolve conflicts in your editor
# Then mark as resolved
git add {resolved-files}
git commit -m "resolve: Merge conflicts in {files}"
git push origin epic/{name}
epic/{epic-name} (e.g., epic/authentication)feature/issue-{number} (e.g., feature/issue-123)bugfix/issue-{number} (e.g., bugfix/issue-456)hotfix/{description} (e.g., hotfix/security-patch)# List all branches
git branch -a
# Delete merged branches locally
git branch --merged | grep -v main | xargs -n 1 git branch -d
# Prune remote tracking branches
git remote prune origin
This Git strategy integrates seamlessly with:
# Ensure you have the latest changes
git pull origin epic/{name} --rebase
# Force push if necessary (use with caution!)
git push origin epic/{name} --force-with-lease
# Create a new branch with your changes
git branch epic/{name}
# Reset main to origin
git reset --hard origin/main
# Switch to your new branch
git checkout epic/{name}
# Stash current changes
git stash save "WIP: Description"
# Switch branches
git checkout other-branch
# Later, restore changes
git checkout original-branch
git stash pop
⚠️ IMPORTANT: Git worktrees are NO LONGER SUPPORTED in ClaudeAutoPM. All development must use the branch strategy described in this document.
If you have existing worktrees:
git worktree remove {path}The branch-based Git strategy provides:
This is the ONLY approved Git workflow for ClaudeAutoPM projects.
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/ai-integration-patternsPatterns and safety practices for integrating AI APIs (OpenAI, Gemini, LangChain): which agent to use, keys, rate limits, error handling. Use when adding code that calls an AI API./command-pipelinesThe exact command sequences for ClaudeAutoPM workflows (/context, /pm, testing, PRs). Use when choosing or chaining autopm slash commands for a workflow./context7-requiredShared policy for commands marked "Required Documentation Access": query Context7 documentation before the main workflow. Use when running a command that requires Context7 documentation access./context-optimizationHow to keep the main conversation context small by delegating to agents and summarizing results. Use when a task needs large file reads, log analysis or long multi-step work./datetimeHow to get and write real timestamps (ISO 8601 UTC from the system clock) in frontmatter and files. Use when creating or updating files that carry created/updated dates./development-workflowSystematic workflow for every development task: preparation, implementation, verification and commit. Use when starting an implementation task.npx claudepluginhub lagowski/claudeautopm --plugin coreOther plugins' skills for the same job