[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
Engineer Kit
/ak:preview
View existing files and folders or generate visual explanations, diagrams, slides, diffs, plan reviews, and project recaps as Markdown or self-contained HTML.
Resolve operation
Handle stop/html
Route generation
Route HTML review
Rule 01
View mode reads existing content; generation mode creates new visual artifacts
Rule 02
--html output is self-contained and must include a theme toggle
Rule 03
Review modes diff, plan-review, and recap imply HTML
Rule 04
Mermaid syntax and publish-grade layout need dedicated validation
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
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 browser-openable HTML file with inline CSS/JS.
Example
/ak:preview --html --diagram checkout architecture How options work together on one invocation. This does not replace the option cards above.
--html composes with --explain, --slides, and --diagram.
--no-antv, --no-diagram-design, and --no-editorial-visuals disable parts of the editorial visual layer.
--explain Visual explanation of code, architecture, or concepts with prose, ASCII, and Mermaid.
--slides Presentation-style walkthrough, one concept per slide.
--diagram Focused architecture or data-flow diagram.
--ascii Terminal-friendly ASCII diagram; not supported with HTML.
--diff Visual diff review of branch, commit, range, HEAD, or PR reference; implies HTML.
--plan-review Compare a plan against actual codebase and surface gaps; implies HTML.
--recap Project context snapshot over a timeframe; implies HTML.
Concrete invocations for each flag, subcommand, mode, or route available in the live workflow.
/ak:preview plans/checkout/plan.md /ak:preview--diagramcheckout webhook lifecycle
/ak:preview--html--diagramcheckout webhook lifecycle
/ak:preview--plan-reviewplans/checkout/plan.md
/ak:preview--diffmain
/ak:preview--explaincheckout webhook retries
/ak:preview--slidescheckout launch narrative
/ak:preview--asciicheckout webhook lifecycle
/ak:preview--recap7d
Preview Output
Pattern
{plan_dir}/visuals/{slug}.md or {slug}.html; view mode opens an existing path Outputs are visual explanations, diagrams, slides, review reports, or a browser view of existing files/directories.