/pf-react:pf-context-genfrom pf-react
Generates structured context files for PatternFly components, including props, composition rules, and usage examples for AI-assisted development.
Ships in pf-react. 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 a structured context file that assembles PatternFly component documentation, prop schemas, composition patterns, and usage examples into a single reference optimized for AI assistant consumption. Use this to produce a static context file for sharing or committing to a repo. For live, single-component lookups during development, use the PatternFly MCP server directly.
If PatternFly documentation tools are available, use them to verify component props, composition rules, and usage patterns before generating context. Without documentation available, rely on the output structure and curation rules in this skill.
The user provides one of:
First, check the request scope. If the user explicitly requests a non-PatternFly framework (Material UI, Chakra, Ant Design, or plain HTML), decline generation and explain that this skill generates PatternFly context only. You may offer an equivalent PatternFly component as an alternative, but do not substitute PatternFly automatically.
Determine the context scope:
For component groups, include the composition relationships — which components wrap which, required vs optional children, and prop threading patterns.
@patternfly/react-core (or react-table, react-charts/victory, etc.) importbase.cssWhen multiple components are requested, include a relationship section showing how they compose:
| Relationship | Example |
|---|---|
| Parent → Child (required) | Form → FormGroup → input control |
| Wrapper (optional) | Toolbar around Table for filtering |
| Sibling coordination | Pagination syncs with Table via shared state |
| Provider pattern | SelectList inside Select with SelectOption children |
What to include:
ariaTitle on charts, label on FormGroup)What to exclude:
pf-css-migration-scan and pf-react-migration-scanFormatting for AI consumption:
tsx language tags for all examplesPF6 accuracy:
pf-coding-standards agent — it is active during generation and covers the authoritative rulesOutput a single markdown context file with this structure:
# PatternFly Context: [Component/Feature Name]
## Quick Start
[Minimum viable code snippet]
## Components
### [ComponentName]
**Import:** `import { ComponentName } from "@patternfly/react-core";`
**Key Props:**
| Prop | Type | Default | Purpose |
|------|------|---------|---------|
**Usage:**
[Code example showing common pattern]
## Composition
[Relationship map if multiple components]
## Common Patterns
[2-3 real-world usage patterns combining the components]
Output the context file inline. If the user wants to save it, they can copy or redirect output to a file.
eval/cases/component-group/annotations.yaml (opens in a new tab)eval/cases/component-group/input.yaml (opens in a new tab)eval/cases/feature-context/annotations.yaml (opens in a new tab)eval/cases/feature-context/input.yaml (opens in a new tab)eval/cases/non-pf-decline/annotations.yaml (opens in a new tab)eval/cases/non-pf-decline/input.yaml (opens in a new tab)eval/cases/single-component/annotations.yaml (opens in a new tab)eval/cases/single-component/input.yaml (opens in a new tab)eval/eval.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rh-uxd/ai-helpers --plugin pf-react16 skills in this plugin
/pf-chart-genGenerate PatternFly chart components with theming, responsive sizing, and accessibility. Use when building charts, data visualizations, or dashboards with PatternFly./pf-chatbot-bundle-auditAudit PatternFly ChatBot imports for tree-shaking opportunities. Use when optimizing ChatBot bundle size or after upgrading @patternfly/chatbot.
/pf-component-checkAudit PatternFly React component nesting, wrapper hierarchies, and layout structure. Use when scanning for hierarchy violations or debugging spacing caused by missing wrapper components.Other plugins' skills for the same job