Finishing a development branch

From J-Pster/Psters_AI_Workflow · View interactive version

Finishing a development branch is an AI agent skill from the GitHub repository J-Pster/Psters_AI_Workflow. Use when implementation is complete to close branch/worktree with a disciplined decision flow (merge, PR, keep, discard) plus cleanup.

How to use this skill

Skill file

Finishing a Development Branch

Use this at the end of implementation to close work cleanly and avoid abandoned branches/worktrees.

Step 1: Verify before finish

Run relevant verification commands first (build/lint/repro command as applicable). Do not proceed with failing verification.

Step 2: Present exactly 4 options

  1. Merge locally into base branch
  2. Push and create PR
  3. Keep branch/worktree for later
  4. Discard branch/worktree

Step 3: Execute chosen path safely

Step 4: Worktree cleanup rules

Expected output

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.