Skip to content

feat(skills): add PatternFly 6 development skills for Claude Code#6

Merged
jpuzz0 merged 4 commits intomainfrom
claude-skill
Apr 2, 2026
Merged

feat(skills): add PatternFly 6 development skills for Claude Code#6
jpuzz0 merged 4 commits intomainfrom
claude-skill

Conversation

@guimou
Copy link
Copy Markdown
Collaborator

@guimou guimou commented Dec 16, 2025

Closes #4

Summary

  • Add a comprehensive Claude Code skill for PatternFly 6 development that auto-activates when working with @patternfly imports
  • Include import patterns, styling rules, accessibility guidance, and troubleshooting documentation
  • Provide validation scripts for checking import patterns and legacy class usage
  • Add AGENTS.md and CLAUDE.md for AI agent guidance
  • Update main README with Claude Code skill installation instructions

New Files

File Purpose
skills/patternfly-6-development/SKILL.md Main skill definition with essential rules
skills/patternfly-6-development/IMPORTS.md Complete import patterns for all PF packages
skills/patternfly-6-development/STYLING.md CSS classes and design token reference
skills/patternfly-6-development/TROUBLESHOOTING.md Common issues and solutions
skills/patternfly-6-development/README.md Installation and usage documentation
skills/patternfly-6-development/scripts/*.sh Validation and documentation fetch scripts
AGENTS.md AI agent guidance for this repository
CLAUDE.md Claude Code configuration

Test Plan

  • Verify skill installs correctly to ~/.claude/skills/patternfly-6-development/
  • Test skill auto-activation when working with PatternFly components
  • Run validation scripts against a sample PatternFly project
  • Verify documentation fetch script retrieves latest docs from GitHub

Summary by CodeRabbit

  • Documentation
    • Added skill docs for a PatternFly class migration scanner that scans legacy classes, suggests PF6-safe replacements, and reports recommendation confidence.
    • Added an import checker doc that audits and provides corrected PatternFly import and CSS fixes for charts, chatbot, and component-group modules.
    • Added a project scaffolder doc with a PF6-safe starter layout, dependency guidance, and an initial quality checklist.

@@ -0,0 +1,190 @@
---
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This covers a lot of ground — I think would make sense to break it into smaller, focused skills.

For example: an import checker, a class migration scanner, and a project scaffolder. The general PF6 conventions (tokens, component-first, accessibility) could live as an agent in plugins/pf-react/agents/ since that's knowledge the AI should always follow.

CLAUDE.md Outdated
@@ -0,0 +1 @@
@AGENTS.md
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Root files like CLAUDE.md, README.md, and .gitignore have changed significantly since this PR was opened — these modifications will conflict with main. A skill contribution should only add files under plugins/, not modify root config.

@nicolethoen
Copy link
Copy Markdown
Contributor

I am happy to take what @guimou begun here and break it out according to your comments @jpuzz0
I'll push up some changes shortly

@nicolethoen nicolethoen self-assigned this Mar 26, 2026
guimou and others added 2 commits March 26, 2026 10:31
Introduce a comprehensive Claude Code skill that provides AI-assisted
PatternFly 6 development guidance. The skill auto-activates when working
with @patternfly imports, PF6 components, charts, chatbot, or
component-groups.

New files:
- SKILL.md: Main skill definition with import patterns, styling rules,
  and accessibility guidance
- IMPORTS.md: Complete import patterns for all PatternFly packages
- STYLING.md: CSS classes and design token reference
- TROUBLESHOOTING.md: Common issues and solutions
- README.md: Installation and usage documentation
- Validation scripts for import patterns and legacy class detection
- Documentation fetching script for live updates from GitHub

Also adds AGENTS.md and CLAUDE.md for AI agent guidance and updates
the main README with Claude Code skill installation instructions.

---
Signed-off-by: Guillaume Moutier <guimou@users.noreply.github.com>
Co-authored-by: Claude
description: Always-on PatternFly 6 React conventions for imports, styling, and accessibility. Use when writing, reviewing, or refactoring PatternFly React code.
---

# PatternFly 6 Conventions
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this overlaps with the existing pf-coding-standards agent (imports, CSS, class prefixes, semantic tokens, accessibility baseline). Since everything in this plugin is PF6-specific anyway, shouldn't this content just live in pf-coding-standards rather than adding a second agent with overlapping rules?


```bash
rg "pf-v5-|pf-v4-|pf-c-|pf-u-|pf-l-|pf-m-" src
rg "--pf-v6-|--pf-global-" src
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pf-m- pattern here will flag every valid PF6 modifier class (pf-m-primary, pf-m-plain, etc.) since modifiers don't carry a version prefix in PF6. That's going to produce a lot of false positives.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 2, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c00b8b64-3341-4394-ba65-3e3e176dc7a9

📥 Commits

Reviewing files that changed from the base of the PR and between c0f2184 and dcb375e.

📒 Files selected for processing (1)
  • plugins/pf-react/skills/pf-class-migration-scanner/SKILL.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • plugins/pf-react/skills/pf-class-migration-scanner/SKILL.md

📝 Walkthrough

Walkthrough

Three new skill documentation files were added under plugins/pf-react/skills/ describing: a legacy PatternFly class/token migration scanner, an import-path auditor/fixer for PatternFly packages, and a PF6-safe project scaffolder with dependencies and checklist.

Changes

Cohort / File(s) Summary
PatternFly Skills Documentation
plugins/pf-react/skills/pf-class-migration-scanner/SKILL.md, plugins/pf-react/skills/pf-import-checker/SKILL.md, plugins/pf-react/skills/pf-project-scaffolder/SKILL.md
Added three new SKILL.md files: a class migration scanner defining ripgrep scans, migration scope, replacement rules and output fields; an import checker specifying problematic import patterns, rg validations and corrected import examples; and a project scaffolder outlining starter repo, required/optional deps, CSS import guidance, and an initial quality checklist.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding PatternFly 6 development skills for Claude Code, which aligns with the documentation files added.
Linked Issues check ✅ Passed The PR adds three new skill documentation files (pf-class-migration-scanner, pf-import-checker, pf-project-scaffolder) that directly support issue #4's objective of creating reusable Claude Code skills to streamline PatternFly 6 development with auto-activation and accurate PF6-specific guidance.
Out of Scope Changes check ✅ Passed All changes are documentation files (SKILL.md) defining three PatternFly 6 development skills directly tied to issue #4's scope of creating reusable Claude Code skills.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude-skill

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jpuzz0 jpuzz0 changed the title feat(skills): add PatternFly 6 development skill for Claude Code feat(skills): add PatternFly 6 development skills for Claude Code Apr 2, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
plugins/pf-react/skills/pf-class-migration-scanner/SKILL.md (1)

1-38: LGTM!

The skill frontmatter is compliant, the migration scope is clear, and the scan commands and replacement guidance are well-defined. The output format provides a good structure for findings.

Optional: clarify token scanning intent

Line 22 searches for --pf-v6-|--pf-global- tokens, and line 29 recommends semantic tokens over "legacy token names." If --pf-v6- and --pf-global- are intended to be flagged as legacy/non-semantic tokens, consider explicitly stating this in the "Migration scope" section (lines 14-16) to make the intent clearer.

For example:

 ## Migration scope
 
 - Legacy versioned classes (`pf-v5-*`, `pf-v4-*`)
 - Unversioned legacy classes (`pf-c-*`, `pf-u-*`, `pf-l-*`)
-- Old token usage where semantic token equivalents exist
+- Non-semantic tokens (`--pf-v6-*`, `--pf-global-*`) where semantic token equivalents exist

This is purely optional and doesn't affect functionality.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@plugins/pf-react/skills/pf-class-migration-scanner/SKILL.md` around lines 1 -
38, The Migration scope should explicitly state that the patterns `--pf-v6-` and
`--pf-global-` are considered legacy/non-semantic token usages to be flagged by
the scanner; update the "Migration scope" section in SKILL.md to add a bullet
noting these token patterns are legacy token names (and therefore subject to
replacement with semantic tokens like `--pf-t--*`), and optionally add a short
clarifying sentence near the existing scan commands showing that `rg
"--pf-v6-|--pf-global-"` targets legacy token usage.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@plugins/pf-react/skills/pf-class-migration-scanner/SKILL.md`:
- Around line 1-38: The Migration scope should explicitly state that the
patterns `--pf-v6-` and `--pf-global-` are considered legacy/non-semantic token
usages to be flagged by the scanner; update the "Migration scope" section in
SKILL.md to add a bullet noting these token patterns are legacy token names (and
therefore subject to replacement with semantic tokens like `--pf-t--*`), and
optionally add a short clarifying sentence near the existing scan commands
showing that `rg "--pf-v6-|--pf-global-"` targets legacy token usage.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5b822aa7-608b-40e1-b5c2-4ea95ad7f789

📥 Commits

Reviewing files that changed from the base of the PR and between 6f106e3 and c0f2184.

📒 Files selected for processing (3)
  • plugins/pf-react/skills/pf-class-migration-scanner/SKILL.md
  • plugins/pf-react/skills/pf-import-checker/SKILL.md
  • plugins/pf-react/skills/pf-project-scaffolder/SKILL.md

Copy link
Copy Markdown
Collaborator

@jpuzz0 jpuzz0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed remaining comments. Otherwise these 3 new skills LGTM.

@jpuzz0 jpuzz0 merged commit c640690 into main Apr 2, 2026
1 check passed
@jpuzz0 jpuzz0 deleted the claude-skill branch April 2, 2026 15:40
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.

Create a Skill for Claude Code with AI guidance from this repo

3 participants