From mz-dev-pipe
Orchestrates a multi-lens codebase audit. Parallel researchers scan across correctness, security, performance, maintainability, and reliability lenses. Findings are consolidated, ranked, approved by the user, then fixed in parallel with mirrored reviewers. Critical/high fixes get regression tests.
npx claudepluginhub doctormozg/claude-pipelines --plugin mz-dev-pipeThis skill uses the workspace's default tool permissions.
Orchestrates a multi-lens codebase audit. Parallel researchers scan across correctness, security, performance, maintainability, and reliability lenses. Findings are consolidated, ranked, approved by the user, then fixed in parallel with mirrored reviewers. Critical/high fixes get regression tests.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Guides code writing, review, and refactoring with Karpathy-inspired rules to avoid overcomplication, ensure simplicity, surgical changes, and verifiable success criteria.
Share bugs, ideas, or general feedback.
Orchestrates a multi-lens codebase audit. Parallel researchers scan across correctness, security, performance, maintainability, and reliability lenses. Findings are consolidated, ranked, approved by the user, then fixed in parallel with mirrored reviewers. Critical/high fixes get regression tests.
debug.build.optimize.blast-radius.$ARGUMENTS — Optional lens hint ("security review"), scope hint ("src/auth/"), combined, or empty (roam mode — full repo minus vendored/generated/test). If ambiguous, ask. Never guess.See skills/shared/scope-parameter.md for the canonical scope modes (branch, global, working) and their git commands. Document any skill-specific overrides or restrictions below this line.
scope: controls files, remaining argument text controls lenses (orthogonal).global mode additionally excludes test files in this skill.[critical, high] | TASK_DIR: .mz/task/| # | Phase | Reference | Loop? |
|---|---|---|---|
| 0 | Setup | inline below | — |
| 1 | Scope & Lens Selection | phases/research.md | — |
| 2 | Multi-Lens Research | phases/research.md | — |
| 3 | Consolidate & Rank | phases/research.md | — |
| 3.5 | User Approval Gate | inline below | re-research on feedback |
| 4 | Chunk Findings | phases/fix_and_verify.md | — |
| 5 | Parallel Fix | phases/fix_and_verify.md | — |
| 6 | Verify & Auto-Fix | phases/fix_and_verify.md | inner fix loop (max 3) |
| 7 | Parallel Review | phases/review_and_finalize.md | — |
| 8 | Handle Verdicts | phases/review_and_finalize.md | respawn loop (max 3) |
| 9 | Regression Tests | phases/review_and_finalize.md | — |
| 10 | Final Summary | phases/review_and_finalize.md | — |
Derive <YYYY_MM_DD>_audit_<slug>, create .mz/task/<task_name>/, write state.md (Status, Phase, Started, Review iterations, Fix attempts, Lenses, Findings). TaskCreate per phase.
phases/research.md → Phase 1.pipeline-researcher (model: sonnet) in one message, one per lens. See phases/research.md → Phase 2.phases/research.md → Phase 3.This orchestrator (not a subagent) must present to the user via AskUserQuestion. This step is interactive and must not be delegated.
Mandatory pre-read: Read .mz/task/<task_name>/findings.md with the Read tool. Capture the full file contents (every ranked finding with file:line, severity, confidence, description, proposed fix, plus the coder assignment preview block) into context.
Mandatory inline-verbatim presentation: The AskUserQuestion question body must contain the verbatim contents of findings.md. Never substitute a path, status summary, line count, or <findings list> placeholder — the user must review the actual ranked findings in the question itself, not have to open the file separately.
Before invoking AskUserQuestion, emit a text block to the user:
**Findings Ready for Review**
Completed multi-lens audit with N ranked findings. Severity distribution and coder assignments shown.
- **Approve** → proceed to Phase 4 (parallel fix dispatch)
- **Reject** → abort task, no files modified
- **Feedback** → adjust findings list or scope, re-present via AskUserQuestion
Invoke AskUserQuestion with this body (where <verbatim findings.md contents> is replaced by the bytes you just read):
Found <N> actionable findings. Please review:
<verbatim findings.md contents>
Type **Approve** to proceed, **Reject** to cancel, or type your feedback.
(e.g. "drop finding 3", "rerun research with security lens only", "narrow scope to src/api/").
Response handling:
aborted_by_user and stop. Do not proceed.findings.md and re-present (no re-research). Scope/lens changes → re-run Phase 1, overwrite findings.md, then re-present. Unclear → ask follow-up. After any change, re-read findings.md and re-present via AskUserQuestion with the full new contents — never diff-only, never summary-only, since context compaction may have destroyed the user's memory of earlier iterations. This is a loop — repeat until the user explicitly approves. Never proceed to Phase 4 without explicit approval.MAX_CODERS. See phases/fix_and_verify.md → Phase 4.pipeline-coder (opus) per wave. See phases/fix_and_verify.md → Phase 5.phases/fix_and_verify.md → Phase 6.pipeline-code-reviewer (opus), 1:1 per chunk. See phases/review_and_finalize.md → Phase 7.phases/review_and_finalize.md → Phase 8.pipeline-test-writer. See phases/review_and_finalize.md → Phase 9.summary.md with findings, fixes, tests, iterations, follow-ups. See phases/review_and_finalize.md → Phase 10.Techniques: delegated to phase files — see Phase Overview table above.
Reference files: grep references/owasp-top-10-checklist.md for specific OWASP categories — do not load the entire file.
| Rationalization | Rebuttal |
|---|---|
| "findings look obvious, skip approval" | "parallel fix dispatch is expensive; user approval is the cost cap" |
| "severity is subjective, label later" | "unlabeled audits get ignored" |
| "one-pass scan is enough" | "multi-lens is the point of an audit; single-lens is a grep" |
Output the final summary.md block: finding counts by severity, fixed vs deferred, files touched, review iterations, and regression test list.
Update state.md after each phase with current phase, iteration counts, files modified, escalation notes. Allows resumption if interrupted.