Skip to content

Add skill for identifying icons from Figma designs#33

Open
jeff-phillips-18 wants to merge 1 commit intopatternfly:mainfrom
jeff-phillips-18:figma-icon-finder
Open

Add skill for identifying icons from Figma designs#33
jeff-phillips-18 wants to merge 1 commit intopatternfly:mainfrom
jeff-phillips-18:figma-icon-finder

Conversation

@jeff-phillips-18
Copy link
Member

Summary

Adds a new /figma-icon-finder skill to the pf-figma plugin that helps developers identify PatternFly icons used in Figma mockups and
provides the correct React import statements.

  • Analyzes Figma design screenshots using Claude's multimodal capabilities
  • Matches visual icons to PatternFly React icon components
  • Provides import statements and usage examples
  • Supports both brief and detailed output formats
  • Includes comprehensive reference documentation for 100+ common PatternFly icons

Changes

  • New skill: plugins/pf-figma/skills/figma-icon-finder/SKILL.md
    • Workflow for analyzing Figma screenshots
    • User preferences for output format (brief vs. detailed)
    • Handling of component-managed icons (checkboxes, tree views, etc.)
    • Accessibility reminders and best practices
  • Icon reference: plugins/pf-figma/skills/figma-icon-finder/references/common-icons.md
    • Categorized list of 100+ PatternFly icons
    • Visual descriptions for matching
    • Usage patterns and color guidelines

Usage

# Analyze a Figma screenshot
/figma-icon-finder @mockup.png                                                                                                               
                                                                                                                                             
# Analyze from path                                                                                                                          
/figma-icon-finder ~/Downloads/design.png                                                                                                    

Test plan

  • Skill follows SKILL.md format conventions
  • Clear descriptions and argument hints in frontmatter
  • Workflow steps are well-documented
  • Icon reference is comprehensive and organized
  • Examples demonstrate both brief and detailed output formats
  • Test with actual Figma mockup screenshots (manual testing recommended)

References

🤖 Generated with https://claude.com/claude-code

@@ -0,0 +1,412 @@
---
Copy link
Collaborator

Choose a reason for hiding this comment

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

At 412 lines this is well over the 200-line guideline — could the output format templates (Brief and Detailed sections) be extracted to reference files like you did with common-icons.md? That'd bring the core instructions way down.

name: figma-icon-finder
description: Identifies PatternFly icons used in Figma mockups and provides the correct import statements for React components. Works with any PatternFly-based application.
argument-hint: "[path/to/figma-screenshot.png] or [figma-url] or use @file for autocomplete"
allowed-tools: Read, WebFetch, AskUserQuestion
Copy link
Collaborator

Choose a reason for hiding this comment

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

allowed-tools and argument-hint in frontmatter are Claude Code specific — Cursor would ignore these. Same with the AskUserQuestion tool reference on line 120. Could these be rephrased to be tool-agnostic (e.g., "ask the user" instead of "use the AskUserQuestion tool")?

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.

2 participants