mk:preview

mk:preview is a skill for Claude Code from ngocsangyem/MeowKit. It costs 92 tokens per session (2,418 once invoked), scanned A, original, MIT.

A tool for creating visual explanations of code, architecture, processes, and changes. It can produce Markdown or self-contained HTML with diagrams, slides, or visual summaries that open without a live server.

In plain words
What is it for?
Drawing architecture and sequence diagrams, explaining code paths, creating slide-style explanations, and visualizing a pre-pull-request change summary.
Why use it?
It helps readers understand unfamiliar code paths and relationships faster than prose alone. It also provides a way to review planned or proposed changes visually before implementation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ngocsangyem/meowkit/preview
Any agent
npx skills add ngocsangyem/MeowKit --skill preview
Clone the repo
git clone --depth 1 https://github.com/ngocsangyem/MeowKit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mk:preview

README.md
[![agentmods](https://agentmods.dev/badge/skills/ngocsangyem/meowkit/preview.svg)](https://agentmods.dev/skills/ngocsangyem/meowkit/preview)
Your own site
<a href="https://agentmods.dev/skills/ngocsangyem/meowkit/preview"><img src="https://agentmods.dev/badge/skills/ngocsangyem/meowkit/preview.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,418 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.02418
Opus 5 $0.00046 $0.01209
Sonnet 5 $0.00018 $0.00484
Haiku 4.5 $0.00009 $0.00242

Measured 2d ago against content hash 359fa9e259d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mk:preview scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/preview/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mk:preview

Generates visual artifacts — markdown and self-contained HTML — for explaining code, drawing diagrams, building slide decks, and visualizing diffs. Rendering a plan as HTML belongs to mk:visual-plan.

No live server. No Python. Pure markdown + HTML + bash file operations. Output writes to tasks/plans/{active-plan}/visuals/ when an active plan exists; otherwise falls back to tasks/visuals/.

When to Use

  • A reader needs to understand an unfamiliar code path, protocol, or architecture
  • A diagram (flowchart, sequence, ER) would communicate the topology faster than prose
  • Step-by-step content benefits from slides over a single long page
  • A pre-PR diff review needs visual KPIs, file map, and change cards
  • Stakeholders prefer a self-contained HTML page they can open in a browser without a server

For rendering a plan directory as a shareable HTML page, use mk:visual-plan.

Default (No Arguments)

If invoked with no arguments, present available operations via AskUserQuestion. Header: "Preview Operation". Question: "What would you like to do?".

Operation Description
--explain Markdown visual explanation (ASCII + Mermaid + prose)
--diagram Markdown diagram (ASCII + Mermaid)
--slides Markdown presentation slides
--ascii Terminal-friendly ASCII diagram only
--html --explain Self-contained HTML explanation, opens in browser
--html --diagram HTML diagram with zoom/pan controls
--html --slides Magazine-quality HTML slide deck
--html --diff HTML diff visualization (KPI grid + file map + cards)

Recommended default: --explain or --html --explain.

Usage

Markdown Generation

Read the full file on GitHub · 187 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 187 lines · 92 tokens per session scan A 359fa9e259d7

Subscribe to this mod's changes

mk:preview is a skill published in the GitHub repository ngocsangyem/MeowKit (14 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 2,418 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

code-to-diagram

Analyze codebases and automatically generate architecture diagrams, flowcharts, and org charts. Uses AST parsing to map import dependencies for Python, JS/TS, Go, and Java, outputting Mermaid or SVG files. Triggered when users ask to visualize code architecture, understand dependencies, draw a flowchart, or create a…

zebbern/claude-code-guide · 74 tokens

deck-course-module

暖纸背景 + Playfair, 左侧学习目标常驻, 含 MCQ 自测页.

nexu-io/html-anything · 25 tokens

mermaid-diagram

Use this skill when you need to draw diagrams including: Flowchart, Sequence Diagram, Class Diagram, State Diagram, ER Diagram, User Journey, Gantt Chart, Pie Chart, Quadrant Chart, Requirement Diagram, Gitgraph, Mindmap, Timeline, Sankey, XY Chart (Bar/Line), Block Diagram, Packet Diagram, Kanban, Architecture…

wecode-ai/Wegent · 102 tokens

Presentation Skills Index

Skills for creating presentations, slides, and visual documentation.

aristoteleo/PantheonOS · 15 tokens

explainer-animations

Create educational animated explainers that teach concepts step-by-step using the Excalimate MCP server. Use when asked to explain how something works, create tutorial animations, onboarding walkthroughs, concept breakdowns, or any content that needs to progressively build understanding — even if the user says "show…

excalimate/excalimate · 71 tokens

explainer

Create explainer videos with narration and AI-generated visuals. Triggers on: "解说视频", "explainer video", "explain this as a video", "tutorial video", "introduce X (video)", "解释一下XX(视频形式)".

marswaveai/skills · 56 tokens