Auto-Discovery Skills
The floimg plugin includes an auto-discovery skill that lets Claude automatically detect image-related tasks and use floimg without explicit commands.
Note: Auto-discovery works with both CLI (simple tasks) and MCP (complex tasks). For complex workflows with iteration, restart Claude Code once to enable MCP.
How It Works
Section titled “How It Works”When you mention image-related tasks in natural language, Claude recognizes the intent and activates floimg’s capabilities. No slash command needed.
Trigger Words
Section titled “Trigger Words”Claude activates floimg when you mention:
- Charts & Graphs: chart, graph, visualization, bar chart, pie chart, line graph
- Diagrams: diagram, flowchart, sequence, architecture, mindmap
- QR Codes: QR, qr code, barcode
- Screenshots: screenshot, capture, webpage capture
- Images: image, picture, photo, illustration
Example Conversations
Section titled “Example Conversations”You: “Can you create a bar chart showing our Q1 through Q4 revenue?”
Claude recognizes this as a chart request and automatically uses floimg’s QuickChart generator.
You: “I need a flowchart for our user authentication process”
Claude identifies this as a diagram request and generates Mermaid code.
You: “Screenshot the homepage of our competitor’s website”
Claude uses the screenshot generator with appropriate viewport settings.
Available Tools
Section titled “Available Tools”The skill provides access to these MCP tools:
generate_image
Section titled “generate_image”Create any type of image with intent-based routing.
{ "intent": "bar chart showing monthly sales", "params": { "type": "bar", "data": {...} }, "saveTo": "./charts/sales.png"}transform_image
Section titled “transform_image”Apply transforms to an existing image.
{ "imageId": "img_abc123", "operation": "resize", "params": { "width": 800, "height": 600 }}save_image
Section titled “save_image”Save an image to filesystem or cloud.
{ "imageId": "img_abc123", "destination": "s3://my-bucket/images/chart.png"}run_pipeline
Section titled “run_pipeline”Execute multiple steps in one call.
{ "steps": [ { "generate": { "intent": "hero image", "params": {...} } }, { "transform": { "operation": "resize", "params": { "width": 1200 } } }, { "save": { "destination": "./output/hero.png" } } ]}analyze_image
Section titled “analyze_image”Analyze an image with AI vision.
{ "imageId": "img_abc123", "prompt": "Describe what data this chart is showing"}Generator Selection Guide
Section titled “Generator Selection Guide”The skill uses these rules to route requests:
| User Intent | Generator | Required Params |
|---|---|---|
| Photo/illustration/scene | openai | (prompt from intent) |
| Bar/line/pie chart | quickchart | type, data |
| Flowchart/sequence/diagram | mermaid | code |
| QR code/barcode | qr | text |
| Webpage screenshot | screenshot | url |
| Custom D3 visualization | d3 | render, data |
Workflow Patterns
Section titled “Workflow Patterns”Pattern 1: Simple Generation
Section titled “Pattern 1: Simple Generation”You: “Create a bar chart showing January: 100, February: 150, March: 200”
Claude calls generate_image with:
- intent: “bar chart”
- params: structured Chart.js configuration
- saveTo: auto-generated path
Pattern 2: Generate and Transform
Section titled “Pattern 2: Generate and Transform”You: “Create a QR code for my website and make it 500px wide”
Claude:
- Calls
generate_imagefor the QR code - Calls
transform_imagewith resize operation - Reports the final file location
Pattern 3: Full Pipeline
Section titled “Pattern 3: Full Pipeline”You: “Create a hero image, resize for social, add caption, upload to S3”
Claude uses run_pipeline with:
{ "steps": [ { "generate": { "intent": "hero image...", "params": {...} } }, { "transform": { "operation": "resize", "params": { "width": 1200, "height": 630 } } }, { "transform": { "operation": "addCaption", "params": { "text": "...", "position": "bottom" } } }, { "save": { "destination": "s3://bucket/hero.png" } } ]}Best Practices
Section titled “Best Practices”- Be specific with data: For charts, provide clear labels and values
- Mention the output format: “PNG”, “500px wide”, “for social media”
- Describe the style: “minimal”, “corporate”, “colorful”
- Specify destinations: “save to ./images/” or “upload to S3”
Skill Configuration
Section titled “Skill Configuration”The skill is defined in the plugin’s skills/image-workflows/ directory:
skills/└── image-workflows/ ├── SKILL.md # Skill definition and routing ├── reference.md # API reference └── examples.md # Common patternsSkill Metadata
Section titled “Skill Metadata”name: image-workflowsdescription: Create and execute image workflows using FloImgallowed-tools: - mcp__floimg__generate_image - mcp__floimg__transform_image - mcp__floimg__save_image - mcp__floimg__run_pipeline - mcp__floimg__analyze_imageDisabling Auto-Discovery
Section titled “Disabling Auto-Discovery”If you prefer explicit commands only, you can configure Claude Code to skip skill auto-discovery. However, the slash commands will still work.