Preview

View files and directories, or generate visual explanations with ASCII art, Mermaid diagrams, and slide presentations.

Usage

/ck:preview [file or directory]         # View content
/ck:preview --explain [topic]           # Visual explanation
/ck:preview --diagram [topic]           # Architecture diagram
/ck:preview --slides [topic]            # Step-by-step slides
/ck:preview --ascii [topic]             # Terminal-friendly diagram

Modes

FlagOutput
(none)File/directory viewer
--explainVisual explanation with ASCII + Mermaid
--diagramArchitecture and data flow diagrams
--slidesStep-by-step walkthrough presentation
--asciiTerminal-only ASCII diagrams

HTML Mode

Add --html to any visual mode to generate a self-contained HTML file that opens directly in the browser — no markdown viewer required.

/ck:preview --html --explain [topic]      # Visual explanation as HTML
/ck:preview --html --diagram [topic]      # Architecture diagram as HTML
/ck:preview --html --slides [topic]       # Slide presentation as HTML
/ck:preview --html --ascii [topic]        # ASCII diagram as HTML

HTML-only modes (no Mermaid equivalent):

/ck:preview --html --diff [file-a] [file-b]   # Side-by-side diff view
/ck:preview --html --plan-review [plan-dir]   # Plan review with phase navigation
/ck:preview --html --recap [topic]            # Session recap summary

HTML Mode Details

FlagDescription
--diffSide-by-side file diff, color-coded changes
--plan-reviewRenders plan directory with phase navigation and status
--recapSession or topic recap formatted for sharing

Output: Single .html file saved to the active plan’s visuals/ directory (fallback: plans/visuals/). Opens automatically in the default browser.

Reference loading per mode:

ModeReferences loaded
--explainCodebase context, relevant files
--diagramArchitecture docs, system design files
--slidesTopic files, step-by-step context
--diffBoth input files only
--plan-reviewAll phase files in plan directory
--recapSession history, recent changes

Style strategy: HTML output uses anti-slop rules (no filler content, no padding prose). The --slides mode additionally applies ui-ux-pro-max style for polished presentation layout.