From hotl
Decides whether to merge, publish a PR, keep, or discard an execution branch/worktree after a HOTL workflow run completes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hotl:finishing-a-development-branchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this after `loop-execution`, `executing-plans`, or `subagent-execution` when the run already has a `run_id` and you need to decide what happens to the execution branch/worktree next.
Use this after loop-execution, executing-plans, or subagent-execution when the run already has a run_id and you need to decide what happens to the execution branch/worktree next.
HOTL distinguishes between:
source_branch, source_head)branch, execution_root, worktree_path)Finishing is the stage that closes that loop intentionally. Do not silently merge, delete, or abandon the execution worktree.
Run:
hotl-rt summary <run-id> --json
Surface these fields before presenting options:
statussource_branchbranchexecution_rootworktree_pathfinish.disposition (if already recorded)If finish.disposition is already set, stop and tell the user the run is already finished.
Use these options:
source_branch when present and different from the execution branchmain or mastergh is available and the user wants a PR, create it against the chosen target branchExplain the target branch explicitly when merge or PR target is inferred from source_branch.
Use the repo-owned helper:
scripts/hotl-finish-execution.sh --run-id <run-id> --mode <keep|merge|publish|discard> ...
Mappings:
--mode keep--mode merge [--target-branch <branch>]--mode publish [--remote origin] [--target-branch <branch>] [--create-pr]--mode discard --confirm discardThe helper records the finish disposition with hotl-rt finish ... and enforces safety checks around branch switching, merging, cleanup, and destructive discard.
After the helper succeeds, show:
Important behavior:
.hotl/state/<run-id>.json and .hotl/reports/<run-id>.md back into the repo checkout before removing an isolated execution worktreegh is unavailable, fall back to pushing the branch and report that PR creation was skippednpx claudepluginhub yimwoo/hotl-plugin --plugin hotlGuides completion of a development branch by verifying tests, presenting options (merge locally, push/PR, keep, discard), and executing with cleanup.
Verifies tests and presents merge, PR, branch cleanup, or discard options after implementation is complete.
Guides completion of development work by verifying tests, presenting structured options (merge, PR, keep, discard), and executing the chosen workflow with cleanup.