/pf-react:pf-form-genfrom pf-react
Generates PatternFly React form components with validation, layout, and accessibility. Handles simple, complex, and wizard forms from descriptions, TypeScript interfaces, or existing components.
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 complete PatternFly React form component with proper structure, validation, and accessibility.
Use the PatternFly MCP server as the primary source for up-to-date component APIs and prop signatures.
The user provides one of:
First, confirm the project uses PatternFly. If the user explicitly requests a non-PatternFly framework (Material UI, Chakra, Ant Design, plain HTML) or the project has no @patternfly/react-core dependency, decline generation and explain this skill is PatternFly-specific.
Then determine the form complexity:
All form components import from @patternfly/react-core.
import {
Form,
FormGroup,
FormHelperText,
HelperText,
HelperTextItem,
TextInput,
ActionGroup,
Button,
} from "@patternfly/react-core";
Basic form skeleton:
<Form onSubmit={handleSubmit}>
<FormGroup label="Username" isRequired fieldId="username">
<TextInput
isRequired
id="username"
value={username}
onChange={(_event, value) => setUsername(value)}
validated={usernameValidated}
/>
<FormHelperText>
<HelperText>
<HelperTextItem variant={usernameValidated}>
{usernameHelperText}
</HelperTextItem>
</HelperText>
</FormHelperText>
</FormGroup>
<ActionGroup>
<Button variant="primary" type="submit">Submit</Button>
<Button variant="link" type="reset">Cancel</Button>
</ActionGroup>
</Form>
Structure:
FormGroup with a label and unique fieldIdfieldId on FormGroup must match id on the input controlActionGroup as the last child of Form for submit/cancel buttonsFormSection to visually group related fields with a titleFormFieldGroup with FormFieldGroupHeader for collapsible field clustersValidation:
validated prop on inputs with values "default", "success", "warning", or "error"FormHelperText > HelperText > HelperTextItem — set the variant prop to match the validated stateisRequired on both FormGroup and the input controlFormAlert at the top of complex forms to display a summary of validation errorsLayout:
isHorizontal on Form only when labels are short and the form is wideisWidthLimited on Form to constrain width in full-page layoutsGrid or Flex inside FormGroup only when placing multiple inputs side by side (e.g., first name + last name)Input controls — use the right PatternFly control for each field type:
TextInputTextAreaFormSelect or Select (typeahead)Checkbox or SwitchDatePickerFileUploadAccessibility:
FormGroup must have a label — use visible label text, not placeholder-only labelingfieldId/idHelperTextItem with variant="error" handles thisStates:
Output the complete form component ready to save. Include the import block, component function with state and validation logic, and the JSX form structure.
eval/cases/basic-form-validation/annotations.yaml (opens in a new tab)eval/cases/basic-form-validation/input.yaml (opens in a new tab)eval/cases/conditional-fields/annotations.yaml (opens in a new tab)eval/cases/conditional-fields/input.yaml (opens in a new tab)eval/cases/negative-non-pf/annotations.yaml (opens in a new tab)eval/cases/negative-non-pf/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
Three short reads, in order
16 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./pf-component-reuse-checkDetects custom React components in newly created or modified (uncommitted) code that overlap with PatternFly React components, suggests the PatternFly equivalent, and can replace the custom component then build to verify. Use when creating UI components, reviewing uncommitted React changes, or when the user asks to prefer PatternFly instead of a custom component./pf-context-genGenerate AI-friendly context files for PatternFly components. Use when preparing context for AI-assisted PF development, onboarding AI tools to a PF codebase, or assembling component references for prompt engineering./pf-deployDeploy a PatternFly React project to GitHub Pages using pfcli deploy. Use when publishing a prototype, sharing a demo URL, deploying to GitHub Pages, or when the user mentions pfcli deploy.npx claudepluginhub rh-uxd/ai-helpers --plugin pf-reactOther plugins' skills for the same job