deliver-feature
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):
- ✅ Invocation context verified: CWD is inside a linked worktree (not the main repo), and current branch is not the main branch
- ✅ Pre-flight clean: Current worktree has no uncommitted changes (
git status --porcelainempty) - ✅ Merge in main repo, not in worktree:
git -C <main-repo>used forpull/merge --no-ff/push; CWD remains the worktree throughout the merge - ✅ Push succeeded:
git push origin <main-branch>returns 0 before any cleanup is offered - ✅ User-controlled cleanup: User explicitly chooses keep / remove (with optional branch delete via
-donly); no implicit removal
More from nesnilnehc/ai-cortex
review-codebase
Review given file/dir/repo for current-state code organization: module boundaries, design patterns, cross-module dependencies, tech debt, and interface stability. Scope-only atomic skill; output is a findings list.
106review-vue
Review Vue 3 code for Composition API, reactivity, components, state (Pinia), routing, and performance. Framework-only atomic skill; output is a findings list.
94review-diff
Review only git diff for impact, regression, correctness, compatibility, and side effects. Scope-only atomic skill; output is a findings list for aggregation.
91review-java
Review Java code for language and runtime conventions: concurrency, exceptions, try-with-resources, API versioning, collections and Streams, NIO, and testability. Language-only atomic skill; output is a findings list.
84review-architecture
Review code for architecture: module and layer boundaries, dependency direction, single responsibility, cyclic dependencies, interface stability, and coupling. Cognitive-only atomic skill; output is a findings list.
83review-security
Review code for security: injection, sensitive data, auth, dependencies, config, and crypto. Atomic skill; output is a findings list.
74