/blueprint:completefrom blueprint
Clean up worktree after PR merge — only needed for /plan-wt flows. Use this skill whenever the user says "/complete", "clean up worktree", "remove worktree", "delete the worktree", "worktree cleanup", or any request to clean up after a worktree-based feature is merged. For standard /plan flows, /finish handles everything — /complete is a no-op. Detects environment automatically and skips if nothing to clean up.
Ships in blueprint. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read blueprint/.config.yml → language. If auto, detect from the user's messages. All generated content MUST be in the detected language. Skill instructions stay in English — only output changes.
Clean up after a PR has been merged. Only needed for worktree flows (/plan-wt).
For standard /plan flows, /finish already handles everything. This command detects the environment and skips if there's nothing to clean up.
Standard: /plan → ... → /finish ✅ (done)
Worktree: /plan-wt → ... → /finish → /complete (run from main repo terminal)
Single bash call to detect worktree, check PR status, and run safety checks:
IS_WORKTREE=$(git rev-parse --git-dir 2>/dev/null | grep -q "worktrees" && echo "yes" || echo "no")
CURRENT_BRANCH=$(git branch --show-current)
echo "worktree=$IS_WORKTREE branch=$CURRENT_BRANCH"
# If in worktree: check PR merged + safety
if [ "$IS_WORKTREE" = "yes" ]; then
gh pr list --head "$CURRENT_BRANCH" --state merged --json number --jq '.[0].number' || echo "NO_MERGED_PR"
git diff --quiet && git diff --cached --quiet && echo "clean" || echo "ERROR: uncommitted changes"
STAGING_BRANCH=$(grep 'staging_branch:' blueprint/.config.yml | awk '{print $2}')
[[ "$CURRENT_BRANCH" =~ ^(main|master|develop)$ ]] || [[ "$CURRENT_BRANCH" == "$STAGING_BRANCH" ]] && echo "ERROR: protected branch" || echo "branch_safe"
fi
Check for leftover branches. If none, report "Nothing to clean up" and STOP.
STOP. NEVER delete branches of unmerged PRs.
STOP with error.
Use AskUserQuestion to confirm: "Will remove worktree at [path], delete branch [name] locally and remotely. Proceed?"
MAIN_REPO=$(git worktree list | head -1 | awk '{print $1}')
WORKTREE_PATH=$(pwd)
cd "$MAIN_REPO"
git fetch --all --prune
git checkout "$BASE_BRANCH" && git pull origin "$BASE_BRANCH"
git worktree remove "$WORKTREE_PATH"
git worktree prune
git branch -d "$BRANCH" 2>/dev/null || git branch -D "$BRANCH"
git push origin --delete "$BRANCH" 2>/dev/null || true
Run git worktree list and confirm the removed worktree path no longer appears in the output. If it still appears, run git worktree prune again and re-check. Only proceed to report once the worktree is confirmed gone.
REMAINING=$(git worktree list)
echo "$REMAINING"
echo "$REMAINING" | grep -q "$WORKTREE_PATH" && echo "ERROR: worktree still present" || echo "VERIFIED: worktree removed"
If verification fails, report the error and STOP — do not claim success.
If verified:
Cleanup complete!
Removed: [worktree path], branch (local + remote)
Current: [main repo path] on $BASE_BRANCH
Remaining worktrees: [list from verification output]
-d (safe delete) when possibleblueprint/.config.yml), or developAskUserQuestion tool, never plain text questionsUse $ARGUMENTS for any additional context.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (skaisser/blueprint-plugin) — no native marketplace selected
npx claudepluginhub p/skaisser-blueprint27 skills in this plugin
/address-prFetch PR review comments, categorize feedback, implement fixes, and push. Use this skill whenever the user says "/address-pr", "address review", "fix review comments", "handle PR feedback", or any request to implement fixes based on PR review feedback. Also triggers on "fix the review", "address feedback", "implement review changes", "implement the requested changes", or "handle review comments". Fetches real comments via blueprint pr-review.
/backlogCapture, manage, and promote pre-planning ideas before they become full plans. Use this skill whenever the user says "/backlog", "add to backlog", "backlog idea", "capture this idea", "save this for later", "I had an idea", or any request to manage the idea backlog. Also triggers on "list ideas", "promote idea", "backlog list", "drop idea", "mark done", "what's in the backlog", "show me the ideas", "pending ideas", or any request to add/view/promote/done/drop items in blueprint/backlog/. The backlog is the pre-planning stage — ideas live here until promoted to /plan. Even if the user doesn't explicitly say "backlog", trigger when they describe wanting to capture a feature idea, task, or improvement for later without implementing it now. This skill is the gateway to the SDLC — nothing gets planned or built without first passing through the backlog.
/batch-flowExecute multiple plans sequentially in a single session — loops flow-auto for plans N through M with auto context compaction, merge chain automation, and crash recovery. Use this skill whenever the user says "/batch-flow", "batch flow", "run plans 2 to 6", "execute all plans", "sequential plans", or any request to run multiple plans in one session. Also triggers on "multi-plan", "batch execute", "run remaining plans", "plans N through M", "batch pipeline", "run plans 3 4 and 5", "I have N plans to execute", or "execute plan N through plan M". This is the multi-plan wrapper around /flow-auto. IMPORTANT: never use AskUserQuestion in this skill — all decisions are made autonomously.
/bp-branchCreate a new feature branch following type/kebab-case conventions. Triggers on "/bp-branch", "/branch", "create branch", "new branch", "make a branch", or any request to create a git branch. Also triggers on "checkout new branch", "start a branch", "feature branch", "I need a new branch", or "branch for [something]". Uses type/description format: feat/feature-name, fix/bug-name, etc.
/bp-commitCommit current changes following emoji+type conventions with code formatting. Triggers on "/bp-commit", "/commit", "commit this", "commit changes", "save my changes", or any request to create a git commit. Also triggers on "stage and commit", "commit with message", "make a commit", "let's commit", or "save this progress". Do NOT trigger when the user also mentions pushing — route to /bp-ship instead. Runs code formatting on changed files before committing.
/bp-contextScan project and generate/audit CLAUDE.md files with stack auto-detection and Context7 docs. Triggers on "/bp-context", "/context", "generate context", "audit CLAUDE.md", "scan project", or any request to create or update CLAUDE.md documentation files. Also triggers on "brownfield", "onboard project", "onboard this project", "onboard existing project", "scan existing project", "update context docs", "context scan", "check CLAUDE.md", "stale documentation", or "refresh project docs". Runs parallel workers per directory. Also audits README.md for staleness.