One subagent pipeline for every project: manager → coder →
tester ∥ code-reviewer ∥ ponytail-review → qa-mr, plus the run-task
skill that drives it.
The agents hold only the generic workflow; everything project-specific comes
from a ## Pipeline contract section in each project's CLAUDE.md.
claude-plugins/ # marketplace "gronck-local" (GitHub Gronck2/claude-plugins)
├── .claude-plugin/marketplace.json
└── plugins/dev-pipeline/
├── .claude-plugin/plugin.json
├── agents/{manager,coder,tester,code-reviewer,qa-mr}.md
└── skills/{run-task,setup-project}/SKILL.md
code-reviewerwrites caveman-style (terse one-liners<file>:L<line>: <severity>: <problem>. <fix>.) and ends withREVIEW_CLEANorREVIEW_FINDINGS: <n>.- Findings are mandatory to fix. Rounds 1 and 2: the main thread sends every
finding back to
coderwithout asking. Round 3:🔵 nitfindings are always skipped; every other finding is put to the user (fix / follow-up / accept). - Every
code-reviewerpass is the next round, whatever triggered it. Review rounds count toward the cap of 3 retry cycles per task.
The ponytail plugin
(ponytail@ponytail) is a dependency and installs with dev-pipeline (see
Install). The pipeline uses it to check for code that shouldn't exist:
coderandtesterfollow ponytail's smallest-complete-change rules. The key rules are copied into the agents, so they apply without the plugin too.run-taskinvokes theponytail-reviewskill itself (inline, findings only) on the same diff ascode-reviewer, whiletesterandcode-reviewerrun. Its Must fix / Should fix findings go into the samecoderfix cycle and round ascode-reviewer's; Nice to have findings never block and are listed in the final report.qa-mrgets the ponytail-review result and fails the gate if a Must/Should finding is still open (not fixed and not accepted by the user).- Without the plugin the step is skipped with
ponytail-review: skipped (not installed)in the report; nothing else changes.
Run it in the repo. It inspects the stack, CI and branches, proposes the
## Pipeline contract (gate commands checked by running them), and after your
confirmation writes it into CLAUDE.md, adds the docs skeleton
(docs/tasks, docs/plan, docs/adr, docs/arch/overview.md) and the first
ADR, flags same-named .claude/agents/ copies that would shadow the plugin, and
offers a develop branch. It pushes or opens a PR only after you say yes.
Stack detection: CI commands first, then what the project declares (scripts,
Makefile targets, tool configs), then a built-in stack table (Python uv/Poetry/
pip, JS/TS pnpm/yarn/npm/bun, Go, Rust, Java/Kotlin, .NET, Ruby, PHP) as marked
guesses; every gate command is run once before it is written. An empty repo
gets a short survey with a recommended toolset (and optional scaffolding); a
monorepo gets per-part gate commands (directory → commands), which coder,
tester and qa-mr run only for the parts a diff touches.
The marketplace is the private GitHub repo Gronck2/claude-plugins; git
clones it with the machine's own credentials (SSH key or gh auth setup-git).
ponytail comes from another marketplace, which a dependency does not add by
itself, so add it first:
claude plugin marketplace add DietrichGebert/ponytail
claude plugin marketplace add Gronck2/claude-plugins # registers as "gronck-local"
claude plugin install dev-pipeline@gronck-local # --scope user is the default; pulls ponytail@ponytail
claude plugin list # dev-pipeline and ponytail ✔ enabledplugin.json declares "dependencies": ["ponytail@ponytail"] and
marketplace.json allows it with allowCrossMarketplaceDependenciesOn.
Without the ponytail marketplace, dev-pipeline installs but fails to load
("Dependency ponytail@ponytail is not installed"); adding the marketplace
afterwards installs it.
Auto-update. Turn it on once per machine in ~/.claude/settings.json:
"extraKnownMarketplaces": {
"gronck-local": {
"source": { "source": "github", "repo": "Gronck2/claude-plugins" },
"autoUpdate": true
}
}plugin.json has no version, so the version is the commit SHA and every
commit on main is an update. An interactive session refreshes the
marketplace a few minutes after its first message and updates the plugin on
disk; sessions load it at their next start or /reload-plugins. Right away:
claude plugin marketplace update gronck-local && claude plugin update dev-pipeline@gronck-local.
The agents appear as dev-pipeline:coder, etc., and the skill as
/dev-pipeline:run-task. To try local edits before merging, start a session
with claude --plugin-dir ~/claude-plugins/plugins/dev-pipeline.
Inside that project:
claude plugin disable dev-pipeline@gronck-local --scope project # committed: .claude/settings.json
# or, just for you, not committed:
claude plugin disable dev-pipeline@gronck-local --scope local # .claude/settings.local.jsonBoth write "dev-pipeline@gronck-local": false under enabledPlugins; local >
project > user, so it overrides the user-scope true. To turn it back on:
claude plugin enable dev-pipeline@gronck-local --scope project.
Agent precedence (highest first): managed → --agents flag → project
.claude/agents/ → user ~/.claude/agents/ → plugin agents/. A project file
with the same bare name shadows the plugin agent, so
<project>/.claude/agents/tester.md with name: tester replaces
dev-pipeline:tester there while the other four stay shared. Keep the
SUCCESS: / BLOCKED: output contract so run-task still parses it.
Note: plugin agents ignore the hooks, mcpServers and permissionMode
frontmatter fields; none of these agents uses them.
Every agent reads this section first; coder, tester, qa-mr and manager
stop with BLOCKED when it is missing.
## Pipeline contract
- **Base branch:** develop <!-- task branches start here -->
- **PR target:** develop
- **Forge:** gh <!-- gh | glab | none (no PR step) -->
- **Branch naming:** task/NNNN-slug
- **Docs layout:** tasks docs/tasks/, plans docs/plan/, ADRs docs/adr/,
living docs to keep current: docs/arch/overview.md. Docs language: English.
- **Test paths:** tests/ <!-- dirs or globs, e.g. **/*.test.ts -->
- **Gate commands:**
- lint: `uv run ruff check <files>`
- format: `uv run ruff format --check <files>`
- types: `uv run mypy <files>`
- tests: `uv run pytest`
- **Security-shaped paths:** app entrypoint, settings, anything with
auth/token/credential/secret/password/session in the path, migrations/.
- **Merge/release policy:** PR opened without asking; merge, push to
develop/main, release PRs, tags, force-push only on the owner's request.
Never propose merging a PR whose CI is red or pending.
- **Extra rules:** never kill processes you didn't start (dev server on :8000);
never print .env values; commit attribution line: <...>.- Add a
## Pipeline contractsection toCLAUDE.mdwith these values:- Base branch and PR target
develop; branchestask/NNNN-slug(ADR 0009). - Docs layout
docs/tasks,docs/plan,docs/adr, livingdocs/arch/overview.mdanddocs/design.mdfor UI; English. - Gate:
uv run ruff check,uv run ruff format --check,uv run mypy(touched files),uv run pytest. - Security-shaped paths:
src/currency_to_gold/app.py, anysettings.py, auth/token/credential/secret/password/session paths,security/,migrations/, secret-like.env.examplevariables. - Merge/release policy: ADR 0008 + ADR 0010 (tags only on instruction, CI
checked with
gh pr checks). - Extra rules:
static/*.jschanges verified in real headless Chrome via thetests/test_hints_browser.pyharness; dev server on :8000; notimeoutbinary (useperl -e 'alarm 900; exec @ARGV' ...); no RMT, no in-game automation; numbers shown to users come from code.
- Base branch and PR target
- The existing "Agent pipeline" section of
CLAUDE.mdcan shrink to a pointer at the plugin plus the contract (the ADRs stay as the decision record). - Remove
.claude/agents/{manager,coder,tester,code-reviewer,qa-mr}.mdand.claude/skills/run-task/— otherwise the project copies shadow the plugin (same bare names). Keep one only if this project needs a deliberate override. - Do it on a docs branch from
developwith a PR, as any other change.