bennypowers/cem/docs-health

Claude Code and agent skill by bennypowers/cem

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Audit custom element manifest documentation for completeness and quality. Use when the user asks to "check docs", "audit documentation", "review manifest quality", "find missing descriptions", "docs health", or mentions "undocumented" attributes, slots, events, or CSS properties.

Install

npx vskill@latest install bennypowers/cem/docs-health

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as bennypowers/cem/docs-health.

Documentation Health Check

Audit custom element manifests for documentation completeness and quality using cem health.

Workflow

Phase 1: Run Health Analysis

Run cem health with JSON output to get structured scoring data:

bash
cem health --format json

To filter to specific components or modules:

bash
# 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:

json
{
"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)"
]
}
Phase 2: Interpret Results

The health categories scored by cem health are:

CategoryWhat it checks
descriptionElement has a description and summary
attributesEvery attribute has a description, type, and default
slotsEvery slot has a description
cssCSS custom properties, parts, and states have descriptions
eventsEvery event has a description and type
demosElement has demo links

Status values:

  • pass (>=80%): Well documented
  • warn (40-79%): Has gaps
  • fail (<40%): Major gaps
Phase 3: Report

Present the results in a readable format. Use the JSON data to build:

markdown
## 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]
Phase 4: Deeper Investigation (Optional)

If the user wants more detail on specific gaps, read the element's MCP resources:

text
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.

Phase 5: Suggesting Fixes

When reporting gaps, show the user how to fix them.

!cat ${CLAUDE_SKILL_DIR}/html-comment-syntax.md

Guidelines

  • Use `cem health` as the source of truth: Don't reinvent the scoring — it already checks descriptions, types, defaults, etc.
  • Surface recommendations first: The recommendations array is sorted by impact — present those prominently
  • Suggest, don't fabricate: Flag gaps for the element author to fill, don't invent descriptions
  • Flag inconsistencies: If some elements score 100% and others score 30%, highlight the gap
  • Use `--component` for focused audits: When the user asks about a specific element, filter to avoid noise

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
42
Repository forks
4
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 10 Jun 2026, 5 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bennypowers/cem/docs-health/badge)](https://verified-skill.com/skills/bennypowers/cem/docs-health)

Something wrong with this skill or its page? Tell us.