Generate Image with FLUX.2 Klein
Use when user asks to generate, create, draw, or make an image or picture. Triggers on phrases like "generate an image of", "make a picture of", "create an image", "draw me a".
Free to install — no account needed
Copy the command below and paste into your agent.
Instant access • No coding needed • No account needed
What you get in 5 minutes
- Full skill code ready to install
- Works with 1 AI agent
- Lifetime updates included
Description
--- name: generate-image description: Use when user asks to generate, create, draw, or make an image or picture. Triggers on phrases like "generate an image of", "make a picture of", "create an image", "draw me a". --- # Generate Image with FLUX.2 Klein Use this skill to generate images locally using the FLUX.2 Klein 4B model. ## Workflow 1. **Craft a rich prompt** using the FLUX formula: `[Subject] + [Action/Pose] + [Style/Medium] + [Setting] + [Lighting] + [Camera]` - Preserve all specific details the user mentioned - Add lighting if not specified: golden hour, soft diffused, dramatic rim, studio three-point - Add camera if not specified: "shot on Hasselblad 85mm f/2.8, shallow depth of field" - Use hex codes for specific colors (e.g. "#1A2B3C deep navy") - Describe what you WANT — negative prompts don't work with this model 2. **Run the script:** ```bash source ~/venvs/flux/bin/activate && python3.11 ~/Documents/gen-images/claude-cli/flux_klein.py --prompt "<your prompt here>" ``` 3. **Parse the output path** from the last line of stdout (`Saved to <path>`) 4. **Auto-open in Preview:** ```bash open <path> ``` 5. **Report the path** to the user. ## Prompt Formula Example User: "a fisherman at sunset" Good prompt: > A weathered fisherman in his 70s, navy cable-knit sweater, standing at the helm of a wooden boat. Golden hour light from the left, dramatic rim lighting. Shot on Hasselblad 85mm f/2.8, shallow depth of field, Kodak Portra 400 color science. ## Notes - Output saved to `~/Documents/gen-images/claude-cli/<timestamp>.png` - Model: FLUX.2 Klein 4B at `~/models/flux2-klein-4b` on MPS - Generation takes ~30-60 seconds on Apple Silicon
Security Status
Scanned
Passed automated security checks
Related AI Tools
More Grow Business tools you might like
Engineering Advanced Skills (POWERFUL Tier)
Free"25 advanced engineering agent skills and plugins for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw. Agent design, RAG, MCP servers, CI/CD, database design, observability, security auditing, release management, platform ops."
Appium Automation Skill
Free>
CI/CD Pipeline Skill
Free>
Move Code Quality Checker
FreeAnalyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compliance, or analyzing Move packages for best practices. Activates automatically when working
Email Manager
FreeTriage, draft and send emails automatically based on your rules.
Appointment Booking + Reminder Automation
$14.99Automatically handle bookings and send reminders to reduce no-shows by 80%.