Generates documentation for custom elements from their manifest data, including usage examples, attribute/slot/event references, and styling guides. Matches existing project conventions.
Ships in cem. 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.
Generate documentation for custom elements based on their manifest API surface, including usage examples and integration guidance.
Read the target element's full manifest data:
cem://element/{tagName}
And each sub-resource for complete coverage:
cem://element/{tagName}/attributes
cem://element/{tagName}/slots
cem://element/{tagName}/events
cem://element/{tagName}/css/parts
cem://element/{tagName}/css/custom-properties
cem://element/{tagName}/css/states
Also read project-level guidelines for tone and conventions:
cem://guidelines
!cat ${CLAUDE_SKILL_DIR}/html-comment-syntax.md
Search the project for existing documentation patterns:
Look for existing docs files to match format and structure:
docs/, documentation/, or alongside source*.stories.ts, *.stories.js)Match the project's existing doc style:
Generate HTML examples using generate_html for:
| Name | Type | Default | Description |
|---|
For enum attributes, include a sub-table or list of valid values with descriptions.
| Name | Description | Content Guidelines |
|---|
Include example HTML showing content in each slot.
| Name | Detail | Description |
|---|
Include JavaScript examples showing how to listen for and handle each event.
CSS Custom Properties:
| Property | Default | Description |
|---|
CSS Parts:
| Part | Description |
|---|
CSS States:
| State | Description |
|---|
Include a CSS example showing common customizations.
Document any manifest-sourced accessibility patterns:
Adapt the output format to match what the user needs:
*.stories.ts with knobs for each attributeAsk the user which format they prefer if it's not clear from context.
generate_html to produce valid HTML, don't hand-write examples that might have errorscem://elements@summary for the short description, @cssprop / @csspart / @slot / @fires for API docs. Well-written JSDoc produces a better manifest, which produces better MCP and LSP support.<meta itemprop="name"> and <meta itemprop="description"> for demo metadata. Keep demos self-contained with inline imports.html tagged template literals are used for slot/part docs. Backticks in these comments (e.g. `currentColor`) break cem's TS transform because they're parsed as template literal boundaries. Escape them with ``` or avoid them.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/a11y-reviewReview custom element HTML for accessibility issues. Use when the user asks to "review accessibility", "check a11y", "audit accessibility", "find accessibility issues", or mentions "WCAG", "screen reader", "keyboard navigation", or "ARIA" in the context of custom elements.
/angularShow how to use custom elements in Angular, including required CUSTOM_ELEMENTS_SCHEMA configuration. Use when the user asks to "use in Angular", "Angular custom elements", "custom elements in Angular", "CUSTOM_ELEMENTS_SCHEMA", or mentions "Angular module", "standalone component", or "angular integration"./cem-serveSet up cem serve for custom element development. Use when the user asks to "start dev server", "set up cem serve", "preview elements", "run demos", or needs help configuring the dev server, import maps, or CSS transforms.
/cem:write-docsfrom cem
npx claudepluginhub bennypowers/cem --plugin cemOther plugins' skills for the same job