finishing-a-development-branch · Finishing a Development Branch

finishing-a-development-branch

Development-branch finisher: decides how to integrate finished work. Flow: verify tests green → detect environment (normal repo / named worktree / detached HEAD) → confirm the base branch → present options and wait for the user's choice → execute → clean up.

Options are strictly environment-bound: normal repos and named branches get "merge locally / push and open PR / keep as-is"; detached HEAD gets only "push as new branch and open PR / keep as-is" (no merge). Merged results must be re-tested before merging; discarding a branch requires the user to explicitly ask and type 'discard' to confirm.

Example invocation: "Implementation is done, tests pass — decide how to integrate."

Full brief

Positioning

finishing-a-development-branch is an integration decision-maker for development branches: it triggers only when implementation is complete and tests are green. It handles "how to integrate," not implementation.

Core capabilities

Workflow

  1. Verify tests (stop on failure)
  2. Detect environment (menu + cleanup strategy)
  3. Confirm the base branch
  4. Present options verbatim, wait for the choice
  5. Execute (merge / push PR / keep)
  6. Cleanup (worktree and branch, per rules)

Inputs & outputs

Input Notes
Development branch Implementation complete, tests green
Base branch Asked and confirmed when unknown

Output: integration result (merge done / PR URL / branch kept), or the discard confirmation flow.

Fit

Before you start


finishing-a-development-branch is part of the Aiglade Skill library. Invoke it from the Aiglade chat box in plain language.

← All 155 skills