[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77Q8GH9M1B52M84YGNCWPEM":3,"skill-same:01M77Q8GH9M1B52M84YGNCWPEM":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77Q8GH9M1B52M84YGNCWPEM","gemini-image-gen",null,"Generate images using Google Gemini via OpenRouter API. Supports text-to-image and reference-image-guided generation. Use when the user asks to generate, create, draw, or design images\u002Fillustrations\u002Fcovers\u002Favatars.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fo\u002Fopenrouter-image-gen\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: gemini-image-gen\ndescription: Generate images using Google Gemini via OpenRouter API. Supports text-to-image and reference-image-guided generation. Use when the user asks to generate, create, draw, or design images\u002Fillustrations\u002Fcovers\u002Favatars.\n---\n\n# Gemini Image Generation\n\nGenerate images via `google\u002Fgemini-3.1-flash-image-preview` on OpenRouter. Cheap ($0.25\u002FM in, $1.5\u002FM out), fast, good quality.\n\n## Quick Start\n\n```bash\npython3 scripts\u002Fgenerate.py \"a watercolor illustration of a cozy café\" -o output.png\n```\n\nWith reference image (style\u002Fcharacter guidance):\n```bash\npython3 scripts\u002Fgenerate.py \"same character but waving hello\" -o wave.png --ref reference.png\n```\n\nScript path: `skills\u002Fgemini-image-gen\u002Fscripts\u002Fgenerate.py`\n\n## Requirements\n\n- `OPENROUTER_API_KEY` environment variable (or `--api-key` flag)\n- Python 3.10+ (stdlib only, no pip installs needed)\n\n## How It Works\n\n1. Calls OpenRouter `\u002Fchat\u002Fcompletions` with `modalities: [\"text\", \"image\"]`\n2. Optionally encodes a reference image as base64 in the message\n3. Extracts generated image from `choices[0].message.images[0].image_url.url` (data:image\u002Fpng;base64,...)\n4. Decodes and saves to output path\n\n## Prompt Engineering Tips (from experience)\n\n### Aspect Ratio & Composition\n- Gemini respects aspect ratio instructions in the prompt\n- For vertical (e.g. phone wallpaper, Xiaohongshu cover): add \"vertical composition, 3:4 aspect ratio\"\n- For horizontal (e.g. banner): add \"horizontal composition, 16:9 aspect ratio\"\n- For square: add \"square composition, 1:1 aspect ratio\"\n- **Always specify** — without it, Gemini defaults to roughly square and may crop awkwardly\n\n### Character Consistency\n- When using `--ref`, describe the character features explicitly in the prompt AND provide the reference image\n- Key details to specify: hair color\u002Fstyle, eye color, clothing, accessories, expression\n- Example: \"same character from reference: silver-to-ice-blue gradient shoulder-length hair, ice-blue eyes, cream cardigan over light blue shirt, snowflake earring\"\n- Gemini is decent at maintaining consistency but drifts on small details — always re-specify distinguishing features\n\n### Style Control\n- Name the art style explicitly: \"soft watercolor illustration\", \"anime cel-shading\", \"photorealistic\", \"flat vector\", \"oil painting\"\n- For warm\u002Fcozy tone: \"warm color palette, cream and peach gradient background, bokeh light spots\"\n- For dark\u002Fmoody: \"dark gradient background, deep navy to black, subtle glow effects\"\n- Mentioning a well-known art style works: \"in the style of Studio Ghibli\", \"Makoto Shinkai lighting\"\n\n### Text in Images\n- Gemini can render short text in images but it's unreliable for CJK characters\n- For English text: works reasonably well if you specify font style (\"bold sans-serif\", \"handwritten script\")\n- For Chinese\u002FJapanese: **avoid** — it usually garbles characters. Add text overlays with a separate tool (e.g. ImageMagick, Pillow) instead\n\n### Common Pitfalls\n- **Body proportions**: Gemini sometimes compresses\u002Fdistorts figures. Add \"natural human body proportions, do not squash or stretch\" for character art\n- **Hands**: Still a weak spot. Minimize visible hands or describe hand pose explicitly\n- **Multiple subjects**: More than 2-3 subjects increases inconsistency. Keep scenes focused\n- **Batch generation**: For generating multiple variations, run the script multiple times — each call is independent. Do NOT ask for \"4 options\" in one prompt\n\n## Sending Images on Feishu\n\n⚠️ **Critical**: Images must be saved to a path within `localRoots` (typically your OpenClaw workspace dir). `\u002Ftmp` is NOT whitelisted on Feishu.\n\n```python\n# Save to workspace, not \u002Ftmp\noutput_path = \"my_image.png\"  # relative to workspace\n\n# Send via message tool:\n#   media: \"file:\u002F\u002F\u003Cworkspace_path>\u002Fmy_image.png\"\n#   (use 'media' parameter, NOT 'filePath')\n```\n\nAfter sending, clean up temporary images to avoid workspace clutter.\n\n## Advanced: Calling from Python (without CLI)\n\n```python\nimport os, sys\nsys.path.insert(0, \"skills\u002Fgemini-image-gen\u002Fscripts\")\nfrom generate import generate\n\ngenerate(\n    prompt=\"a cute robot reading a philosophy book\",\n    output=\"robot.png\",\n    ref_image=None,  # or path to reference image\n)\n```\n\n## Model Alternatives\n\n| Model | Cost | Notes |\n|-------|------|-------|\n| `google\u002Fgemini-3.1-flash-image-preview` | $0.25\u002F$1.5 per M tokens | **Default.** Best balance of cost and quality |\n| `google\u002Fgemini-3.1-pro-preview` | $2\u002F$12 per M tokens | Higher quality but 8x more expensive |\n| `openai\u002Fgpt-image-1` | varies | OpenAI's image model, different API format — not supported by this script |\n\n## Troubleshooting\n\n- **\"No image in response\"**: Check `.debug.json` file created alongside output. Usually means the prompt triggered safety filters or the model returned text-only.\n- **Garbled\u002Fdistorted output**: Try rephrasing. Add \"high quality, detailed\" and be more specific about composition.\n- **API error 429**: Rate limited. Wait 30s and retry.\n- **API error 402**: Insufficient credits on OpenRouter.\n","# Gemini Image Generation\n\nGenerate images via `google\u002Fgemini-3.1-flash-image-preview` on OpenRouter. Cheap ($0.25\u002FM in, $1.5\u002FM out), fast, good quality.\n\n## Quick Start\n\n```bash\npython3 scripts\u002Fgenerate.py \"a watercolor illustration of a cozy café\" -o output.png\n```\n\nWith reference image (style\u002Fcharacter guidance):\n```bash\npython3 scripts\u002Fgenerate.py \"same character but waving hello\" -o wave.png --ref reference.png\n```\n\nScript path: `skills\u002Fgemini-image-gen\u002Fscripts\u002Fgenerate.py`\n\n## Requirements\n\n- `OPENROUTER_API_KEY` environment variable (or `--api-key` flag)\n- Python 3.10+ (stdlib only, no pip installs needed)\n\n## How It Works\n\n1. Calls OpenRouter `\u002Fchat\u002Fcompletions` with `modalities: [\"text\", \"image\"]`\n2. Optionally encodes a reference image as base64 in the message\n3. Extracts generated image from `choices[0].message.images[0].image_url.url` (data:image\u002Fpng;base64,...)\n4. Decodes and saves to output path\n\n## Prompt Engineering Tips (from experience)\n\n### Aspect Ratio & Composition\n- Gemini respects aspect ratio instructions in the prompt\n- For vertical (e.g. phone wallpaper, Xiaohongshu cover): add \"vertical composition, 3:4 aspect ratio\"\n- For horizontal (e.g. banner): add \"horizontal composition, 16:9 aspect ratio\"\n- For square: add \"square composition, 1:1 aspect ratio\"\n- **Always specify** — without it, Gemini defaults to roughly square and may crop awkwardly\n\n### Character Consistency\n- When using `--ref`, describe the character features explicitly in the prompt AND provide the reference image\n- Key details to specify: hair color\u002Fstyle, eye color, clothing, accessories, expression\n- Example: \"same character from reference: silver-to-ice-blue gradient shoulder-length hair, ice-blue eyes, cream cardigan over light blue shirt, snowflake earring\"\n- Gemini is decent at maintaining consistency but drifts on small details — always re-specify distinguishing features\n\n### Style Control\n- Name the art style explicitly: \"soft watercolor illustration\", \"anime cel-shading\", \"photorealistic\", \"flat vector\", \"oil painting\"\n- For warm\u002Fcozy tone: \"warm color palette, cream and peach gradient background, bokeh light spots\"\n- For dark\u002Fmoody: \"dark gradient background, deep navy to black, subtle glow effects\"\n- Mentioning a well-known art style works: \"in the style of Studio Ghibli\", \"Makoto Shinkai lighting\"\n\n### Text in Images\n- Gemini can render short text in images but it's unreliable for CJK characters\n- For English text: works reasonably well if you specify font style (\"bold sans-serif\", \"handwritten script\")\n- For Chinese\u002FJapanese: **avoid** — it usually garbles characters. Add text overlays with a separate tool (e.g. ImageMagick, Pillow) instead\n\n### Common Pitfalls\n- **Body proportions**: Gemini sometimes compresses\u002Fdistorts figures. Add \"natural human body proportions, do not squash or stretch\" for character art\n- **Hands**: Still a weak spot. Minimize visible hands or describe hand pose explicitly\n- **Multiple subjects**: More than 2-3 subjects increases inconsistency. Keep scenes focused\n- **Batch generation**: For generating multiple variations, run the script multiple times — each call is independent. Do NOT ask for \"4 options\" in one prompt\n\n## Sending Images on Feishu\n\n⚠️ **Critical**: Images must be saved to a path within `localRoots` (typically your OpenClaw workspace dir). `\u002Ftmp` is NOT whitelisted on Feishu.\n\n```python\n# Save to workspace, not \u002Ftmp\noutput_path = \"my_image.png\"  # relative to workspace\n\n# Send via message tool:\n#   media: \"file:\u002F\u002F\u003Cworkspace_path>\u002Fmy_image.png\"\n#   (use 'media' parameter, NOT 'filePath')\n```\n\nAfter sending, clean up temporary images to avoid workspace clutter.\n\n## Advanced: Calling from Python (without CLI)\n\n```python\nimport os, sys\nsys.path.insert(0, \"skills\u002Fgemini-image-gen\u002Fscripts\")\nfrom generate import generate\n\ngenerate(\n    prompt=\"a cute robot reading a philosophy book\",\n    output=\"robot.png\",\n    ref_image=None,  # or path to reference image\n)\n```\n\n## Model Alternatives\n\n| Model | Cost | Notes |\n|-------|------|-------|\n| `google\u002Fgemini-3.1-flash-image-preview` | $0.25\u002F$1.5 per M tokens | **Default.** Best balance of cost and quality |\n| `google\u002Fgemini-3.1-pro-preview` | $2\u002F$12 per M tokens | Higher quality but 8x more expensive |\n| `openai\u002Fgpt-image-1` | varies | OpenAI's image model, different API format — not supported by this script |\n\n## Troubleshooting\n\n- **\"No image in response\"**: Check `.debug.json` file created alongside output. Usually means the prompt triggered safety filters or the model returned text-only.\n- **Garbled\u002Fdistorted output**: Try rephrasing. Add \"high quality, detailed\" and be more specific about composition.\n- **API error 429**: Rate limited. Wait 30s and retry.\n- **API error 402**: Insufficient credits on OpenRouter.\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fo\u002Fopenrouter-image-gen",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill gemini-image-gen",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill gemini-image-gen",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill gemini-image-gen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fo\u002Fopenrouter-image-gen\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]