Visual Explainer — Livepeer docs-v2 Implementation Guide
What this is: A practical guide to implementing nicobailon/visual-explainer as a developer/maintainer tooling layer for thelivepeer/docsdocs-v2branch. This is not a content authoring tool — it operates alongside the docs, not inside Mintlify.
Pilot Scope (Current)
This workflow is currently an optional, maintainer-focused pilot.- It is not a required contributor gate.
- It is not a Mintlify runtime feature.
- It is not part of CI or GitHub Actions.
- Generated diagram/review artifacts should remain out-of-repo during the pilot.
Understanding the Boundary
Visual-explainer outputs standalone HTML files to~/.agent/diagrams/. It is a Claude Code skill — it runs in your terminal workflow, not inside Mintlify. This means:
- It does not replace Mermaid diagrams already rendering correctly in MDX pages
- It does not write to the repo directly
- It does produce shareable, linked reference pages and maintainer-tooling outputs
- It does activate automatically when you ask Claude Code for diagrams, architecture overviews, or plan comparisons
- It uses Claude Code slash commands (for example
/diff-review) and should not be treated as a Mintlify or CI command
Installation
SKILL.md on each session.
Priority 1: /plan-review on the AI-First Docs Plan
What it does: Cross-references every claim in a plan document against the actual codebase. Produces a current vs. planned architecture diagram and flags risks and gaps.
Why it matters here: The livepeeraifirstdocsplan.pdf is a concrete implementation plan with sprint deliverables. Running /plan-review against docs-v2 gives you a machine-verified gap analysis — which items are landed, which are still outstanding, and where the delta lives in the file system.
How to run it:
- Every sprint item mapped to a file path in
v2/,ai-tools/, oroperations/scripts/ - Items flagged as not yet landed in current docs-v2 coverage (for example quickstart/tutorial gaps, migration docs, accessibility follow-ups)
- A risk/gap matrix formatted as a visual HTML page you can share directly with stakeholders
Priority 2: /diff-review on docs-v2 PRs
What it does: Generates a full visual review page for any git diff — before/after architecture diagrams, KPI dashboard, structured code review (Good/Bad/Ugly), and a decision log with confidence indicators.
Why it matters here: The docs-v2 branch has deep history and broad surface area. PRs touching docs.json (navigation structure), snippets/components/ (component system), or .github/workflows/ (CI) are structurally complex and hard to reason about in GitHub’s flat diff view.
How to run it:
How to integrate into workflow (pilot): Keep this optional and maintainer-led first. For now, use it before opening or reviewing structural PRs and gather evidence on review quality.
Priority 3: Architecture Diagrams for Commented-Out Mermaid
What it does: Generates a full-page, zoom/pan-enabled, dark/light themed diagram using ELK layout — significantly more capable than Mintlify’s inline Mermaid renderer. Why it matters here: Two substantial architecture diagrams are commented out in the existing MDX files, almost certainly because they were too complex to render cleanly in-page:v2/gateways/resources/technical/technical-architecture.mdx— Marketplace Interaction Model (commented out)v2/gateways/resources/technical/technical-architecture.mdx— BYOC Container Architecture (commented out)
~/.agent/diagrams/. Host them or link to them from the relevant reference pages. In the MDX, replace the commented-out Mermaid block with:
Priority 4: /fact-check on Delivery Reports
What it does: Takes any document that makes claims about code and verifies every claim against the actual codebase. Produces a verification log as a visual HTML page.
Why it matters here: The RFP delivery report and retrospective make specific claims about what was built — script/test coverage, component library work, GitHub Actions workflows, CLI tools, AI-first tooling. /fact-check produces a machine-verified evidence log.
How to run it:
- Every script claimed → existence in
operations/scripts/ - Every workflow claimed → existence in
.github/workflows/ - Every component claimed → existence in
snippets/components/ - Every page structure claimed → existence in
v2/
Priority 5: /project-recap for Contributor Onboarding
What it does: Scans recent git activity and produces an architecture snapshot, decision log, and cognitive debt hotspots — a mental model of the current project state.
Why it matters here: The repo has multiple maintainers/contributors and docs-guide/ as the canonical navigation source of truth. /project-recap produces a single visual page that helps reduce orientation time.
How to run it:
- Which areas of the repo have the most recent churn (for example
v2/developers/and adjacent docs sections) - The test suite structure across
tests/and.github/workflows/ - The automation pipeline map
- Cognitive debt hotspots — files with high change frequency and high complexity
docs-guide/contributing/contributing.mdx:
docs-guide/frameworks/content-system.mdx and maintainer handoff docs. Delay homepage “Mission Control” placement until pilot usefulness is validated.
What NOT to Use Visual Explainer For
4-Week Pilot Rollout
Week 1: Baseline
- Keep this guide aligned with current repo paths (
v2/**, notv2/pages/**). - Keep contributor-facing messaging optional.
- Track pilot scope in docs-guide contributor docs, not as a required contribution gate.
Weeks 1-2: Operational Pilot
- Run
/diff-reviewon at least five structural PRs touching one or more of:docs.jsonsnippets/components/**.github/workflows/**
- Run
/plan-reviewonce against the AI-first plan. - Use artifact naming:
YYYY-MM-DD_diff-review_<ref>.htmlYYYY-MM-DD_plan-review_ai-first-plan.html
Week 2: Diagram Rescue Pilot
- Generate diagram artifacts for the two commented Mermaid diagrams in:
v2/gateways/resources/technical/technical-architecture.mdx
- Keep links internal during the pilot (do not publish into user-facing pages yet).
Weeks 3-4: Evidence and Onboarding
- Run
/fact-checkon delivery and retrospective documents. - Run
/project-recapfor onboarding/handoff context. - Generate a persona-routing matrix as an internal artifact only.
End of Week 4: Decision Gate
Promote to contributor-facing recommendation only if all are true:- Pilot runs are repeatable by multiple maintainers.
- Artifact quality is consistently useful.
- No path drift or command confusion was observed.
Operator Runbook (Planning Only)
Use this checklist after the relocation is complete. Do not execute these commands as part of this migration change./diff-review: run for structural PRs (docs.json,snippets/components/**,.github/workflows/**) and capture one artifact per review./plan-review: run once against the AI-first plan document and save a single gap-analysis artifact./fact-check: run on delivery/retrospective docs before stakeholder circulation./project-recap: run once per onboarding/handoff cycle to generate orientation context.