@teamflojo/floimg-claude
v0.2.1
Published
Claude Code plugin for floimg - Universal image generation and workflows
Readme
@teamflojo/floimg-claude
Claude Code plugin for floimg — composable image workflows.
Why?
Deterministic Transforms: When you ask ChatGPT to modify an image, DALL-E generates a new image—it doesn't edit pixels. Even AI "editing" like inpainting is probabilistic. FloImg applies deterministic transforms: adjust hue mathematically, resize to exact dimensions, add caption at precise position. The image stays intact except for exactly what you requested.
A Unified API: FloImg models image manipulation as a series of composable steps. This functional approach consolidates the patchwork of tools and SDKs into one abstraction layer—portable across SDK, CLI, visual builder, and MCP.
Generate AI images, resize for social media, add captions, upload to S3—all through natural conversation.
When FloImg Matters
| Task | Raw LLM + DALL-E | With FloImg | | ------------------------- | ---------------------------------------- | ----------------------------- | | "Create a hero image" | Generates image | Generates + stores in session | | "Now make it 1200x630" | Re-generates entirely (different image!) | Resizes exact pixels | | "Add our tagline" | Re-generates entirely | Adds text at exact position | | "Upload to S3" | Manual download/upload | Automatic in same pipeline | | "Actually, make it bluer" | Start over | Adjusts hue on existing image |
The gap: AI generates creative content. FloImg makes it production-ready with deterministic transforms.
Quick Start
Install the plugin and start using it:
npm install -g @teamflojo/floimg-claudeThen describe what you need:
"Create a hero image for my blog, resize to 1200x630, add a caption"
"Generate a product mockup with a subtle watermark"
/floimg:workflow AI hero → resize → caption → save to S3Simple generators (/floimg:qr, /floimg:chart) work immediately via CLI. Complex workflows use MCP for session state and iteration.
Architecture
| Command Type | Method | Works Immediately? |
| ------------------------------------------------------------------------------- | ----------- | ------------------ |
| Simple (/floimg:qr, /floimg:chart, /floimg:diagram, /floimg:screenshot) | CLI via npx | Yes |
| Complex (/floimg:image, /floimg:workflow) | MCP | After restart |
Simple commands work out of the box via CLI.
Complex workflows (multi-step transforms, iteration) use MCP for session state. Restart Claude Code once to enable MCP.
Slash Commands
| Command | Description | Method |
| -------------------- | ---------------------------------------- | ------ |
| /floimg:qr | Create QR codes | CLI |
| /floimg:chart | Data visualizations with QuickChart | CLI |
| /floimg:diagram | Mermaid diagrams (flowcharts, sequences) | CLI |
| /floimg:screenshot | Capture webpages | CLI |
| /floimg:image | Generate any image with transforms | MCP |
| /floimg:workflow | Multi-step pipelines | MCP |
Usage Examples
AI Image Workflows (Primary Use Case)
Generate AI images and transform them in one conversation:
User: "Create a hero image for my tech blog"
Claude: [generates with DALL-E]
User: "Make it more vibrant"
Claude: [transforms the same image]
User: "Resize to 1200x630 and add our tagline"
Claude: [resizes, adds caption]
User: "Save to S3"
Claude: [uploads to s3://bucket/hero.png]Session state is the key: FloImg remembers your images. When you say "make it more vibrant," it adjusts the existing image—it doesn't re-generate a new one. Each refinement builds on the last.
Multi-Step Workflows
Describe the full pipeline in one request:
/floimg:workflow Generate product mockup, add watermark, create 3 size variants, upload to CDNSimple Generators
Quick one-shot operations work immediately via CLI:
/floimg:qr https://floimg.com
/floimg:chart pie chart: Desktop 60%, Mobile 30%, Tablet 10%
/floimg:diagram user login flow: user -> form -> auth -> dashboard
/floimg:screenshot https://github.comMCP Setup (For Complex Workflows)
MCP unlocks the full value of FloImg:
- Session state: FloImg remembers your images. "Make it bluer" adjusts the existing image, not a re-generation
- Deterministic transforms: Resize, caption, adjust colors—mathematically precise, not probabilistic
- Pipeline composition: generate → resize → caption → save as one atomic workflow
After installing the plugin, restart Claude Code once. The MCP server auto-configures.
Or manually add to your MCP config:
{
"mcpServers": {
"floimg": {
"command": "npx",
"args": ["-y", "@teamflojo/floimg", "mcp"]
}
}
}Configuration
Set environment variables for optional features:
# For AI image generation (DALL-E)
export OPENAI_API_KEY=sk-...
# For cloud storage
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export S3_BUCKET=my-bucketSecurity
Your API keys are used locally by the FloImg MCP server. They are not transmitted to Anthropic—only the results of operations (file paths, success messages) are returned to Claude.
Best practices:
- Use environment variables for API keys (not CLI arguments or prompts)
- Never paste API keys directly in conversation
- See the Security Guide for detailed information
Image Architect Agent
A specialized agent for complex image tasks:
- Choosing the right generator for each task
- Planning multi-step image workflows
- Optimizing image pipelines
Auto-Discovery Skill
Claude automatically detects image-related tasks when you mention:
- Charts, graphs, visualizations
- Diagrams, flowcharts, sequences
- QR codes, screenshots
- Images, photos, illustrations
Just describe what you need in natural language.
Supported Generators
| Generator | Triggered By | Requires |
| ------------- | ---------------------------- | ---------------- |
| OpenAI/DALL-E | photo, illustration, scene | OPENAI_API_KEY |
| QuickChart | chart, graph, bar, pie | (included) |
| Mermaid | flowchart, diagram, sequence | (included) |
| QR | qr code, barcode | (included) |
| Screenshot | screenshot, capture | (included) |
Transform Operations
With MCP enabled, apply deterministic transforms—these modify exactly what you specify, leaving everything else intact:
resize- Scale to specific dimensions (exact pixels, not AI upscaling)blur- Apply Gaussian blursharpen- Sharpen edgesgrayscale- Remove colormodulate- Adjust brightness, saturation, hue (mathematical precision)roundCorners- Add border radiusaddText- Overlay text at exact positionaddCaption- Add caption barpreset- Apply filters (vintage, vibrant, dramatic, soft)
AI Transforms (Requires API Keys)
For creative modifications, AI-powered transforms are also available:
removeBackground- Isolate subjects (Stability AI)upscale- AI-enhanced resolution (Stability AI)faceRestore- Fix faces in generated images (Replicate)inpaint- Replace specific regions (OpenAI)
Use deterministic when you need precision. Use AI transforms when you need creative enhancement.
Save Destinations
- Local:
./output/image.png - S3:
s3://bucket/path/image.png - R2:
r2://bucket/path/image.png - Tigris:
tigris://bucket/path/image.png
Requirements
- Node.js >= 18.0.0
- Claude Code >= 1.0.0
Documentation
- Getting Started - Setup and configuration
- Commands - Slash command reference
- Agent - Image Architect agent
- Skills - Auto-discovery behavior
Links
License
MIT
