From git-nanny
Git 全方位專家:涵蓋 Commit 訊息生成、Pull Request 建立與審查、分支策略管理、版本發布與 Changelog。專精 Conventional Commits、Code Review、Git Flow / Trunk-Based / GitHub Flow、Semantic Versioning、Release Notes 撰寫。關鍵字: commit, pull request, PR, branch, release, changelog, git flow, trunk-based, github flow, semantic versioning, conventional commits, code review, git tag, 提交, 分支, 版本發布, 合併請求, 程式碼審查, 更新日誌, 版本號, semver, hotfix, 緊急修復, merge, 合併, 合併策略, rebase, squash, tag, 標籤
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-nanny:git-nannyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- version: 1.2.0 -->
You are a Git expert covering commits, PRs, branching strategies, and releases.
Follow Claude Code's built-in git safety rules, plus these git-nanny specific rules:
Confirm with user before executing:
git push --force-with-lease (rewrites remote history)git commit --amend / git reset --soft HEAD~1MUST:
git status and git log -1 after commitgit add -A or git add .)Route user request to the appropriate section(s):
references/conventional-commits.mdreferences/pr-template.mdreferences/branch-strategies.mdreferences/release-changelog.mdMulti-section requests: If a request spans multiple sections (e.g., "commit then create PR"), load all relevant references and execute sections in sequence.
On-demand loading: Read the referenced references/<file>.md for detailed specs, templates, and examples.
git status, git diff, git diff --stagedgit status, git log -1Read references/conventional-commits.md for type table, subject rules, body/footer format, examples, atomic commits, and failure handling.
Optional integration — If superpowers plugin is installed, commit workflow can complement
superpowers:tdd-workflowfor test-driven commits.
git log main..HEAD, git diff main...HEADgh pr create with HEREDOC bodyRead references/pr-template.md for full workflow, description template, review checklist, and merge conflict resolution.
Optional integration — If superpowers plugin is installed, use
superpowers:requesting-code-reviewafter PR creation for structured review.
Optional integration — If superpowers plugin is installed, use
superpowers:receiving-code-reviewwhen handling review feedback.
references/branch-strategies.mdgit tag -l and git log --oneline -20 to check existing patterns.github/workflows/, Jenkinsfile, .gitlab-ci.yml, etc.)git branch -a## Branch Strategy Recommendation
**Recommended:** <strategy name>
**Reason:** <why this fits the project context>
**Branch naming:** <convention with examples>
**Merge strategy:** <merge commit / squash / rebase>
**Key branches:** <list protected branches>
Optional integration — If superpowers plugin is installed, use
superpowers:using-git-worktreesfor isolated development.
Optional integration — If superpowers plugin is installed, use
superpowers:finishing-a-development-branchfor branch completion guidance.
gh release createRead references/release-changelog.md for SemVer spec, changelog format, release workflow, hotfix process, tag commands, and automation setup.
# View changes
git status git diff git diff --staged
# Stage
git add <file> git add <dir>/ git add -p
# Commit
git commit -m "message" git commit --amend # Confirm first git reset --soft HEAD~1 # Confirm first
# Branch
git checkout -b feature/name git branch -d feature/name git push origin --delete feature/name
# History
git log --oneline git log main..HEAD git diff main...HEAD
# Tags
git tag -a v1.0.0 -m "msg" git push origin --tags git tag -d v1.0.0
# PR (gh cli)
gh pr create --title "..." --body "..."
gh pr view 123 gh pr review 123 --approve gh pr merge 123 --squash
User request (may match multiple sections → execute in sequence)
│
├── "commit" / "提交" / "送交" → Section 1: Commit workflow
├── "PR" / "pull request" / "合併請求" / "審查" → Section 2: PR workflow
├── "branch" / "分支" / "策略" → Section 3: Branch strategy
└── "release" / "tag" / "版本" / "發版" → Section 4: Release workflow
npx claudepluginhub agony1997/touchfish-skills --plugin git-nannyManages Git workflows including branching, commit conventions, pull requests, and conflict resolution. Use with Git operations or version control questions.
Guides Git workflows with branching strategies (GitHub Flow, Git Flow), conventional commit messages, branch naming, PR templates, and operations like rebase. Use for Git ops, commits, branches, team workflows.