b-pipeline
A dual-harness agent plugin (Claude Code and pi) that drives a GitHub issue all the way to a merged pull request — triage → isolated worktree → build → screenshots → commit → draft PR → code review → gated merge — by chaining a set of small, focused skills.
It is built for SvelteKit projects (Remote Functions, Svelte 5 runes, Drizzle, shadcn-svelte) and keeps a human in the loop at the points that matter: nothing complex gets built, and nothing ever merges, without a person saying yes.
The build doctrine is enforced end to end, not aspirational: Remote Functions for every data access (no load() with data, no event.fetch, no API indirection — db.transaction inside the remote function for multi-table writes), shadcn-svelte as the design standard (pattern → component table, semantic tokens, no native confirm()/crude colors), and measurable concision rules (zero comments except // ponytail:, split thresholds, lazy building) — b2 builds with it, b6 reviews against it, and the same rules drive b-setup-or-fix migrations.
Throughout this plugin, "task" = GitHub issue. The two terms are used interchangeably.
Table of contents
- What it does
- How it works (mental model)
- Prerequisites
- Installation, step by step
- Quick start
- The skills at a glance
- The pipeline, step by step
- Orchestrators and their flags
- Human gates
- Labels the pipeline uses
- Artifacts it produces
- Safety features
- Recovery and idempotency
- Using individual skills
- Troubleshooting
1. What it does
You give it an issue number. It:
- Triages the issue (labels it, evaluates complexity, asks for missing info).
- Creates an isolated git worktree so your main checkout is never touched.
- Builds the feature screen by screen, verifying each one in a real browser.
- Commits with conventional-commit messages.
- Opens a draft PR with release notes, technical changes, and screenshots.
- Runs an automated code review across five areas.
- With a clean review, merges, closes the issue, and cleans up the worktree — you asked for the issue to be resolved, so it finishes. It only stops for what it cannot settle alone (blockers, conflicts, failing CI, a manual validation).
It runs unattended where it is safe to do so, and stops and asks where judgement is required (complex builds, every merge).
Don't have the issues yet? Start one step earlier with b0-conversation-to-issues: it turns the current conversation (a design chat, a brainstorm, a plan) into well-scoped GitHub issues, sliced one wave per screen (remote → ui → tests, docs per screen), ordered by dependency, and grouped under an epic — the exact shape b10-ship --epic drains. It verifies what you really want before creating anything. You can even invoke it with nothing but a raw idea: design mode interviews you one question at a time (recommended answer included, codebase facts looked up instead of asked), keeps a living design doc in docs/plans/, and only converts to issues once the plan converges.
2. How it works (mental model)
A few ideas explain the whole design: