deliver-feature

Installation
SKILL.md

Skill: deliver-feature

Purpose

Lands the current worktree's feature branch onto main without requiring the user to switch directories. Operates the main repo via git -C <main-repo> so the user keeps working in their feature worktree until they explicitly choose to leave it. Eliminates the round trip: cd to main repo → invoke batch tool → select just-finished branch → cd back.


Core Objective

Primary goal: Deliver the current worktree's feature branch onto main (via --no-ff merge), push to origin, and let the user decide whether to keep or remove the worktree — all without leaving the worktree directory.

Success Criteria (all must be satisfied):

  1. Invocation context verified: CWD is inside a linked worktree (not the main repo), and current branch is not the main branch
  2. Pre-flight clean: Current worktree has no uncommitted changes (git status --porcelain empty)
  3. Merge in main repo, not in worktree: git -C <main-repo> used for pull / merge --no-ff / push; CWD remains the worktree throughout the merge
  4. Push succeeded: git push origin <main-branch> returns 0 before any cleanup is offered
  5. User-controlled cleanup: User explicitly chooses keep / remove (with optional branch delete via -d only); no implicit removal
Related skills
Installs
4
GitHub Stars
7
First Seen
6 days ago