Audits custom element manifest documentation for completeness and quality using cem health. Reports scores for descriptions, attributes, slots, CSS, events, and demos.
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.
Audit custom element manifests for documentation completeness and quality using cem health.
Run cem health with JSON output to get structured scoring data:
cem health --format json
To filter to specific components or modules:
# Single component
cem health --format json --component my-button
# Specific modules
cem health --format json --module src/components/button.js
The JSON output has this structure:
{
"modules": [
{
"path": "src/components/button.js",
"score": 18,
"maxScore": 20,
"declarations": [
{
"tagName": "my-button",
"name": "MyButton",
"score": 18,
"maxScore": 20,
"categories": [
{
"id": "description",
"category": "Description",
"points": 5,
"maxPoints": 5,
"status": "pass",
"findings": [...]
},
{
"id": "attributes",
"category": "Attribute Documentation",
"points": 3,
"maxPoints": 5,
"status": "warn",
"findings": [
{
"check": "attribute 'variant' has description",
"points": 1,
"max": 1
},
{
"check": "attribute 'size' has description",
"points": 0,
"max": 1,
"message": "Add a description for attribute 'size'"
}
]
}
]
}
]
}
],
"overallScore": 18,
"overallMax": 20,
"recommendations": [
"my-button: Add a description for attribute 'size' (Attribute Documentation, +1 pts)"
]
}
The health categories scored by cem health are:
| Category | What it checks |
|---|---|
description | Element has a description and summary |
attributes | Every attribute has a description, type, and default |
slots | Every slot has a description |
css | CSS custom properties, parts, and states have descriptions |
events | Every event has a description and type |
demos | Element has demo links |
Status values:
Present the results in a readable format. Use the JSON data to build:
## Documentation Health Report
### Summary
- Components audited: X
- Overall score: X/Y (Z%)
- Components passing: X
- Components needing attention: X
### Per-Component Scores
| Component | Score | Description | Attrs | Slots | Events | CSS | Demos |
|-----------|-------|-------------|-------|-------|--------|-----|-------|
| `<my-button>` | 90% | pass | pass | pass | warn | pass | fail |
### Findings
#### `<my-button>` (18/20, 90%)
- **Attribute Documentation** (warn): Add a description for attribute 'size'
- **Demos** (fail): No demo links found
### Top Recommendations
[List the recommendations from the JSON output — these are already
sorted by point impact]
If the user wants more detail on specific gaps, read the element's MCP resources:
cem://element/{tagName}
cem://element/{tagName}/attributes
cem://element/{tagName}/slots
This provides the full manifest data so you can show exactly what's missing and suggest what to document.
When reporting gaps, show the user how to fix them.
!cat ${CLAUDE_SKILL_DIR}/html-comment-syntax.md
cem health as the source of truth: Don't reinvent the scoring — it already checks descriptions, types, defaults, etc.recommendations array is sorted by impact — present those prominently--component for focused audits: When the user asks about a specific element, filter to avoid noiseWhat SKILL.md sets; muted values are Claude Code's defaults
/cem:docs-healthfrom cem
npx claudepluginhub bennypowers/cem --plugin cem12 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.
/composeSuggest and generate custom element compositions for a UI goal. Use when the user asks to "compose elements", "build a layout", "combine components", "create a page with", "what elements should I use for", or describes a UI they want to build using custom elements.
/design-apiDesign a custom element's public API e.g. attributes, properties, events, slots, CSS parts and custom properties. Use when the user asks to "design an element", "plan a component API", "create element API", "design component interface", or discusses naming conventions, API surface, or element architecture.
/gen-testsGenerate test scaffolding for custom elements using cem serve's chromeless demo UI with Playwright or Puppeteer. Use when the user asks to "generate tests", "scaffold tests", "create test boilerplate", "write tests for element", "playwright tests", "puppeteer tests", or mentions "test coverage" for custom elements.
Other plugins' skills for the same job