Skip to content

Commands Reference

The floimg plugin provides six slash commands for composable image workflows. The most powerful commands use MCP for session state and iteration. Simple generators work immediately via CLI.

These commands enable the full power of FloImg: multi-step pipelines, iterative refinement, and session state. Restart Claude Code once after installing the plugin to enable MCP.

Universal image generation - Generates any type of image based on your description. Uses MCP for transforms and iteration.

/floimg:image <description>
KeywordsGeneratorResult
photo, picture, illustration, sceneOpenAI/DALL-EAI-generated image
chart, graph, bar, line, pieQuickChartData visualization
flowchart, diagram, sequenceMermaidTechnical diagram
QR, qr codeQRQR code
screenshot, capture, webpageScreenshotWebpage capture
/floimg:image a golden retriever in a field at sunset
/floimg:image bar chart of monthly sales data
/floimg:image flowchart showing user registration process

The /floimg:image command benefits from MCP because:

  • Iteration: “Make it more vibrant” transforms the existing result
  • Chaining: Generate → resize → caption → save in one conversation
  • Session state: Reference images by ID across operations

If MCP is not available, the command falls back to CLI for simple one-shot generation.


Multi-step pipelines - Executes generate, transform, and save operations in sequence.

/floimg:workflow <description>

Workflows combine three operation types:

  1. Generate - Create the initial image
  2. Transform - Modify the image (resize, blur, caption, etc.)
  3. Save - Store to filesystem or cloud
OperationDescriptionKey Parameters
resizeScale imagewidth, height, fit
convertChange formatto (png, jpeg, webp)
blurGaussian blursigma (0.3-1000)
sharpenSharpen edgessigma
grayscaleRemove color-
modulateAdjust colorsbrightness, saturation, hue
roundCornersBorder radiusradius
addTextOverlay texttext, x, y, size, color
addCaptionCaption bartext, position, background
presetApply filtername (vintage, vibrant, dramatic, soft)
/floimg:workflow Create a hero image for my blog, resize to 1200x630, add "Welcome" caption, save to ./social/
/floimg:workflow Generate a product photo, create 100px and 200px thumbnails with rounded corners
/floimg:workflow Create a chart of Q1 sales, add company watermark, upload to S3 bucket

With MCP session state:

User: "Create a hero image for my AI startup"
→ generate_image(...) → imageId: "img_001"
User: "Make it more vibrant"
→ transform_image({ imageId: "img_001", operation: "modulate", params: { saturation: 1.3 } })
→ imageId: "img_002"
User: "Add our tagline at the bottom"
→ transform_image({ imageId: "img_002", operation: "addCaption", params: { text: "AI for Everyone" } })
→ imageId: "img_003"
User: "Perfect, save it"
→ save_image({ imageId: "img_003", destination: "./hero.png" })
TypeFormatExample
LocalRelative/absolute path./output/image.png
S3s3://bucket/keys3://my-bucket/images/hero.png
R2r2://bucket/keyr2://cdn-bucket/assets/logo.png
Tigristigris://bucket/keytigris://media/uploads/photo.jpg

The /floimg:workflow command requires MCP because:

  • Session state: Reference imageId without file paths
  • Efficiency: Images stay in memory between transforms
  • Natural language: Describe what you want, floimg plans the steps

These commands work immediately after installing the plugin - no MCP setup required. They use npx under the hood for quick one-shot generation.

QR code generation - Creates QR codes for URLs, text, or structured data.

/floimg:qr <content>
/floimg:qr https://floimg.com
/floimg:qr https://floimg.com/docs high quality, 500px
TypeFormat
URLhttps://example.com
Plain textAny text string
WiFiWIFI:T:WPA;S:NetworkName;P:Password;;
vCardBEGIN:VCARD...END:VCARD
Emailmailto:user@example.com
Phonetel:+1234567890

Runs under the hood:

Terminal window
npx -y @teamflojo/floimg qr "CONTENT" -o ./qr-output.png

Data visualization - Creates charts and graphs using QuickChart.

/floimg:chart <description with data>
TypeBest For
bar / horizontalBarCategorical comparisons
lineTrends over time
pie / doughnutParts of a whole
radarMulti-variable comparison
scatter / bubbleCorrelation analysis
/floimg:chart bar chart showing Q1: $100K, Q2: $150K, Q3: $175K, Q4: $200K
/floimg:chart pie chart of market share: Us 45%, Competitor A 30%, Others 25%
/floimg:chart line chart comparing 2023 vs 2024 revenue by month

Runs under the hood:

Terminal window
npx -y @teamflojo/floimg chart bar --labels "Q1,Q2,Q3,Q4" --values "100,150,175,200" -o ./chart.png

Technical diagrams - Generates Mermaid diagrams for documentation and architecture.

/floimg:diagram <description>
TypeSyntaxUse Case
Flowchartgraph TD / graph LRProcess flows
SequencesequenceDiagramAPI interactions
ClassclassDiagramOOP relationships
StatestateDiagram-v2Lifecycles
GanttganttProject timelines
ERerDiagramDatabase schemas
MindmapmindmapBrainstorming
/floimg:diagram user login flow: enter credentials -> validate -> success or show error
/floimg:diagram sequence diagram of API auth: user -> API -> database -> response
/floimg:diagram microservices architecture with frontend, API gateway, and three services

Runs under the hood:

Terminal window
npx -y @teamflojo/floimg diagram "graph TD; A-->B-->C" -o ./diagram.png

Webpage capture - Takes screenshots of any webpage using Playwright.

/floimg:screenshot <url> [options]
/floimg:screenshot https://github.com
/floimg:screenshot https://docs.floimg.com full page
/floimg:screenshot https://example.com mobile view iPhone 14
DeviceWidthHeight
Desktop HD19201080
Desktop1280720
iPad Pro10241366
iPhone 14 Pro393852

Runs under the hood:

Terminal window
npx -y @teamflojo/floimg screenshot "https://github.com" -o ./screenshot.png

CommandTypeWorks Immediately?
/floimg:imageMCPAfter restart
/floimg:workflowMCPAfter restart
/floimg:qrCLIYes
/floimg:chartCLIYes
/floimg:diagramCLIYes
/floimg:screenshotCLIYes