Skip to content
This repository was archived by the owner on Aug 11, 2026. It is now read-only.
This repository was archived by the owner on Aug 11, 2026. It is now read-only.

Enhance pf-import-check with bundle-size detection #154

Description

@patternfly-jira-sync

Extend the existing pf-import-check skill to detect bundle-size anti-patterns in addition to import correctness. PF bundle bloat is almost entirely caused by import patterns — barrel imports from @patternfly/react-icons (1.8MB per SSR chunk), full patternfly.css instead of per-component CSS, and icon tree-shaking failures.

AC:

  • pf-import-check detects barrel imports from @patternfly/react-icons and suggests deep imports

  • Detects full patternfly.css imports and suggests per-component CSS alternatives

  • Detects duplicate PF module imports that inflate bundle

  • Existing import correctness checks continue to work unchanged

  • Eval updated to cover new bundle-size detection cases

**Eval requirement: **Create a corresponding eval issue (Eval: pf-{skill-name}), link it to this story, and the eval must pass before the skill can be marked Done.


Jira Issue: PF-4485

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions