Skip to content

feat(pf-design-tokens): add analyze-modifiers skill#45

Open
srambach wants to merge 1 commit intopatternfly:mainfrom
srambach:analyze-modifiers-skill
Open

feat(pf-design-tokens): add analyze-modifiers skill#45
srambach wants to merge 1 commit intopatternfly:mainfrom
srambach:analyze-modifiers-skill

Conversation

@srambach
Copy link
Copy Markdown
Member

*Note: I believe this belongs in a new plugin for core/CSS, not in the design-tokens plugin, but since one doesn't exist I'll put it here for now.

Summary

  • Adds a new skill to discover, analyze, and document PatternFly modifier classes (pf-m-* classes)
  • Searches through component SCSS files to extract all modifier usage
  • Generates comprehensive markdown reports organized by modifier or by component
  • Provides usage statistics and identifies patterns across the design system

Use Cases

  • Document all available modifiers for a component
  • Find where a specific modifier is used across components
  • Audit modifier patterns and identify inconsistencies
  • Generate modifier reference documentation

Test plan

  • Run /analyze-modifiers on the PatternFly codebase
  • Test component-specific analysis: /analyze-modifiers for Button
  • Test modifier-specific search: /analyze-modifiers find pf-m-disabled
  • Verify output includes responsive variants and nested modifiers
  • Check that generated markdown files are properly formatted

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant