/ak-render:ak-renderfrom AK Render
Compiles a YAML/JSON Page Spec into a self-contained offline HTML report, dashboard, or architecture review page. Use instead of hand-writing HTML/CSS/JS when the user needs a polished shareable page from conversation data.
Ships in AK Render. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
AK Render compiles a YAML or JSON Page Spec into one deterministic,
self-contained HTML file. The page opens from file:// and makes no network
request. You describe what the page says; the compiler owns layout, colour,
typography, accessibility and security.
This plugin pins @bestagentkits/[email protected]. Everything below works with
that version; don't use commands that it does not list in --help.
When the ak-render MCP tools are available (catalog, search-catalog,
describe, recipes, recipe, validate, render, themes), use them.
spec may be YAML or JSON text. render writes the HTML to out and returns
only a summary.
Otherwise use the CLI with the same pinned version. Every command except
mcp accepts --json, and none of them prompts:
npx -y @bestagentkits/[email protected] --version
If npx is missing or Node is older than 20.11, stop and tell the user to
install Node.js 20.11 or later. Don't fall back to hand-written HTML.
Pick a starting point. For a report, dashboard or architecture review, start from a recipe or from a bundled example and replace its content:
| Brief | Recipe | Bundled example |
|---|---|---|
| Report, recap, postmortem | research-report, incident-report, release-recap | examples/report.yaml |
| KPI or service dashboard | dashboard | examples/dashboard.yaml |
| Architecture or design review | architecture-review, decision-memo | examples/architecture.yaml |
npx -y @bestagentkits/[email protected] recipes
npx -y @bestagentkits/[email protected] recipe dashboard > page.yaml
The examples sit in the examples/ folder next to this file. Their numbers
are fictional sample data, so replace every value.
Find and describe only the blocks you need.
npx -y @bestagentkits/[email protected] search-catalog sortable table
npx -y @bestagentkits/[email protected] describe kpi chart data-table --compact
Write the spec to a .yaml file. Every number, date, name and finding
must come from the conversation, the repository or tool output. If a value
is unknown, leave the block out or ask; never fill it with a guess.
Validate and fix. Exit code 1 means fix and retry:
npx -y @bestagentkits/[email protected] validate page.yaml --json
The result is { ok, diagnostics[] }. Each diagnostic has a stable code
and a JSON path such as $.blocks[0].titl; for an unknown prop,
details.allowed lists the valid ones. Fix each diagnostic at its path and
validate again until ok is true.
Render to an .html file:
npx -y @bestagentkits/[email protected] page.yaml --out page.html --json
Exit code 1 means the spec is invalid and nothing was written; exit code 2 means a file could not be read or written. Report the message to the user.
Inspect the result. Read the JSON summary, not the HTML: confirm out
is the path you asked for, title is right and warnings is empty (fix the
spec for each warning and render again). Don't read the HTML back into
context. Give the user the file path, and open it once with open (macOS),
xdg-open (Linux) or start (Windows) only if the file did not exist
before this render; otherwise ask them to refresh.
rawHTML, iframe, srcdoc or script are rejected. Don't post-process
the emitted file. Links accept https, http, mailto and relative paths.policy.network defaults to deny; only opt in
when the user asks for remote media.themes and set
theme.preset; don't restyle the page.version: 1
meta:
title: Migration plan
description: How we move the API to the new gateway.
blocks:
- type: hero
eyebrow: Plan
title: Migration plan
description: Move the public API to the new gateway without downtime.
- type: steps
items:
- title: Mirror traffic
text: Send a copy of production requests to the new gateway.
- title: Switch reads
text: Route read endpoints once error rates match.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bestagentkits/ak-render --plugin ak-renderOther plugins' skills for the same job