/pf-workshop:pf-write-example-descriptionfrom pf-workshop
Writes and refines example descriptions for PatternFly.org component and demo pages. Helps developers draft clear, on-brand prose for example markdown files.
Ships in pf-workshop. 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.
Use this skill when a PatternFly developer needs to write or edit:
### Example name (h3) and above the ```ts file='./ExampleName.tsx' ``` block in packages/react-core/src/components/*/examples/*.md. This content appears on the React tab of component pages on PatternFly.org.### Demo name in packages/react-core/src/demos. Demos appear as a separate Demos tab on the component/pattern page (alongside React examples, HTML, Design guidelines, and sometimes Accessibility).Content should be clear, on-brand, and cross-linked where helpful. For component examples, use a concept intro only when the example introduces unique functionality or the primary use of the component (e.g. Basic); for variations and follow-on examples, jump straight to the benefit/implementation (e.g. "To remove the home link…"). See "Lead with the benefit (component examples)" below. The skill can also be used for short intros (e.g. composable blurbs under ## Examples or an intro under ## Demos). Apply this skill only when the user asks for help writing or editing example or demo descriptions; do not invoke it proactively. After completing a request, you may offer once to check the file for other opportunities.
.../components/*/examples/*.md) or demos (.../demos/**/*.md), and the specific example or demo (heading + ts file).Call the PatternFly MCP to load current guidance:
searchPatternFlyDocs with searchQuery: "writing" to find content design resources.usePatternFlyDocs with name: "Writing" to fetch brand voice, best practices, design guidelines, and accessibility guidance.isExpanded). Example and demo headings (h3): Use sentence case—only the first word and proper nouns capitalized (e.g. "Read only", "Expanded with array", "Inline compact with truncation"). Component names: Do not capitalize component names unless at the beginning of a sentence. When referring to the React component in a code way, use angle-bracket form: <ComponentName>. Only mention the React component (e.g. <DataList>) when multiple components are involved or it helps clarify the sentence—otherwise just "use propName" or "set propName" is enough (e.g. "To reduce vertical spacing between rows, use isCompact." not "set isCompact on <DataList>"). In running prose, use lowercase: "the page component," "the notification drawer."When to use a concept intro: If the example is the first or Basic one and introduces what the component is, use a concept intro. Sometimes you’ll also want a concept intro for a later example when there are complex implementation details to share—that’s an option when it helps the reader.
When to skip the concept intro: For variations and follow-on examples (e.g. "Without home link", "With heading", "With dropdown"), jump straight to the benefit/implementation. Start with "To [do x], use…" or "To [achieve y],…" so the reader still sees the outcome first, but don’t repeat what the component is.
When in doubt: Prefer the shorter description and one clear benefit sentence.
With concept intro (e.g. Basic / primary use):
<ComponentName> (e.g. "A <DataListItem> includes a <DataListItemRow> containing one or more <DataListItemCells>.")<DataListCell> you can control the layout of content by using isFilled and alignRight.") and any real-use caveats.Preferred example (data list Basic):
A basic data list displays a structured set of items, each with one or more cells in a row.
A `<DataListItem>` includes a `<DataListItemRow>` containing one or more `<DataListItemCells>`. In a `<DataListCell>` you can control the layout of content by using `isFilled` and `alignRight`.
Another example (back to top):
A back to top component gives users a quick way to return to the top of a long page. This example sets `isAlwaysVisible` so the control is visible in the short demo. In a real page, the control should appear after the user scrolls 400px.
Without concept intro (variation / follow-on): Start with "To [benefit], use…" and do not name the React component unless multiple components are involved or it clarifies. Prefer "use propName" over "set propName on <ComponentName>."
To reduce vertical spacing between rows, use `isCompact`.
To remove the home link from the breadcrumb, use [prop or approach].
Use the same "To [benefit], use…" shape for variation examples; only omit the concept intro sentence so you don’t repeat the concept on every example.
Avoid / Prefer:
isCompact."isBordered to an Avatar will add a border." Prefer: "To add a border to an avatar and further separate it from the background, use isBordered."For demos, prefer this format so readers know what the demo shows and how it’s built:
propName prop is used to [effect]." / "A ref, which is passed to [thing] and used with the [component]'s onExpand callback to [effect]."Example (descriptive style):
A basic notification drawer opens from the masthead and displays a list of notifications.
This demo includes:
- A `ref`, which is passed to the notification drawer and used with the page component's `onNotificationDrawerExpand` callback to move focus into the drawer when it opens.
- Notification items with a header and body, in both "read" and "unread" states.
Use lowercase for component names in prose ("the page component"); use <ComponentName> when referring to the React component in a code way (e.g. "pass ref to the <Page> component").
Keep bullets concise; use backticks for prop/component names. Length: A very simple demo may need only an opening sentence (no bullets). Other demos may have multiple sentences and lists of 5+ bullets—that’s fine. What matters is capturing the unique aspects of the demo, why the demo matters, and what it is showing to users. Cross-link to components or patterns when directly relevant (same rules as component examples).
### Example name line and before the ```ts file='./...' ``` block.### Demo name line and before the ```ts file='./...' ``` block (demos may use isFullscreen on the code block).Component examples (packages/react-core/src/components/*/examples/*.md):
### Example heading
**If primary/unique (e.g. Basic):** [Concept intro: "A [component] gives users [benefit]."] [Technical implementation sentence(s).] **If variation/follow-on:** [Start with "To [benefit], use…" or "To [do x],…"; no concept intro.] Optional [cross-link](/components/other) if relevant.
```ts file='./ExampleName.tsx'
**Demos** (`packages/react-core/src/demos/**/*.md`):
```markdown
## Demos
Optional intro paragraph under ## Demos (e.g. focus management note).
### Demo heading
[Varied opening: e.g. "A basic [thing] opens from… and displays…" or "You can [xyz] by [abc]."]
This demo includes:
- [Bullet tying prop/feature to effect, or describing element.]
- [Bullet…]
```ts file='./examples/DemoName.tsx' isFullscreen
- Descriptions are optional but recommended; some examples and demos have none.
- Same-file anchors (component examples): from the exact heading text, lowercased, spaces → hyphens (e.g. "Cards as tiles" → `#cards-as-tiles`).
## Link conventions (PatternFly.org)
| Target | Path form | Example |
|--------|-----------|--------|
| Component (no subsection) | `/components/<id-lowercase>` | `/components/card`, `/components/button` |
| Component (with subsection in frontmatter) | `/components/<subsection>/<id-lowercase>` | `/components/forms/form`, `/components/menus/menu` |
| Component design guidelines | `/components/.../design-guidelines` | `/components/tooltip/design-guidelines` |
| Component accessibility | `/components/.../accessibility` | `/components/alert/accessibility` |
| Pattern | `/patterns/<name>` | `/patterns/primary-detail` |
| Same-page example | `#anchor` | `#selectable`, `#cards-as-tiles` |
| Content design (generic) | `/content-design/overview` | Use when linking to content design generally |
| Content design (specific) | `/content-design/...` | `/content-design/writing-guides/tooltips` |
| Foundations and styles | `/foundations-and-styles/...` | `/foundations-and-styles/iconography`, `/foundations-and-styles/design-tokens/overview` |
Determine component paths by checking the target component’s MD frontmatter for `subsection` (e.g. `subsection: forms` → `/components/forms/form`). Design guidelines and some writing guides live in patternfly-org; the docs site exposes the paths above.
## Quality checks
Before suggesting the description:
- [ ] When in doubt, prefer the shorter description and one clear benefit sentence.
- [ ] No semicolons in descriptions. Prefer commas or new sentences (em dashes occasionally).
- [ ] Matches brand voice (friendly, clear, no jargon, "you" and active voice).
- [ ] Example and demo headings (h3) in sentence case (first word and proper nouns only). Component names: lowercase in prose unless starting a sentence; use `<ComponentName>` when referring to the React component as code. Do not bold component names in example or demo descriptions.
- [ ] **Component examples:** Concept intro only for unique/primary-use examples (e.g. Basic); optional component-structure sentence using `<ComponentName>` when it helps; variation examples start with "To [benefit], use…" and omit component name unless multiple or clarifying. Props in backticks.
- [ ] **Demos:** Varied opening; "In this demo:" or "This demo includes:" with bullet list of props/features and what they do.
- [ ] Cross-links only where directly relevant; use subsection for nested components.
- [ ] Relative URLs only; descriptive link text.
- [ ] Suggested text shared in raw markdown so the user can copy and paste.
## Optional: when the user hasn’t specified a file or example
If the user asks for help with "example descriptions" or "demo descriptions" but doesn’t point to a file or example:
- Ask which file they want to work on (component examples path or demos path) and which example or demo (heading or ts file name).
- Optionally list examples or demos in that file that are missing descriptions so they can choose.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rh-uxd/ai-helpers --plugin pf-workshop18 skills in this plugin
/pf-analytics-repo-pruningFlag archived or inactive repos in PatternFly Analytics repos.json for removal. Use when auditing tracked codebases or pruning stale entries from analytics./pf-bug-triageTriage PatternFly bug reports — assess completeness, suggest fixes, identify affected components, and recommend assignees. Use when reviewing new bug issues or preparing them for assignment./pf-content-reviewReview content against PatternFly and Red Hat voice and tone standards. Use when contributing to patternfly.org, writing UI copy for Red Hat products, reviewing design guidelines, or editing externally sourced or AI-generated content./pf-create-issueCreate well-structured GitHub issues for PatternFly repositories with templates, follow-up tracking, and duplicate detection. Use when filing bugs, feature requests, or cross-repo follow-ups./pf-css-var-scanAnalyze --pf- CSS custom property usage and naming patterns in PatternFly SCSS. Use when auditing variable definitions, debugging missing tokens, or finding unused custom properties./pf-duplicate-epicClone a Jira epic from another project into the PF Jira space with back-links and feature attachment. Use when duplicating COST or cross-project epics into PF for tracking.Other plugins' skills for the same job