From 8b90b46ee9e1f0eedd460cfab5266f6b97066af2 Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Thu, 13 Aug 2026 10:47:07 -0400 Subject: [PATCH] chore: add review docs skill --- .claude/skills/review-docs/SKILL.md | 282 ++++++++++++++++++++++++++++ 1 file changed, 282 insertions(+) create mode 100644 .claude/skills/review-docs/SKILL.md diff --git a/.claude/skills/review-docs/SKILL.md b/.claude/skills/review-docs/SKILL.md new file mode 100644 index 0000000000..6824bcd156 --- /dev/null +++ b/.claude/skills/review-docs/SKILL.md @@ -0,0 +1,282 @@ +--- +name: review-docs +description: > + Review a PatternFly Element's inline documentation quality against + cem conventions. Checks CSS custom property comments, slot and part + HTML comments, JSDoc tags, and cem health. Use when asked to + "review docs", "check documentation", "audit docs", or + "check doc comments". +tools: Read, Glob, Grep, Bash +--- + +# Documentation Review + +Review a PatternFly Element's inline documentation against project +conventions and cem analyzer requirements. Documentation feeds the +custom elements manifest which powers LSP autocomplete, MCP-based +AI assistance, and dev server knobs. + +Reference: https://bennypowers.dev/cem/docs/usage/documenting-components/ + +## Conventions + +These conventions follow the cem documentation guide. The goal is +co-location: document each API surface next to the code it describes. + +### Slots and Parts — HTML Comments in Template + +Prefer inline HTML comments over JSDoc `@slot` and `@csspart` tags. +HTML comments stay co-located with the markup they describe. The cem +analyzer extracts slot and part info from template comments — JSDoc +`@slot` and `@csspart` tags are redundant and SHOULD be removed. + +Three comment formats are supported, in order of complexity: + +**Plain comment** (description only): + +```html + + + + +