prototype
MAmattpocock/skills336k近 7 天新增 4,217 个 star
The house standard for any skill that renders an HTML page for a person to read, covering design tokens, typography, components, diagrams, and quality gates so every generated page shares one calm, graphic-first look. Use when a skill's instructions say to render its output per the html-explainer standards, or when the user asks for an HTML explainer of anything and no more specific skill applies.
A page for a person is pictures interrupted by words. The diagram
carries the argument and the prose annotates it, the way a whiteboard
sketch carries a design review; a section that has no visual either
earns its place in prose or belongs folded into depth. Without one
standard, every generated page invents its own fonts, colors, and
structure, and the reader pays for the drift. This skill is where the
look and the bar live. eli5 renders with it (other pages follow
page); invoked
directly, it renders a one-off explainer of whatever the argument
names.
One self-contained .html file, tuned entirely for reading: there is
no hosting, no publish step, no capability layer to design for. Inline
CSS in a single <style> block, inline SVG for every drawing, no
external requests of any kind: no CDN, no web fonts, no remote images,
no scripts unless the page genuinely needs interaction, and then only
vanilla inline JS. System font stacks only. Target well under 200KB.
Write it to ./tmp/ (or the caller's stated destination), then open it
unless the caller says not to. Inside Pane (PANE_SESSION_ID is set), run
runpane panels open --file <path> --source agent --yes --json; it opens a
browser tab in split view beside the conversation. Elsewhere use the system
browser (open on macOS, xdg-open on Linux).
Copy this block verbatim as the start of the style sheet. Extend it only by adding tokens, never by restyling these.
:root {
--paper: #FAF8F5; --ink: #1F2328; --ink-soft: #5A5F66;
--line: #E4DFD7; --panel: #FFFFFF;
--accent: #0E7569; --accent-soft: #E3F0EE;
--warn: #B45309; --warn-soft: #F7EBDD;
--bad: #9F3A38; --bad-soft: #F6E8E7;
--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
--serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
--paper: #15191D; --ink: #E8E6E1; --ink-soft: #9BA1A8;
--line: #2C3237; --panel: #1C2126;
--accent: #2FA79A; --accent-soft: #16302D;
--warn: #D98E3D; --warn-soft: #32271A;
--bad: #CF6F6C; --bad-soft: #33211F;
}
}
Every page opens with one drawing directly after the masthead: the whiteboard sketch the rest of the page elaborates. More follow wherever a relationship, a flow, or a comparison is the point; drawing first and writing around the drawing is the intended order of work.
--panel fills, --line strokes,
--accent for the path that matters, --warn and --bad where
verdicts are part of the picture, --sans labels at 12 to 14px.viewBox set, no fixed pixel widths. A simple
subject gets a simple drawing, never a skipped one.--sans, 16px, line-height 1.6, --ink on --paper, one
centered column, max-width: 72ch, generous vertical rhythm.h1: --serif, weight 500, ~2.1rem, text-wrap: balance. One per
page. Directly under it, a one-sentence standfirst in --ink-soft..72rem, letter-spacing
.1em, --accent) above an h2 (~1.25rem). Sections are numbered
when order matters and unnumbered when it does not.--mono on --panel with a --line border. Prose lines stay
under 90 characters; nothing scrolls horizontally except inside a
pre with its own overflow.The whole vocabulary. A page uses what it needs and invents nothing:
.badge: mono, uppercase, .72rem, soft background. Accent for
identity and success, warn for caution, bad for failure. Badges carry
verdicts; prose carries reasons..panel: --panel background, --line border, 6px radius, padded.
The unit of grouped content; grids of panels for comparisons
(before/after, expected/actual)..callout: a panel with a 3px left border in accent, warn, or bad.
One-paragraph emphasis, used sparingly..card: a panel with a mono eyebrow title, for repeating items
(a lesson, a promise, a dependency).details > summary: for depth the reader opts into. The page must
read complete with every details closed.Before opening the page, verify all of these; fix rather than ship:
details
closed.src, href, or url() that loads an
external resource (stylesheet, script, font, image). URLs quoted as
text or code content are fine; a page about an endpoint must be able
to print it.h1, sections in reading order, nothing beyond the component
vocabulary above.MAmattpocock/skills336k近 7 天新增 4,217 个 star
AFaffaan-m/ECC314k近 7 天新增 3,503 个 star
FIfirecrawl/firecrawl214k近 7 天新增 4,815 个 star
ANanthropics/skills203k近 7 天新增 2,822 个 star
用 React、Tailwind 和 shadcn/ui 构建多组件页面。
ANanthropics/skills203k近 7 天新增 2,822 个 star