Skip to content

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.

When you mention image-related tasks in natural language, Claude recognizes the intent and activates floimg’s capabilities. No slash command needed.

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

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.

The skill provides access to these MCP tools:

Create any type of image with intent-based routing.

{
"intent": "bar chart showing monthly sales",
"params": { "type": "bar", "data": {...} },
"saveTo": "./charts/sales.png"
}

Apply transforms to an existing image.

{
"imageId": "img_abc123",
"operation": "resize",
"params": { "width": 800, "height": 600 }
}

Save an image to filesystem or cloud.

{
"imageId": "img_abc123",
"destination": "s3://my-bucket/images/chart.png"
}

Execute multiple steps in one call.

{
"steps": [
{ "generate": { "intent": "hero image", "params": {...} } },
{ "transform": { "operation": "resize", "params": { "width": 1200 } } },
{ "save": { "destination": "./output/hero.png" } }
]
}

Analyze an image with AI vision.

{
"imageId": "img_abc123",
"prompt": "Describe what data this chart is showing"
}

The skill uses these rules to route requests:

User IntentGeneratorRequired Params
Photo/illustration/sceneopenai(prompt from intent)
Bar/line/pie chartquickcharttype, data
Flowchart/sequence/diagrammermaidcode
QR code/barcodeqrtext
Webpage screenshotscreenshoturl
Custom D3 visualizationd3render, data

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

You: “Create a QR code for my website and make it 500px wide”

Claude:

  1. Calls generate_image for the QR code
  2. Calls transform_image with resize operation
  3. Reports the final file location

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" } }
]
}
  1. Be specific with data: For charts, provide clear labels and values
  2. Mention the output format: “PNG”, “500px wide”, “for social media”
  3. Describe the style: “minimal”, “corporate”, “colorful”
  4. Specify destinations: “save to ./images/” or “upload to S3”

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 patterns
name: image-workflows
description: Create and execute image workflows using FloImg
allowed-tools:
- mcp__floimg__generate_image
- mcp__floimg__transform_image
- mcp__floimg__save_image
- mcp__floimg__run_pipeline
- mcp__floimg__analyze_image

If you prefer explicit commands only, you can configure Claude Code to skip skill auto-discovery. However, the slash commands will still work.