export

A command that converts Markdown pages in wiki/ into a static HTML website in site/. Static HTML files can be opened directly in a browser without running a web server.

In plain words
What is it for?
Use it to publish a local knowledge wiki as browseable HTML files. You can choose a different output folder when exporting.
Why use it?
It turns a folder of wiki notes into something people can browse without installing or operating a website application. Navigation, page content, metadata, and tables of contents are generated from the wiki files.

Command

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 commands/doneyli/claude-code-plugins/export
Clone the repo
git clone --depth 1 https://github.com/doneyli/claude-code-plugins
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,860 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 $0.00034 $0.01860
Opus 5 $0.00017 $0.00930
Sonnet 5 $0.00007 $0.00372
Haiku 4.5 $0.00003 $0.00186

Measured yesterday against content hash 95e8fc340d44, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

export 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 yesterday.

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.

llm-wiki/commands/export.md · 110 lines

How it starts

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

Export the wiki as a static HTML site. Read every .md file under wiki/, convert to HTML, write to a site/ directory.

Parse arguments

  • --output-dir <path> — output directory (default: site/ in the wiki root)

Step 1 — Read the template

Read ${CLAUDE_PLUGIN_ROOT}/templates/export-page.html. This is the HTML shell with {{TITLE}}, {{NAV}}, {{CONTENT}}, {{META}}, {{TOC}} placeholders.

If the template doesn't exist, use this inline template:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{TITLE}} — Wiki</title>
<style>
/* Inline Wikipedia-modern hybrid */
*,*::before,*::after{box-sizing:border-box}
:root{--bg:#fafafa;--card:#fff;--text:#1a1a1a;--text2:#555;--link:#0645ad;--border:#d4d4d4;--sidebar:260px;--max-w:780px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;--serif:Georgia,"Times New Roman",serif}
body{margin:0;font-family:var(--font);font-size:17px;line-height:1.65;color:var(--text);background:var(--bg)}
a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}
.layout{display:flex;min-height:100vh}
.sidebar{width:var(--sidebar);background:var(--card);border-right:1px solid var(--border);padding:1.5rem 1rem;position:sticky;top:0;height:100vh;overflow-y:auto;font-size:14px}
.sidebar h2{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--text2);margin:1.2em 0 .4em;font-family:var(--font)}
.sidebar ul{list-style:none;margin:0;padding:0}.sidebar li{margin:.2em 0}.sidebar a.active{font-weight:700;color:var(--text)}
.main{flex:1;max-width:var(--max-w);padding:2rem 2.5rem 4rem;margin:0 auto}
h1{font-family:var(--serif);font-size:2rem;font-weight:400;border-bottom:1px solid var(--border);padding-bottom:.3em;margin:0 0 .4em}
h2{font-family:var(--serif);font-size:1.4rem;font-weight:400;margin:1.8em 0 .5em;border-bottom:1px solid #eee;padding-bottom:.2em}
h3{font-size:1.1rem;margin:1.4em 0 .4em}
.meta{font-size:13px;color:var(--text2);margin-bottom:1.5em;display:flex;gap:.5em;flex-wrap:wrap;align-items:center}
.tag{display:inline-block;background:#eef;color:#336;font-size:11px;padding:2px 8px;border-radius:3px;font-weight:500}
.tag.concept{background:#dcfce7;color:#166534}.tag.entity{background:#dbeafe;color:#1e40af}.tag.theme{background:#f3e8ff;color:#6b21a8}.tag.synthesis{background:#fef3c7;color:#92400e}
table{border-collapse:collapse;width:100%;margin:1em 0}th,td{border:1px solid var(--border);padding:.5em .75em;text-align:left}th{background:#f5f5f5;font-weight:600}tr:nth-child(even){background:#fafafa}
.callout{border-left:4px solid;padding:.75em 1em;margin:1em 0;border-radius:0 4px 4px 0}
.callout-contradiction{border-color:#f59e0b;background:#fffbeb}.callout-gap{border-color:#3b82f6;background:#eff6ff}.callout-confidential{border-color:#374151;background:#f9fafb}
blockquote{border-left:3px solid var(--border);margin:1em 0;padding:.5em 1em;color:var(--text2)}
code{background:#f4f4f4;padding:.15em .4em;border-radius:3px;font-size:.9em}
pre{background:#f4f4f4;padding:1em;border-radius:4px;overflow-x:auto}pre code{background:none;padding:0}
.backlinks{margin-top:3em;padding-top:1em;border-top:1px solid var(--border);font-size:14px;color:var(--text2)}
.footer{text-align:center;font-size:12px;color:var(--text2);padding:2em 0;border-top:1px solid var(--border)}
@media(max-width:768px){.sidebar{display:none}.main{padding:1rem}}
</style>
</head>
<body>
<div class="layout">
<nav class="sidebar">
<h2>Wiki</h2>
<ul><li><a href="{{ROOT}}index.html">Home</a></li></ul>
{{NAV}}
</nav>
<div class="main">
<h1>{{TITLE}}</h1>
<div class="meta">{{META}}</div>
{{CONTENT}}
<div class="footer">Exported from LLM Wiki</div>
</div>
</div>
</body>
</html>

Read the full file on GitHub · 110 lines

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. yesterday First seen · 110 lines · 34 tokens per session scan A 95e8fc340d44

Subscribe to this mod's changes

export is a command published in the GitHub repository doneyli/claude-code-plugins (4 stars, last pushed 4mo ago), licensed MIT. It adds 34 tokens to every session and 1,860 once invoked, about $0.0002 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-08-31.