/dev-team:branch-workflowfrom dev-team
Creates PRs, manages merge strategy, and cleans up branches after implementation approval. Handles worktree lifecycle and presents four merge options.
Ships in dev-team. 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.
Role: worker. This command performs PR creation, merge, and branch cleanup directly via git/gh commands.
The three-phase workflow ends at the Phase 3 human gate. This skill formalizes what happens after approval: PR creation, merge decision, and branch cleanup. Without this, branches linger and merge conflicts accumulate.
Before creating the PR, verify:
/code-review passed or warnings are documentedAfter confirming the base branch, present exactly four choices. If this session entered a worktree via EnterWorktree for this branch, each option's cleanup step is performed with the paired ExitWorktree call below — never raw git worktree remove. If no worktree was entered via EnterWorktree (branch-workflow can also run directly in the primary checkout), the ExitWorktree steps are a no-op — skip them.
ExitWorktree(action="remove"). In a lane, run the tests on the composed tree, then lane integrate, which replaces this option; see Lanes versus pull requestsgh pr create. Once the PR is opened, call ExitWorktree(action="keep") so the worktree persists on disk while the session's CWD bookkeeping is closedExitWorktree(action="keep") immediately after the option is confirmed — do not leave the worktree silently "entered" for the rest of the sessionExitWorktree(action="remove", discard_changes=true)Before performing the checkout/merge that Option 1 ("Merge locally") requires, verify the working tree is safe to switch:
git status --short, or the worktree-tool equivalent) covering the feature branch's tree. This surfaces both tracked changes (modified/staged) and untracked files — not just tracked ones.This step applies only to the branch/worktree switch Option 1 performs. It does not replace or duplicate the Pre-PR Checklist's "Branch is rebased on latest main" item (§1) — that is a rebase-currency check performed earlier, not a dirty-tree check performed at the moment of switching. It also does not modify Post-Merge Verification & Cleanup (§5), which handles branch/worktree deletion after the merge, not the switch before it.
| Situation | Strategy | Why |
|---|---|---|
| Single logical change, clean history | Squash merge | One commit tells the story |
| Multiple logical changes that should stay separate | Merge commit | Preserves the history of each change |
| Long-lived branch with many commits | Squash merge | Reduces noise in main history |
| Experimental/spike work | Squash merge | The journey doesn't matter, only the result |
Default: squash merge unless the human specifies otherwise.
EnterWorktree for this branch, call ExitWorktree(action="remove") for options 1 and 4 (never raw git worktree remove); options 2 and 3 use ExitWorktree(action="keep") as described in Section 3. If no worktree was entered via EnterWorktree, this step is a no-op.git worktree list and git branch should show nothing for the deleted branchUse a lane for repositories without PRs. A lane is a linked worktree and branch from the /lane skill. lane integrate fast-forwards local trunk only when the reviewed tree, the review gate, and the trunk commit still match. It removes the lane worktree and branch, and it never pushes.
Use /pr for GitHub repositories. lane integrate refuses when origin is on GitHub. To integrate locally anyway, pass --local-trunk.
A merged PR with clean branch history, closed issues, and deleted feature branch.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bdfinst/agentic-dev-team --plugin dev-team103 skills in this plugin
/adr-toolsCreate and manage Architecture Decision Records using the npryce adr-tools CLI. Use when the user asks to "add an ADR", "record this decision", "create an ADR", "supersede ADR N", "link ADRs", "generate the ADR table of contents", or any request involving the `adr` command. Pairs with the adr-author agent — this skill is the mechanics (commands, files, links); adr-author is the decision framework (when an ADR is warranted) and the prose authoring./agent-auditAudit code-review agents, skills, and hooks for structural compliance. Use this when adding or modifying any agent, skill, or hook file, or for a periodic health check of the toolkit. Trigger phrases: "audit the agents", "check compliance", "validate the skills", "are the agents correct", or any time agent/skill files change./Other plugins' skills for the same job