[path] Existing path
File or directory to open in the Markdown viewer. It must resolve on disk; unresolvable text is not treated as a topic unless a generation flag is present.
/ak:preview plans/checkout/plan.md Quick Ref / Command
Marketing Kit
/ak:preview
Universal viewer and visual generator for files, diagrams, slide decks, HTML explanations, visual diffs, plan reviews, and project recaps.
Choose Operation
Resolve Flags
View or Generate
Load References
Rule 01
Two primary input shapes: a file path for view mode, or a generation flag plus topic for new visuals.
Rule 02
--html composes with explanation, diagram, slides, diff, plan-review, and recap modes, but not terminal-only ASCII.
Rule 03
HTML output is self-contained with all CSS and JS inline and no server requirement.
Rule 04
Review modes gather real diff, plan, git, and codebase context before drawing conclusions.
Core lanes from input to output, aligned with the command's real execution path.
Start
Input, scope, route
Work
Agent / skill execution
Verify
Gate, review, validation
Close
Report, handoff, artifact
How to invoke the skill: syntax, positional arguments, shared options, then each subcommand with its own syntax and outcome.
Syntax
/ak:preview [path]or
/ak:preview [--html] --explain|--slides|--diagram|--ascii <topic>or
/ak:preview --html --diff|--plan-review|--recap [ref|plan-file|timeframe] [--no-antv|--no-diagram-design|--no-editorial-visuals]or
/ak:preview --stop[path] Existing path
File or directory to open in the Markdown viewer. It must resolve on disk; unresolvable text is not treated as a topic unless a generation flag is present.
/ak:preview plans/checkout/plan.md <topic> Required Visual topic
Non-empty subject for explanation, slides, diagram, or ASCII generation. Multiple generation flags use the first flag and fold the rest into this topic.
/ak:preview --diagram webhook lifecycle [ref] Diff reference
Optional branch, commit, range, HEAD, pull request, or default main comparison for --diff. PR refs require gh.
/ak:preview --html --diff main [plan-file] Plan file
Optional plan path for --plan-review. If omitted, the Skill uses active plan context when available.
/ak:preview --html --plan-review plans/checkout/plan.md [timeframe] Recap window
Optional recent-history window for --recap, such as 30d or 3m. Defaults to two weeks.
/ak:preview --html --recap 30d --stop Stop viewer
Stop the running Markdown viewer server immediately. It does not generate or open a file.
/ak:preview --stop --explain Explanation mode
Generate a visual explanation with prose, ASCII, Mermaid, and optional code around a required topic.
/ak:preview --explain auth middleware chain --slides Slides mode
Generate a presentation-style artifact when slides are explicitly wanted.
/ak:preview --slides deployment pipeline --diagram Diagram mode
Generate a focused diagram and inspect the rendered result, not only the Mermaid syntax.
/ak:preview --html --diagram checkout architecture --ascii ASCII mode
Generate a terminal-friendly ASCII diagram. It is not supported with --html.
/ak:preview --ascii folder structure --diff Diff review mode
Generate an HTML visual review of a branch, commit, range, HEAD, PR, or default main comparison.
/ak:preview --html --diff main --plan-review Plan review mode
Generate an HTML comparison between a plan and the current codebase; requires a plan path or active plan context.
/ak:preview --html --plan-review plans/checkout/plan.md --recap Recap mode
Generate an HTML recent-project context snapshot from project identity, Git history, status, decisions, and architecture.
/ak:preview --html --recap 2w --no-antv Disable AntV
Disable AntV infographic alternates for this run while allowing other fallbacks.
/ak:preview --html --diff main --no-antv --no-diagram-design Disable diagram-design
Disable diagram-design SVG alternates for this run while keeping Mermaid or table fallbacks.
/ak:preview --html --diagram auth --no-diagram-design --no-editorial-visuals Disable editorial visuals
Disable all additive editorial visual layers for this run.
/ak:preview --html --recap 30d --no-editorial-visuals Only flags that change the artifact or publish it. Not the full option set.
--html Self-contained HTML
Switch generation output to a single inline HTML file that opens directly in a browser.
Example
/ak:preview --html --diagram "Landing page funnel" [path] View a file or browse a directory.
--explain Generate a visual explanation with prose, ASCII, and Mermaid.
--slides Generate presentation slides, one concept per slide.
--diagram Generate a focused architecture or concept diagram.
--ascii Generate a terminal-friendly ASCII diagram.
--diff [ref] Create a visual diff review; HTML is implied.
--plan-review [plan-file] Compare a plan file against the actual codebase; HTML is implied.
--recap [timeframe] Create a project context snapshot over a timeframe; HTML is implied.
--stop Stop the preview server and exit.
Concrete invocations for each flag, subcommand, mode, or route available in the live workflow.
/ak:preview assets/reports/seo/launch-audit.md /ak:preview--explainHow our referral funnel works
/ak:preview--html--slidesLaunch narrative for investors
/ak:preview--plan-reviewplans/launch-plan.md
/ak:preview--stop
/ak:preview--diagramreferral funnel stages
/ak:preview--asciireferral funnel stages
/ak:preview--diffmain
/ak:preview--recap7d