Skip to content

Eval: pf-component-structure #125

Description

@patternfly-jira-sync

Write an eval suite for the pf-component-structure skill (react plugin). This skill audits PF React component nesting, wrapper hierarchies, and layout structure.

Discriminating signal: PF-specific nesting rules and required wrapper components (e.g., PageSection inside Page, CardBody inside Card). Baseline Claude may accept invalid nesting or miss subtle hierarchy violations that cause spacing bugs in PF layouts.

MCP dependency: None — full eval with React component fixtures.

Acceptance criteria:

  • eval/pf-component-structure/eval.yaml exists following the pf-unit-test-generator template

  • 5+ test cases covering explicit invocation, implicit/contextual prompts, and at least 1 negative control (e.g., correctly structured component)

  • Inline Python judges test discriminating behavior (PF hierarchy rule enforcement, not general React component structure advice)

  • With-skill/without-skill A/B delta documented

  • All judges pass at defined thresholds


Jira Issue: PF-4344

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions