[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77NW419VBRPKY6HDJYHGY06":3,"skill-same:01M77NW419VBRPKY6HDJYHGY06":53},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M77NW419VBRPKY6HDJYHGY06","nano-banana-2",null,"Gemini image generation, editing, and search-grounded image creation via\ngemini-3.1-flash-image-preview (Nano Banana 2).\n\nUSE FOR:\n- Generating images from text prompts (text-to-image)\n- Editing or transforming an existing image with text instructions\n- Generating images grounded in live web\u002Fimage search results\n\nRequires GEMINI_API_KEY environment variable. See rules\u002Fsetup.md for\nconfiguration and rules\u002Fsecurity.md for output handling guidelines.","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\u002Fn\u002Fnano-banana-2-gemini\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: nano-banana-2\ndescription: |\n  Gemini image generation, editing, and search-grounded image creation via\n  gemini-3.1-flash-image-preview (Nano Banana 2).\n\n  USE FOR:\n  - Generating images from text prompts (text-to-image)\n  - Editing or transforming an existing image with text instructions\n  - Generating images grounded in live web\u002Fimage search results\n\n  Requires GEMINI_API_KEY environment variable. See rules\u002Fsetup.md for\n  configuration and rules\u002Fsecurity.md for output handling guidelines.\nallowed-tools:\n  - Bash(curl *)\n  - Bash(python3 *)\n  - Bash(mkdir *)\n  - Bash(open .nano-banana\u002F*)\n---\n\n# nano-banana-2\n\nGemini image generation and editing via `gemini-3.1-flash-image-preview`. All\noutput images are written to `.nano-banana\u002F` in the current project directory.\n\n## Prerequisites\n\n`GEMINI_API_KEY` must be set in the environment. Verify with:\n\n```bash\necho $GEMINI_API_KEY\n```\n\nIf empty, see [rules\u002Fsetup.md](rules\u002Fsetup.md). For output handling and security\nguidelines, see [rules\u002Fsecurity.md](rules\u002Fsecurity.md).\n\n## Workflow\n\nFollow this escalation pattern:\n\n1. **Generate** - Create a new image from a text prompt only.\n2. **Edit** - Modify an existing local image with a text instruction.\n3. **Search-Grounded** - Generate informed by live web\u002Fimage search results (use when current visual references, styles, or real-world accuracy matter).\n\n| Goal                               | Operation         | When                                           |\n| ---------------------------------- | ----------------- | ---------------------------------------------- |\n| Create image from scratch          | `generate`        | No source image; prompt is self-contained      |\n| Modify or extend an existing image | `edit`            | Have a local PNG\u002FJPEG to transform             |\n| Ground output in current web data  | `search-grounded` | Need up-to-date styles or real-world references|\n\n## Output & Organization\n\nAll images are saved to `.nano-banana\u002F` in the current working directory.\nAdd `.nano-banana\u002F` to `.gitignore` to prevent generated assets from being committed.\n\n```bash\nmkdir -p .nano-banana\necho \".nano-banana\u002F\" >> .gitignore\n```\n\nNaming conventions:\n\n```\n.nano-banana\u002Fgen-{slug}-{timestamp}.png\n.nano-banana\u002Fedit-{slug}-{timestamp}.png\n.nano-banana\u002Fsearch-{slug}-{timestamp}.png\n```\n\nWhere `{slug}` is a short kebab-case label from the first 4-5 words of the prompt,\nand `{timestamp}` is `YYYYMMDD-HHMMSS`.\n\nAfter saving, open to confirm the result:\n\n```bash\nopen \"$(ls -t .nano-banana\u002F*.png | head -1)\"\n```\n\n## API Reference\n\n| Property             | Value                                                                                                     |\n| -------------------- | --------------------------------------------------------------------------------------------------------- |\n| Model                | `gemini-3.1-flash-image-preview`                                                                          |\n| Endpoint             | `https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002Fgemini-3.1-flash-image-preview:generateContent` |\n| Auth header          | `x-goog-api-key: $GEMINI_API_KEY`                                                                         |\n| Image output         | `candidates[0].content.parts[].inlineData.data` (base64 PNG)                                             |\n\n### Resolution options (`imageConfig.imageSize`)\n\n| Value  | Resolution     |\n| ------ | -------------- |\n| `512`  | 0.5K (fastest) |\n| `1024` | 1K (default)   |\n| `2048` | 2K             |\n| `4096` | 4K             |\n\n### Aspect ratio options (`imageConfig.aspectRatio`)\n\n`1:1`, `16:9`, `9:16`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`\n\n### Thinking mode (`generationConfig.thinkingConfig.thinkingBudget`)\n\nAn integer token budget. Set inside `generationConfig`, not at the top level.\n\n| Value          | Behaviour                                      |\n| -------------- | ---------------------------------------------- |\n| `0`            | Thinking off — fastest, lowest cost (default)  |\n| `1024`         | Light thinking                                 |\n| `8192`         | Deep thinking — recommended for grounded tasks |\n\n## Operations\n\n### 1. Generate (text-to-image)\n\n```python\npython3 - \u003C\u003C'PYEOF'\nimport os, base64, json, urllib.request, datetime\n\napi_key = os.environ[\"GEMINI_API_KEY\"]\nprompt  = \"a majestic mountain at sunrise, photorealistic\"\nslug    = \"mountain-sunrise\"\nsize    = \"1024\"    # 512 | 1024 | 2048 | 4096\naspect  = \"16:9\"   # 1:1 | 16:9 | 9:16 | 1:4 | 4:1 | 1:8 | 8:1 | 2:3 | 3:2\nthinking = 0       # 0 = off, 1024 = light, 8192 = deep\n\npayload = {\n    \"contents\": [{\"parts\": [{\"text\": prompt}]}],\n    \"generationConfig\": {\n        \"responseModalities\": [\"TEXT\", \"IMAGE\"],\n        \"imageConfig\": {\"imageSize\": size, \"aspectRatio\": aspect},\n        \"thinkingConfig\": {\"thinkingBudget\": thinking}\n    }\n}\n\nurl = (\n    \"https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002F\"\n    \"gemini-3.1-flash-image-preview:generateContent\"\n)\nreq = urllib.request.Request(\n    url,\n    data=json.dumps(payload).encode(),\n    headers={\"Content-Type\": \"application\u002Fjson\", \"x-goog-api-key\": api_key},\n    method=\"POST\"\n)\nwith urllib.request.urlopen(req) as resp:\n    data = json.load(resp)\n\nts  = datetime.datetime.now().strftime(\"%Y%m%d-%H%M%S\")\nout = f\".nano-banana\u002Fgen-{slug}-{ts}.png\"\nos.makedirs(\".nano-banana\", exist_ok=True)\n\nfor part in data[\"candidates\"][0][\"content\"][\"parts\"]:\n    if part.get(\"inlineData\", {}).get(\"mimeType\", \"\").startswith(\"image\u002F\"):\n        with open(out, \"wb\") as f:\n            f.write(base64.b64decode(part[\"inlineData\"][\"data\"]))\n        print(f\"Saved: {out}\")\n        break\n    elif part.get(\"text\"):\n        print(\"Model:\", part[\"text\"])\nPYEOF\n```\n\n### 2. Edit (image-to-image)\n\nThe source image is base64-encoded and sent alongside the instruction text.\nSupports PNG and JPEG inputs.\n\n```python\npython3 - \u003C\u003C'PYEOF'\nimport os, base64, json, urllib.request, datetime\n\napi_key     = os.environ[\"GEMINI_API_KEY\"]\nsource_img  = \"path\u002Fto\u002Fsource.png\"          # change to actual path\ninstruction = \"Make the sky purple and add stars\"\nslug        = \"purple-sky-stars\"\nsize        = \"1024\"\naspect      = \"1:1\"\nthinking    = 0   # 0 = off, 1024 = light, 8192 = deep\n\nwith open(source_img, \"rb\") as f:\n    img_b64 = base64.b64encode(f.read()).decode()\n\next  = source_img.rsplit(\".\", 1)[-1].lower()\nmime = \"image\u002Fjpeg\" if ext in (\"jpg\", \"jpeg\") else \"image\u002Fpng\"\n\npayload = {\n    \"contents\": [{\n        \"parts\": [\n            {\"text\": instruction},\n            {\"inline_data\": {\"mime_type\": mime, \"data\": img_b64}}\n        ]\n    }],\n    \"generationConfig\": {\n        \"responseModalities\": [\"TEXT\", \"IMAGE\"],\n        \"imageConfig\": {\"imageSize\": size, \"aspectRatio\": aspect},\n        \"thinkingConfig\": {\"thinkingBudget\": thinking}\n    }\n}\n\nurl = (\n    \"https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002F\"\n    \"gemini-3.1-flash-image-preview:generateContent\"\n)\nreq = urllib.request.Request(\n    url,\n    data=json.dumps(payload).encode(),\n    headers={\"Content-Type\": \"application\u002Fjson\", \"x-goog-api-key\": api_key},\n    method=\"POST\"\n)\nwith urllib.request.urlopen(req) as resp:\n    data = json.load(resp)\n\nts  = datetime.datetime.now().strftime(\"%Y%m%d-%H%M%S\")\nout = f\".nano-banana\u002Fedit-{slug}-{ts}.png\"\nos.makedirs(\".nano-banana\", exist_ok=True)\n\nfor part in data[\"candidates\"][0][\"content\"][\"parts\"]:\n    if part.get(\"inlineData\", {}).get(\"mimeType\", \"\").startswith(\"image\u002F\"):\n        with open(out, \"wb\") as f:\n            f.write(base64.b64decode(part[\"inlineData\"][\"data\"]))\n        print(f\"Saved: {out}\")\n        break\n    elif part.get(\"text\"):\n        print(\"Model:\", part[\"text\"])\nPYEOF\n```\n\n### 3. Search-Grounded Generation\n\nAdds `googleSearch` with both `webSearch` and `imageSearch` types to ground the\noutput in live web data. Use when the prompt references real-world subjects,\ncurrent styles, recent events, or factual visual accuracy.\n\n```python\npython3 - \u003C\u003C'PYEOF'\nimport os, base64, json, urllib.request, datetime\n\napi_key  = os.environ[\"GEMINI_API_KEY\"]\nprompt   = \"Generate a product photo of the latest iPhone model\"\nslug     = \"latest-iphone-product\"\nsize     = \"1024\"\naspect   = \"1:1\"\nthinking = 8192   # deeper thinking recommended for grounded generation\n\npayload = {\n    \"contents\": [{\"parts\": [{\"text\": prompt}]}],\n    \"tools\": [{\n        \"googleSearch\": {\n            \"searchTypes\": [\"webSearch\", \"imageSearch\"]\n        }\n    }],\n    \"generationConfig\": {\n        \"responseModalities\": [\"TEXT\", \"IMAGE\"],\n        \"imageConfig\": {\"imageSize\": size, \"aspectRatio\": aspect},\n        \"thinkingConfig\": {\"thinkingBudget\": thinking}\n    }\n}\n\nurl = (\n    \"https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002F\"\n    \"gemini-3.1-flash-image-preview:generateContent\"\n)\nreq = urllib.request.Request(\n    url,\n    data=json.dumps(payload).encode(),\n    headers={\"Content-Type\": \"application\u002Fjson\", \"x-goog-api-key\": api_key},\n    method=\"POST\"\n)\nwith urllib.request.urlopen(req) as resp:\n    data = json.load(resp)\n\nts  = datetime.datetime.now().strftime(\"%Y%m%d-%H%M%S\")\nout = f\".nano-banana\u002Fsearch-{slug}-{ts}.png\"\nos.makedirs(\".nano-banana\", exist_ok=True)\n\nfor part in data[\"candidates\"][0][\"content\"][\"parts\"]:\n    if part.get(\"inlineData\", {}).get(\"mimeType\", \"\").startswith(\"image\u002F\"):\n        with open(out, \"wb\") as f:\n            f.write(base64.b64decode(part[\"inlineData\"][\"data\"]))\n        print(f\"Saved: {out}\")\n        break\n    elif part.get(\"text\"):\n        print(\"Model:\", part[\"text\"])\nPYEOF\n```\n\n## Working with Results\n\n```bash\n# List all generated images\nls -lh .nano-banana\u002F\n\n# Open the most recent\nopen \"$(ls -t .nano-banana\u002F*.png | head -1)\"\n\n# Open all images generated today\nopen .nano-banana\u002F*$(date +%Y%m%d)*.png\n```\n\n## Error Handling\n\nIf the API returns an error, the response will contain an `error` key. Print it with:\n\n```python\npython3 -c \"\nimport json, sys\nd = json.loads(sys.stdin.read())\nif 'error' in d:\n    print('API Error:', json.dumps(d['error'], indent=2))\nelif not d.get('candidates'):\n    print('No candidates:', json.dumps(d, indent=2))\n\"\n```\n\nCommon errors:\n\n| Error code           | Cause                                              |\n| -------------------- | -------------------------------------------------- |\n| `API_KEY_INVALID`    | `GEMINI_API_KEY` not set or incorrect              |\n| `RESOURCE_EXHAUSTED` | Quota exceeded; check billing or wait              |\n| `INVALID_ARGUMENT`   | Bad `imageSize` or `aspectRatio` value             |\n| Empty `candidates`   | Safety filter blocked the prompt or source image   |\n| `404 Not Found`      | Model not yet available on your API key; see setup |\n","# nano-banana-2\n\nGemini image generation and editing via `gemini-3.1-flash-image-preview`. All\noutput images are written to `.nano-banana\u002F` in the current project directory.\n\n## Prerequisites\n\n`GEMINI_API_KEY` must be set in the environment. Verify with:\n\n```bash\necho $GEMINI_API_KEY\n```\n\nIf empty, see [rules\u002Fsetup.md](rules\u002Fsetup.md). For output handling and security\nguidelines, see [rules\u002Fsecurity.md](rules\u002Fsecurity.md).\n\n## Workflow\n\nFollow this escalation pattern:\n\n1. **Generate** - Create a new image from a text prompt only.\n2. **Edit** - Modify an existing local image with a text instruction.\n3. **Search-Grounded** - Generate informed by live web\u002Fimage search results (use when current visual references, styles, or real-world accuracy matter).\n\n| Goal                               | Operation         | When                                           |\n| ---------------------------------- | ----------------- | ---------------------------------------------- |\n| Create image from scratch          | `generate`        | No source image; prompt is self-contained      |\n| Modify or extend an existing image | `edit`            | Have a local PNG\u002FJPEG to transform             |\n| Ground output in current web data  | `search-grounded` | Need up-to-date styles or real-world references|\n\n## Output & Organization\n\nAll images are saved to `.nano-banana\u002F` in the current working directory.\nAdd `.nano-banana\u002F` to `.gitignore` to prevent generated assets from being committed.\n\n```bash\nmkdir -p .nano-banana\necho \".nano-banana\u002F\" >> .gitignore\n```\n\nNaming conventions:\n\n```\n.nano-banana\u002Fgen-{slug}-{timestamp}.png\n.nano-banana\u002Fedit-{slug}-{timestamp}.png\n.nano-banana\u002Fsearch-{slug}-{timestamp}.png\n```\n\nWhere `{slug}` is a short kebab-case label from the first 4-5 words of the prompt,\nand `{timestamp}` is `YYYYMMDD-HHMMSS`.\n\nAfter saving, open to confirm the result:\n\n```bash\nopen \"$(ls -t .nano-banana\u002F*.png | head -1)\"\n```\n\n## API Reference\n\n| Property             | Value                                                                                                     |\n| -------------------- | --------------------------------------------------------------------------------------------------------- |\n| Model                | `gemini-3.1-flash-image-preview`                                                                          |\n| Endpoint             | `https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002Fgemini-3.1-flash-image-preview:generateContent` |\n| Auth header          | `x-goog-api-key: $GEMINI_API_KEY`                                                                         |\n| Image output         | `candidates[0].content.parts[].inlineData.data` (base64 PNG)                                             |\n\n### Resolution options (`imageConfig.imageSize`)\n\n| Value  | Resolution     |\n| ------ | -------------- |\n| `512`  | 0.5K (fastest) |\n| `1024` | 1K (default)   |\n| `2048` | 2K             |\n| `4096` | 4K             |\n\n### Aspect ratio options (`imageConfig.aspectRatio`)\n\n`1:1`, `16:9`, `9:16`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`\n\n### Thinking mode (`generationConfig.thinkingConfig.thinkingBudget`)\n\nAn integer token budget. Set inside `generationConfig`, not at the top level.\n\n| Value          | Behaviour                                      |\n| -------------- | ---------------------------------------------- |\n| `0`            | Thinking off — fastest, lowest cost (default)  |\n| `1024`         | Light thinking                                 |\n| `8192`         | Deep thinking — recommended for grounded tasks |\n\n## Operations\n\n### 1. Generate (text-to-image)\n\n```python\npython3 - \u003C\u003C'PYEOF'\nimport os, base64, json, urllib.request, datetime\n\napi_key = os.environ[\"GEMINI_API_KEY\"]\nprompt  = \"a majestic mountain at sunrise, photorealistic\"\nslug    = \"mountain-sunrise\"\nsize    = \"1024\"    # 512 | 1024 | 2048 | 4096\naspect  = \"16:9\"   # 1:1 | 16:9 | 9:16 | 1:4 | 4:1 | 1:8 | 8:1 | 2:3 | 3:2\nthinking = 0       # 0 = off, 1024 = light, 8192 = deep\n\npayload = {\n    \"contents\": [{\"parts\": [{\"text\": prompt}]}],\n    \"generationConfig\": {\n        \"responseModalities\": [\"TEXT\", \"IMAGE\"],\n        \"imageConfig\": {\"imageSize\": size, \"aspectRatio\": aspect},\n        \"thinkingConfig\": {\"thinkingBudget\": thinking}\n    }\n}\n\nurl = (\n    \"https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002F\"\n    \"gemini-3.1-flash-image-preview:generateContent\"\n)\nreq = urllib.request.Request(\n    url,\n    data=json.dumps(payload).encode(),\n    headers={\"Content-Type\": \"application\u002Fjson\", \"x-goog-api-key\": api_key},\n    method=\"POST\"\n)\nwith urllib.request.urlopen(req) as resp:\n    data = json.load(resp)\n\nts  = datetime.datetime.now().strftime(\"%Y%m%d-%H%M%S\")\nout = f\".nano-banana\u002Fgen-{slug}-{ts}.png\"\nos.makedirs(\".nano-banana\", exist_ok=True)\n\nfor part in data[\"candidates\"][0][\"content\"][\"parts\"]:\n    if part.get(\"inlineData\", {}).get(\"mimeType\", \"\").startswith(\"image\u002F\"):\n        with open(out, \"wb\") as f:\n            f.write(base64.b64decode(part[\"inlineData\"][\"data\"]))\n        print(f\"Saved: {out}\")\n        break\n    elif part.get(\"text\"):\n        print(\"Model:\", part[\"text\"])\nPYEOF\n```\n\n### 2. Edit (image-to-image)\n\nThe source image is base64-encoded and sent alongside the instruction text.\nSupports PNG and JPEG inputs.\n\n```python\npython3 - \u003C\u003C'PYEOF'\nimport os, base64, json, urllib.request, datetime\n\napi_key     = os.environ[\"GEMINI_API_KEY\"]\nsource_img  = \"path\u002Fto\u002Fsource.png\"          # change to actual path\ninstruction = \"Make the sky purple and add stars\"\nslug        = \"purple-sky-stars\"\nsize        = \"1024\"\naspect      = \"1:1\"\nthinking    = 0   # 0 = off, 1024 = light, 8192 = deep\n\nwith open(source_img, \"rb\") as f:\n    img_b64 = base64.b64encode(f.read()).decode()\n\next  = source_img.rsplit(\".\", 1)[-1].lower()\nmime = \"image\u002Fjpeg\" if ext in (\"jpg\", \"jpeg\") else \"image\u002Fpng\"\n\npayload = {\n    \"contents\": [{\n        \"parts\": [\n            {\"text\": instruction},\n            {\"inline_data\": {\"mime_type\": mime, \"data\": img_b64}}\n        ]\n    }],\n    \"generationConfig\": {\n        \"responseModalities\": [\"TEXT\", \"IMAGE\"],\n        \"imageConfig\": {\"imageSize\": size, \"aspectRatio\": aspect},\n        \"thinkingConfig\": {\"thinkingBudget\": thinking}\n    }\n}\n\nurl = (\n    \"https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002F\"\n    \"gemini-3.1-flash-image-preview:generateContent\"\n)\nreq = urllib.request.Request(\n    url,\n    data=json.dumps(payload).encode(),\n    headers={\"Content-Type\": \"application\u002Fjson\", \"x-goog-api-key\": api_key},\n    method=\"POST\"\n)\nwith urllib.request.urlopen(req) as resp:\n    data = json.load(resp)\n\nts  = datetime.datetime.now().strftime(\"%Y%m%d-%H%M%S\")\nout = f\".nano-banana\u002Fedit-{slug}-{ts}.png\"\nos.makedirs(\".nano-banana\", exist_ok=True)\n\nfor part in data[\"candidates\"][0][\"content\"][\"parts\"]:\n    if part.get(\"inlineData\", {}).get(\"mimeType\", \"\").startswith(\"image\u002F\"):\n        with open(out, \"wb\") as f:\n            f.write(base64.b64decode(part[\"inlineData\"][\"data\"]))\n        print(f\"Saved: {out}\")\n        break\n    elif part.get(\"text\"):\n        print(\"Model:\", part[\"text\"])\nPYEOF\n```\n\n### 3. Search-Grounded Generation\n\nAdds `googleSearch` with both `webSearch` and `imageSearch` types to ground the\noutput in live web data. Use when the prompt references real-world subjects,\ncurrent styles, recent events, or factual visual accuracy.\n\n```python\npython3 - \u003C\u003C'PYEOF'\nimport os, base64, json, urllib.request, datetime\n\napi_key  = os.environ[\"GEMINI_API_KEY\"]\nprompt   = \"Generate a product photo of the latest iPhone model\"\nslug     = \"latest-iphone-product\"\nsize     = \"1024\"\naspect   = \"1:1\"\nthinking = 8192   # deeper thinking recommended for grounded generation\n\npayload = {\n    \"contents\": [{\"parts\": [{\"text\": prompt}]}],\n    \"tools\": [{\n        \"googleSearch\": {\n            \"searchTypes\": [\"webSearch\", \"imageSearch\"]\n        }\n    }],\n    \"generationConfig\": {\n        \"responseModalities\": [\"TEXT\", \"IMAGE\"],\n        \"imageConfig\": {\"imageSize\": size, \"aspectRatio\": aspect},\n        \"thinkingConfig\": {\"thinkingBudget\": thinking}\n    }\n}\n\nurl = (\n    \"https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002F\"\n    \"gemini-3.1-flash-image-preview:generateContent\"\n)\nreq = urllib.request.Request(\n    url,\n    data=json.dumps(payload).encode(),\n    headers={\"Content-Type\": \"application\u002Fjson\", \"x-goog-api-key\": api_key},\n    method=\"POST\"\n)\nwith urllib.request.urlopen(req) as resp:\n    data = json.load(resp)\n\nts  = datetime.datetime.now().strftime(\"%Y%m%d-%H%M%S\")\nout = f\".nano-banana\u002Fsearch-{slug}-{ts}.png\"\nos.makedirs(\".nano-banana\", exist_ok=True)\n\nfor part in data[\"candidates\"][0][\"content\"][\"parts\"]:\n    if part.get(\"inlineData\", {}).get(\"mimeType\", \"\").startswith(\"image\u002F\"):\n        with open(out, \"wb\") as f:\n            f.write(base64.b64decode(part[\"inlineData\"][\"data\"]))\n        print(f\"Saved: {out}\")\n        break\n    elif part.get(\"text\"):\n        print(\"Model:\", part[\"text\"])\nPYEOF\n```\n\n## Working with Results\n\n```bash\n# List all generated images\nls -lh .nano-banana\u002F\n\n# Open the most recent\nopen \"$(ls -t .nano-banana\u002F*.png | head -1)\"\n\n# Open all images generated today\nopen .nano-banana\u002F*$(date +%Y%m%d)*.png\n```\n\n## Error Handling\n\nIf the API returns an error, the response will contain an `error` key. Print it with:\n\n```python\npython3 -c \"\nimport json, sys\nd = json.loads(sys.stdin.read())\nif 'error' in d:\n    print('API Error:', json.dumps(d['error'], indent=2))\nelif not d.get('candidates'):\n    print('No candidates:', json.dumps(d, indent=2))\n\"\n```\n\nCommon errors:\n\n| Error code           | Cause                                              |\n| -------------------- | -------------------------------------------------- |\n| `API_KEY_INVALID`    | `GEMINI_API_KEY` not set or incorrect              |\n| `RESOURCE_EXHAUSTED` | Quota exceeded; check billing or wait              |\n| `INVALID_ARGUMENT`   | Bad `imageSize` or `aspectRatio` value             |\n| Empty `candidates`   | Safety filter blocked the prompt or source image   |\n| `404 Not Found`      | Model not yet available on your API key; see setup |\n",{"name":5,"description":24,"allowed-tools":25},"Gemini image generation, editing, and search-grounded image creation via\ngemini-3.1-flash-image-preview (Nano Banana 2).\n\nUSE FOR:\n- Generating images from text prompts (text-to-image)\n- Editing or transforming an existing image with text instructions\n- Generating images grounded in live web\u002Fimage search results\n\nRequires GEMINI_API_KEY environment variable. See rules\u002Fsetup.md for\nconfiguration and rules\u002Fsecurity.md for output handling guidelines.\n",[26,27,28,29],"Bash(curl *)","Bash(python3 *)","Bash(mkdir *)","Bash(open .nano-banana\u002F*)","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fn\u002Fnano-banana-2-gemini",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":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill nano-banana-2",{"tool":45,"command":46},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill nano-banana-2",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill nano-banana-2","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fn\u002Fnano-banana-2-gemini\u002FSKILL.md",true,[],[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"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":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"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":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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",[],[]]