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.

Good fit Drawing architecture and sequence diagrams, explaining code paths, creating slide-style explanations, and visualizing a pre-pull-request change summary.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ngocsangyem/meowkit/preview
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mk:preview

Your own site · 80×15
<a href="https://agentmods.dev/skills/ngocsangyem/meowkit/preview"><img src="https://agentmods.dev/badge/skills/ngocsangyem/meowkit/preview.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00037 $0.00967
Sonnet 5.5 $0.00018 $0.00484
Haiku 4.5 $0.00009 $0.00242

Measured 2mo ago against content hash 359fa9e259d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (15 stars, last pushed 7d ago), licensed MIT. It adds 92 tokens to every session and 2,418 once invoked, about $0.0004 per session on Opus 5.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

mk:preview compared with skills from other repositories

mk:preview next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mk:previewngocsangyem/MeowKitSkill157d agoMITA92Claude Code
deck-course-modulenexu-io/html-anythingSkill9.5ktodayApache-2.0A25Claude Code, Codex
mermaid-diagramwecode-ai/WegentSkill885todayApache-2.0A102Claude Code, Codex
mermaid-diagramPM-Shawn/Abu-CoworkSkill419todayApache-2.0A104Claude Code
mermaid-skillAgents365-ai/mermaid-skillSkill2052mo agoMITB137Claude Code, Codex
tech-diagramdesirecore/marketSkill2todayMITA210Claude Code
diagram-creatorclaude-office-skills/skillsSkill5689mo agoMITA34Claude Code, Codex