Creates local Git feature or hotfix branches with short, readable names. Classifies intent (suggest vs. create) and applies naming conventions.
Ships in adonis-skills. 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.
Read when SKILL.md points to them.
Create a local Git branch with a short, readable name:
feat/<slug> for normal feature workhotfix/<slug> for urgent fixes or production-impacting repairsThree qualities define a good run, in this order:
Classify intent first: suggest a name when asked for naming; create when the user asks to create a branch. Reuse authorization already given in the conversation. Ask only when the starting point, ownership of existing changes, or requested action remains unclear after local inspection.
Use this skill when the user says things like:
Do not use this skill for:
Pick one prefix:
feat/ for new features, non-urgent product changes, refactors tied to a feature, UI improvements, and planned work.hotfix/ for urgent fixes, production breakages, release-blocking fixes, payment/auth/data-loss fixes, or when the user explicitly says hotfix.If urgency is unspecified, use feat/ and state that assumption. Reserve hotfix/ for urgency or release pressure. Preserve an explicitly requested prefix.
Preserve an exact user-provided branch name if Git accepts it; the naming preferences below apply only when generating a name. Generate the part after the slash from the user's task:
track:gen, paid-success, pricing-table), derive the slug from it (track-gen) instead of re-describing the task in fresh English (tracker-code-generation). The team greps, tab-completes, and recognizes branches by the words they already use, so a shorter borrowed name is also the more accurate one. Do not go searching the repo for vocabulary — only reuse terms already visible in the request or conversation.add, update, fix, new, page, feature, code, logic, issue, support.Tightening examples — the "loose" names are what to avoid:
| Task | Loose (too long) | Tight |
|---|---|---|
改埋点代码的生成方式(项目里有 track:gen) | feat/tracker-code-generation | feat/track-gen |
| 登录后跳转修复 | feat/fix-login-redirect-issue | feat/login-redirect |
| 线上支付确认弹窗崩溃 | hotfix/payment-confirmation-modal-crash | hotfix/pay-confirm |
| pricing 页面多币种支持 | feat/pricing-multi-currency-support | feat/pricing-currency |
For generated names, use this safe character set: letters a-z, numbers 0-9, hyphen -, one slash between prefix and slug. Avoid spaces, uppercase, underscores, dots, quotes, emoji, shell metacharacters, consecutive slashes, and Git-reserved sequences such as .. or @{.
Speed matters here: every extra shell command is a round trip the user waits through, and git ls-remote is a network round trip that can take seconds. The common case needs one inspection call and one creation call. Additional checks are justified for an explicit base ref, an interrupted Git operation, or an ambiguous checkout; the call count is a fast path, not a safety limit.
git status --short --branch
For the common case, this tells you the needed checkout state: it errors if the directory is not a Git repository (stop and tell the user), the ## ... line shows the current branch, and any remaining lines show uncommitted changes. Do not also run git rev-parse, git branch --show-current, git show-ref, or any remote query during the proposal step.
A dirty working tree is not a blocker when branching from the current HEAD: git switch -c carries the changes onto the new branch. Mention it in one clause and continue. If the user names another base, resolve it locally first; do not substitute HEAD, discard changes, or fetch silently. Stop for conflicts or an in-progress merge/rebase. Ask for a starting branch when HEAD is detached and the intended base is unclear.
For a name or command suggestion, reply briefly in the user's language, for example:
推荐分支:feat/track-gen
命令:git switch -c feat/track-gen
原因:<one sentence covering both prefix and slug choice>
(当前 main,工作区干净)
The final line compresses the repository state into one parenthetical. Do not output a checklist that reports each individual check on its own line (格式 / 本地同名 / 远端同名 / …) — that is slower to produce and slower to read, and the checks happen at creation time anyway.
If the user's intent is too vague to name well, ask one concise question instead of proposing. Good branch names depend on small scope.
An explicit request such as "帮我创建一个分支做登录跳转" or "create a branch for pricing" is sufficient authorization; it does not need "直接" or a second confirmation. State the chosen name, then create from the verified starting point. A request only to suggest a name does not authorize checkout changes.
If the user confirms a branch you already proposed in the previous turn, use that exact branch name unless the user asks to change it. Do not regenerate the slug.
git check-ref-format --branch <branch-name> && git switch -c <branch-name>
For creation from the verified current HEAD, no duplicate collision pre-check is needed: git switch -c itself fails cleanly if the branch already exists — handle that by offering git switch <branch-name> instead. If git check-ref-format rejects an exact user-provided name, report that result and ask for a replacement; do not silently rename it. For a generated name, simplify and retry validation once. Pass names as quoted arguments or an argument array, never as interpolated shell code. Skip the remote-collision check by default: it costs a network round trip, and a collision surfaces harmlessly at push time anyway. Run git ls-remote --heads origin <branch-name> only if the user explicitly asks about the remote.
Never push, commit, rebase, merge, delete branches, or create a PR/MR as part of this skill.
已创建并切换:feat/track-gen(原 master)
未提交的改动已随分支带过来。
The parenthetical reports the previous branch only. The second line appears only when the working tree was dirty. If creation fails, quote the failing command and the relevant error line, then suggest the smallest safe next step.
A good result is boring, fast, and short:
What SKILL.md sets; muted values are Claude Code's defaults
/adonis-skills:branch-creatorfrom adonis-skills
npx claudepluginhub adonis0123/adonis-skills --plugin adonis-skills34 skills in this plugin
/agent-dispatchPick the lightest agent setup for coding, review, drafting or design research: do it yourself, fan out 2-3 workers across local CLIs and accounts (Claude Code, Codex, Grok, Cursor), run a scoped architecture loop, or brief independent researchers; choose a cross-model reviewer and track dispatched work on a Run Board. Use when work may need delegation, or the user asks to dispatch, parallelize, run several agents or accounts, get another AI's review or independent design opinions, or check dispatched work. 中文触发:派活、并行、多开几个 agent、分给多个账号 / codex / grok、找另一个 AI 审、多方意见、派出的任务进行到哪了。Not for trivial edits, a single diff review (agentic-review-handoff) or the session list (sideby sessions); inside another named workflow, only size its workers./agentic-review-handoffValidate review findings, run auto Git review-fix-re-review loop, DecisionConsult, or DDD/cohesion review. Requires Git & review/consult intent./agent-practice-auditScore local coding-agent usage (Claude/Codex/Grok/WorkBuddy/agy) against official docs into HTML report. Triggers: agent 用法体检、实践评分. Never edits config./agent-skill-evaluationUse when comparing or trial-testing agent skills before installing — including GitHub/skills.sh URLs, 测试一下/值不值得装, package screening, and A/B artifact runs./agent-symlink-initInitialize or migrate agent-skill symlinks in any repository for Claude Code, Codex, Cursor, and Antigravity (agy) / Gemini setups. Use when a project needs `.claude/skills` linked to `.agents/skills`, `AGENTS.md` linked to `CLAUDE.md`, checks for `GEMINI.md` or `.agents/skills.json`, migration away from `.ruler`-based AI rules, or removal of legacy `sync-llm-skills` copy/sync setups. Trigger on requests about Claude, Codex, Cursor, or Antigravity (`agy`) / Gemini skill symlinks, AGENTS/CLAUDE/GEMINI rule links, `.claude/skills` setup, replacing copied skill folders with symlinks, or cleaning old ruler/sync automation./architecture-hardening-loopRun bounded architecture scan-triage-fix-review-rescan loop on explicit code scope until no evidence-backed DDD/cohesion fixes remain.Other plugins' skills for the same job