π¦ ClawHub
Figma
by @maddiedreese
Professional Figma design analysis and asset export. Use for extracting design data, exporting assets in multiple formats, auditing accessibility compliance, analyzing design systems, and generating comprehensive design documentation. Read-only analysis of Figma files with powerful export and reporting capabilities.
TERMINAL
clawhub install figmaπ About This Skill
name: figma description: Professional Figma design analysis and asset export. Use for extracting design data, exporting assets in multiple formats, auditing accessibility compliance, analyzing design systems, and generating comprehensive design documentation. Read-only analysis of Figma files with powerful export and reporting capabilities.
Figma Design Analysis & Export
Professional-grade Figma integration for design system analysis, asset export, and comprehensive design auditing.
Core Capabilities
1. File Operations & Analysis
Example usage:
2. Design System Management
Example usage:
3. Bulk Asset Export
Example usage:
4. Accessibility & Quality Analysis
Example usage:
Quick Start
Authentication Setup
# Set your Figma access token
export FIGMA_ACCESS_TOKEN="your-token-here"Or store in .env file
echo "FIGMA_ACCESS_TOKEN=your-token" >> .env
Basic Operations
# Get file information and structure
python scripts/figma_client.py get-file "your-file-key"Export frames as images
python scripts/export_manager.py export-frames "file-key" --formats png,svgAnalyze design system consistency
python scripts/style_auditor.py audit-file "file-key" --generate-htmlCheck accessibility compliance
python scripts/accessibility_checker.py "file-key" --level AA --format html
Workflow Patterns
Design System Audit Workflow
1. Extract file data β Get components, styles, and structure 2. Analyze consistency β Check for style variations and unused elements 3. Generate report β Create detailed findings and recommendations 4. Manual implementation β Use findings to guide design improvementsAsset Export Workflow
1. Identify export targets β Specify frames, components, or nodes 2. Configure export settings β Set formats, sizes, and naming conventions 3. Batch process β Export multiple assets simultaneously 4. Organize output β Structure files for handoff or implementationAnalysis & Documentation Workflow
1. Extract design data β Pull components, styles, and design tokens 2. Audit compliance β Check accessibility and brand consistency 3. Generate documentation β Create style guides and component specs 4. Export deliverables β Package assets for development or client handoffResources
scripts/
figma_client.py - Complete Figma API wrapper with all REST endpointsexport_manager.py - Professional asset export with multiple formats and scalesstyle_auditor.py - Design system analysis and brand consistency checkingaccessibility_checker.py - Comprehensive WCAG compliance validation and reportingreferences/
figma-api-reference.md - Complete API documentation and examplesdesign-patterns.md - UI patterns and component best practicesaccessibility-guidelines.md - WCAG compliance requirementsexport-formats.md - Asset export options and specificationsassets/
templates/design-system/ - Pre-built component library templatestemplates/brand-kits/ - Standard brand guideline structurestemplates/wireframes/ - Common layout patterns and flowsIntegration Examples
With Development Workflows
# Generate design tokens for CSS
python scripts/export_manager.py export-tokens "file-key" --format cssCreate component documentation
python scripts/figma_client.py document-components "file-key" --output docs/
With Brand Management
# Audit brand compliance in designs
python scripts/style_auditor.py audit-file "file-key" --brand-colors "#FF0000,#00FF00,#0000FF"Extract current brand colors for analysis
python scripts/figma_client.py extract-colors "file-key" --output brand-colors.json
With Client Deliverables
# Generate client presentation assets
python scripts/export_manager.py client-package "file-key" --template presentationCreate development handoff assets
python scripts/export_manager.py dev-handoff "file-key" --include-specs
Limitations & Scope
Read-Only Operations
This skill provides read-only access to Figma files through the REST API. It can:What It Cannot Do
For file modifications, you would need to develop a Figma plugin using the Plugin API.
Technical Features
API Rate Limiting
Built-in rate limiting and retry logic to handle Figma's API constraints gracefully.Error Handling
Comprehensive error handling with detailed logging and recovery suggestions.Multi-Format Support
Export assets in PNG, SVG, PDF, and WEBP with platform-specific sizing.π‘ Examples
Authentication Setup
# Set your Figma access token
export FIGMA_ACCESS_TOKEN="your-token-here"Or store in .env file
echo "FIGMA_ACCESS_TOKEN=your-token" >> .env
Basic Operations
# Get file information and structure
python scripts/figma_client.py get-file "your-file-key"Export frames as images
python scripts/export_manager.py export-frames "file-key" --formats png,svgAnalyze design system consistency
python scripts/style_auditor.py audit-file "file-key" --generate-htmlCheck accessibility compliance
python scripts/accessibility_checker.py "file-key" --level AA --format html