/blueprint:flow-auto-wtfrom blueprint
Fully autonomous SDLC pipeline in an isolated git worktree — zero user intervention, zero git conflicts with other terminals. Creates a lightweight worktree (no Herd URL, no VS Code, no SSL), runs the full flow-auto pipeline inside it, and stops when the PR is ready for merge. Use this skill whenever the user says "/flow-auto-wt", "auto flow worktree", "parallel flow-auto", "flow-auto in worktree", or any request to run the autonomous pipeline in an isolated worktree. Also triggers on "isolated flow-auto", "worktree auto", "parallel auto", "run flow-auto in isolation", "don't touch my branch", "run in parallel", "parallel pipeline", or when running multiple flow-auto instances on the same repo. IMPORTANT: never use AskUserQuestion in this skill — all decisions are made autonomously.
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.
Run the full /flow-auto pipeline inside an isolated git worktree. Same zero-touch autonomy,
but each instance gets its own working directory so multiple pipelines can run on the same repo
without git conflicts.
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.
/flow-auto-wt <description>
→ worktree → plan → review → execute → check → PR → cleanup → DONE
Lightweight worktree (no Herd, no VS Code, no SSL). Just git isolation.
Zero AskUserQuestion calls. Zero pauses. One command → PR ready for merge.
Main repo working directory is NEVER modified.
Running 3+ /flow-auto instances on the same repo causes git conflicts — they share the same
working directory, index, and staged files. One agent's git add can pick up another's changes.
/flow-auto-wt solves this by creating a lightweight git worktree before running the pipeline.
Unlike /plan-wt, there's no Herd site, no VS Code window, no SSL setup — just git isolation.
| Variant | Isolation | Herd URL | VS Code | Use Case |
|---|---|---|---|---|
/flow-auto | None | No | No | Single pipeline, exclusive repo access |
/flow-auto-wt | Worktree | No | No | Parallel pipelines, shared repo |
/plan-wt | Worktree | Yes | Yes | Interactive development with browser testing |
git fetch + remote refs only./plan-approved — the coordinator never writes code.git worktree add.--keep-worktree to skip cleanup.echo "🤖 [flow-auto-wt:1] initializing autonomous worktree pipeline"
# Guard: refuse to run if already inside a worktree
TOPLEVEL=$(git rev-parse --show-toplevel 2>/dev/null)
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
COMMON=$(git rev-parse --git-common-dir 2>/dev/null)
GITDIR=$(git rev-parse --git-dir 2>/dev/null)
if [ "$COMMON" != "$GITDIR" ]; then
echo "ERROR: Already inside a worktree. Run from the main repo."
# STOP. Do NOT proceed.
fi
fi
~/.blueprint/bin/blueprint meta 2>/dev/null
If active plan exists with worktree field:
awaiting-approval or approved → Skip to Step 5 (execute)in-progress → Skip to Step 5 (resume)completed → Skip to Step 7 (PR)If no active plan: Continue to Step 2.
Parse $ARGUMENTS for:
#42) → store for PR body--from <stage> → jump to that stage--keep-worktree → skip auto-cleanup after PRecho "🤖 [flow-auto-wt:2] creating lightweight worktree"
CRITICAL: Do NOT checkout or pull in the main repo. Use git fetch + remote refs only.
REPO_NAME=$(basename "$PWD")
REPO_ROOT="$PWD"
PARENT_DIR=$(dirname "$PWD")
# Generate branch name from description
BRANCH="feat/$(echo "$DESCRIPTION" | tr ' ' '-' | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]//g' | head -c 50)"
# Worktree path: parent dir / .worktrees / repo-branch-slug
WORKTREE_SLUG=$(echo "$BRANCH" | tr '/' '-')
WORKTREE_PATH="${PARENT_DIR}/.worktrees/${REPO_NAME}-${WORKTREE_SLUG}"
# Ensure parent exists
mkdir -p "${PARENT_DIR}/.worktrees"
# Fetch latest from remote WITHOUT modifying main repo's HEAD or working directory
STAGING_BRANCH=$(grep 'staging_branch:' blueprint/.config.yml | awk '{print $2}')
STAGING_BRANCH=${STAGING_BRANCH:-staging}
BASE_BRANCH=$(git rev-parse --verify "origin/$STAGING_BRANCH" 2>/dev/null && echo "$STAGING_BRANCH" || echo "main")
git fetch origin "$BASE_BRANCH"
# Create worktree from remote ref — main repo state stays untouched
git worktree add -b "$BRANCH" "$WORKTREE_PATH" "origin/$BASE_BRANCH"
Worktree Gate — verify before continuing:
CURRENT=$(git worktree list | grep "$WORKTREE_PATH")
echo "Worktree: $CURRENT"
if [ -z "$CURRENT" ]; then
echo "ERROR: Worktree creation failed"
# STOP. Report failure. Do NOT proceed.
fi
Install dependencies (if applicable):
cd "$WORKTREE_PATH"
# PHP projects
[ -f "composer.json" ] && composer install --no-interaction 2>/dev/null || true
# Node projects
[ -f "package.json" ] && npm install 2>/dev/null || true
# Build assets (non-interactive, no dev server)
[ -f "vite.config.js" ] || [ -f "vite.config.ts" ] && npm run build 2>/dev/null || true
All subsequent steps run inside $WORKTREE_PATH.
echo "🤖 [flow-auto-wt:3] creating plan"
${CLAUDE_PLUGIN_ROOT}/skills/plan/references/plan-template.md (plugin install) or ~/.claude/skills/plan/references/plan-template.md (traditional install) for the plan formatmcp__sequential-thinking__sequentialthinking to analyze the taskblueprint/live/NNNN-feat-description.md
worktree: $WORKTREE_PATH in frontmatter${CLAUDE_SESSION_ID} in YAML sessions: and Work Sessions blockgit add blueprint/ && git commit -m "📋 plan: create NNNN-description"
echo "🤖 [flow-auto-wt:4] reviewing plan"
${CLAUDE_PLUGIN_ROOT}/skills/plan-review/references/team-execution.md (plugin install) or ~/.claude/skills/plan-review/references/team-execution.md (traditional install)mcp__sequential-thinking__sequentialthinking to validate[H]/[S]/[O] complexity## Execution Strategy sectionApproved, set progress countersgit add blueprint/ && git commit -m "📋 plan: review NNNN-description"
echo "🤖 [flow-auto-wt:5] executing plan"
Same as flow-auto Step 4:
In Progressgit add blueprint/ && git commit -m "✨ feat: complete NNNN-description"
echo "🤖 [flow-auto-wt:6] auditing implementation"
Same as flow-auto Step 5:
~/.blueprint/bin/blueprint context --diffsgit add blueprint/ && git commit -m "🧹 chore: plan check NNNN"
echo "🤖 [flow-auto-wt:7] creating pull request"
STAGING_BRANCH=$(grep 'staging_branch:' blueprint/.config.yml | awk '{print $2}')
STAGING_BRANCH=${STAGING_BRANCH:-staging}
git rev-parse --verify "origin/$STAGING_BRANCH" 2>/dev/null && echo "$STAGING_BRANCH" || echo "main"
git push -u origin "$BRANCH"
~/.blueprint/bin/blueprint contextgh pr createecho "🤖 [flow-auto-wt:8] starting review loop"
Do NOT rationalize skipping this step. The pre-check below is the ONLY valid reason to skip. "The fix is small" or "tests already pass" are NOT valid skip reasons.
Valid skip paths:
--no-review is explicitly present in $ARGUMENTSif echo "$ARGUMENTS" | grep -q '\-\-no-review'; then
echo "🤖 [flow-auto-wt:8] skipping review loop — --no-review flag set"
# Jump directly to Step 9
fi
CLAUDE_ACTION=$(gh api repos/{owner}/{repo}/actions/workflows --jq '.workflows[] | select(.name | test("claude|Claude|CLAUDE")) | .id' 2>/dev/null)
if [ -z "$CLAUDE_ACTION" ]; then
echo "🤖 [flow-auto-wt:8] skipping review loop — no @claude GitHub Action detected"
# Jump directly to Step 9
fi
If the workflow exists, run at least 1 review cycle. Max 3 iterations:
gh pr comment "$PR_NUM" --body "@claude review this PR and check if we are able to merge. Analyze the code changes for any issues, security concerns, or improvements needed."echo "🤖 [flow-auto-wt:9] pipeline complete — cleaning up and posting report"
Auto-cleanup worktree (all code is safely on remote branch now):
cd "$REPO_ROOT" # Return to main repo
# Remove worktree (code is safe on remote branch)
if [ -z "$KEEP_WORKTREE" ]; then
git worktree remove "$WORKTREE_PATH" --force 2>/dev/null || true
git worktree prune
echo "Worktree cleaned up: $WORKTREE_PATH"
else
echo "Worktree kept (--keep-worktree): $WORKTREE_PATH"
fi
Post PR comment with final report:
gh pr comment "$PR_NUM" --body "$(cat <<'EOF'
## 🤖 Autonomous Pipeline Complete — Opus 4.6 Final Report
### Summary
- **Plan:** NNNN-description
- **Phases:** N phases, M tasks — all completed
- **Review cycles:** N iterations
- **Commits:** X commits on this branch
### What was built
- [bullet summary of each phase's deliverables]
### Test status
- [targeted test results from execution]
- ⚠️ Run full test suite before merging
### Recommendations
- [any concerns, edge cases, or things to verify]
### Next steps
1. Review the PR
2. Run full test suite to verify
3. Run `/finish` to merge and rename plan
---
*Generated by /flow-auto-wt — Blueprint SDLC*
EOF
)"
echo "🤖 [flow-auto-wt:10] done"
🤖 Flow Auto WT Complete!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Plan: NNNN-description
Branch: feat/description
PR: #NNN — <title>
URL: <pr-url>
Review: N cycles
Worktree: Cleaned up (code safe on remote)
Status: Ready for human review
Next: /finish to merge PR and rename plan
Run full test suite to verify before merging.
STOP. Pipeline complete. Do NOT merge.
The user will run /finish to merge the PR and rename the plan file.
git fetch + remote refs only--keep-worktree to skip)--from <stage>: Start from specific stage--no-review: Skip the review loop--max-cycles N: Override max review cycle count (default: 3)--no-install: Skip composer/npm install in worktree--keep-worktree: Do not auto-cleanup worktree after PR creationUse $ARGUMENTS as the task description, GitHub issue ID, or flags.
What SKILL.md sets; muted values are Claude Code's defaults
27 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.
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-blueprint