/playhtml:writing-developer-docsfrom playhtml
Provides plain-language guidelines for writing developer-facing docs, READMEs, guides, and API references. Focuses on clarity, tradeoffs, and scannable structure.
Ships in playhtml. 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.
None: SKILL.md is the whole skill.
Write for a developer who is busy, skimming, and trying to get something working. Plain, concrete, and short beats clever and complete. Optimize for "I understood it on the first read and knew what to do next."
Say the thing directly. Cut the marketing voice, the metaphors, and the throat-clearing.
{ count: 0 }, not 0" beats "prefer structured defaults."❌
can-mirror— no data model at all. The library mirrors the element's own DOM to everyone, so the state you share is the DOM. The general-purpose escape hatch.
✅
can-mirror: The DOM holds the state. All changes to the element are automatically synced (attributes, children, form state). No fine-grained control over what is synced, but very simple to get started because you can just write normal HTML, CSS, and JavaScript.
The good version names the model ("the DOM holds the state"), lists what's covered, states the tradeoff, and tells them why they'd pick it — in plain words.
User-facing docs live in apps/docs/ (Astro + Starlight). When you change docs:
<Tabs syncKey="framework"> with
<TabItem label="Vanilla HTML"> / <TabItem label="React">. Labels must be
exactly those strings on every page (Starlight syncs by label text).
MDX gotcha: a markdown list as the last content before </TabItem> fails to
parse — end the tab on prose or a code block.<Tabs> caveat: Starlight builds the right-rail table of contents
from every ### on the page, including ones inside inactive tabs. Wrapping a
whole page in one framework toggle therefore shows duplicate / hidden-tab
headings in the ToC and collides anchor slugs. If you need a page-level toggle,
demote per-example headings to bold labels so they stay out of the ToC.base: "/docs" means asset URLs need the /docs/ prefix (/docs/foo.png).packages/ changes public behavior, update the matching
apps/docs/ page in the same change, and add a changeset.internal-docs/ (gitignored), never in
apps/docs/.</TabItem>.bun build-site).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub spencerc99/playhtml --plugin playhtml2 skills in this plugin
Other plugins' skills for the same job