From mz-dev-pipe
You orchestrate a deep-dive code analysis that produces a comprehensive, diagram-rich report explaining how a section of code works, why it's designed that way, and what potential issues exist. This is a read-only pipeline — it never modifies source code.
npx claudepluginhub doctormozg/claude-pipelines --plugin mz-dev-pipeThis skill uses the workspace's default tool permissions.
You orchestrate a deep-dive code analysis that produces a comprehensive, diagram-rich report explaining how a section of code works, why it's designed that way, and what potential issues exist. This is a read-only pipeline — it never modifies source code.
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.
You orchestrate a deep-dive code analysis that produces a comprehensive, diagram-rich report explaining how a section of code works, why it's designed that way, and what potential issues exist. This is a read-only pipeline — it never modifies source code.
Invoke when the user asks to understand, document, diagram, or walk through existing code. Trigger phrases: "explain X", "how does X work", "diagram this", "walk me through", "visualize the flow".
debug or build instead.investigate instead.$ARGUMENTS — The scope and optional question. Any combination of:
"src/auth/", "src/**/*.py" — which files to explain"how does the payment flow work", "explain the WebSocket reconnection logic" — what to focus on"src/auth/ how does token refresh work" — narrows both scope and focusIf empty or ambiguous, ask the user via AskUserQuestion. 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:): use path/glob/free-text detection from the argument.global mode in this skill requires a focusing question — if no question tokens are present, ask the user what aspect to explain.scope: parameter controls which files to analyze. The remaining argument text controls what to focus on within those files. They are orthogonal. Example: scope:branch "how does error handling work" analyzes only branch-changed files, focused on error handling.Extract output:<path> from $ARGUMENTS if present. This is where the final report will be written.
Default (no output: parameter): .mz/reports/<YYYY_MM_DD>_explain_<scope_name>.md (append _v2, _v3 if exists).
Example: 2026_04_20_explain_src_auth_token_refresh.md
.mz/task/ — working artifacts under .mz/task/<task_name>/| # | Phase | Reference | Loop? |
|---|---|---|---|
| 0 | Setup | inline below | — |
| 1 | Scope Resolution | inline below | — |
| 2 | Research Dispatch | phases/research.md | — |
| 3 | Report Generation | phases/report.md | — |
Techniques: delegated to phase files — see Phase Overview table above.
Reference files: grep references/mermaid-syntax-by-type.md for specific diagram type syntax — do not load the entire file.
N/A — collaboration/reference skill, not discipline.
Before completing, output a visible block showing: resolved scope file count, researchers dispatched, and the absolute path of the written report. Confirm the report file exists on disk and contains the required mermaid diagrams.
Split $ARGUMENTS (after removing scope:, output: parameters) into:
/, matches on disk, or has glob characters)Task name format: <YYYY_MM_DD>_explain_<slug> where <YYYY_MM_DD> is today's date (underscores) and slug is a snake_case summary (max 20 chars); on same-day collision append _v2, _v3. Examples: 2026_04_20_explain_src_auth, 2026_04_20_explain_payment_flow.
Create .mz/task/<task_name>/ directory. Write state.md with Status, Phase, Started, Researchers dispatched, and Output path fields.
Use TaskCreate for each pipeline phase.
Resolve the argument into a concrete file list:
scope: parameter given: use the git-derived file list, applying standard exclusionsscope:): spawn a pipeline-researcher agent (model: sonnet) to identify which files match the description. If low confidence or multiple plausible interpretations, ask the user via AskUserQuestion.Exclusions: .gitignore, vendored deps, generated/lock files, files > 5000 LOC. Test files are NOT excluded — they're valuable context.
If the file list is empty: report and exit. If scope:global with no focusing question: ask the user what aspect to explain.
Write .mz/task/<task_name>/scope.md with Mode, file count, Question/focus, and the file list (collapsed by directory if > 30 files). Update state phase to scope_resolved.
Dispatch 1-3 pipeline-researcher agents based on scope size and external dependency detection. See phases/research.md for the dispatch decision matrix, researcher prompts, and per-researcher artifact format. Update state phase to researched.
Compile all researcher outputs into a single report with mandatory mermaid diagrams. See phases/report.md for the report template, diagram requirements, and quality checks. Write the report to the resolved output path. Update state to completed. Present a summary to the user with the report path.
scope:global without question: ask for a focusing question.After each phase, update .mz/task/<task_name>/state.md with current phase, researchers dispatched/completed, output path, and any issues encountered.