hashgraph-online/awesome-codex-plugins / plugins/BestLemoon/codex-seo/skills/seo-image-gen
seo-image-gen
VerifiedAI image generation for SEO assets: OG/social preview images, blog hero images, schema images, product photography, infographics. Powered by Gemini via nanobanana-mcp. Requires banana extension installed. Use when user says "generate image", "OG image", "social preview", "hero image", "blog image", "product photo", "infographic", "seo image", "create visual", "image-gen", "favicon", "schema image", "pinterest pin", "generate visual", "banner", or "thumbnail".
| File | Kind | Size |
|---|---|---|
| LICENSE.txt | markdown | 142 B |
| SKILL.md | skill md | 8.1 KB |
| references/cost-tracking.md | markdown | 1.4 KB |
| references/gemini-models.md | markdown | 7.5 KB |
| references/mcp-tools.md | markdown | 3.7 KB |
| references/post-processing.md | markdown | 5.1 KB |
| references/presets.md | markdown | 2.2 KB |
| references/prompt-engineering.md | markdown | 20.2 KB |
| references/seo-image-presets.md | markdown | 3.9 KB |
| scripts/batch.pyexecutable | script | 3.1 KB |
| scripts/cost_tracker.pyexecutable | script | 6.2 KB |
| scripts/edit.pyexecutable | script | 4.5 KB |
| scripts/generate.pyexecutable | script | 5.4 KB |
| scripts/presets.pyexecutable | script | 4.9 KB |
| scripts/setup_mcp.py | script | 1.5 KB |
| scripts/validate_setup.py | script | 686 B |
scripts/batch.py
View on GitHub#!/usr/bin/env python3
"""Banana Codex - CSV Batch Workflow
Parse a CSV file of image generation requests and output a structured plan.
Codex then executes each row via MCP.
Usage:
batch.py --csv path/to/file.csv
CSV columns:
prompt (required), ratio, resolution, model, preset (all optional)
Example CSV:
prompt,ratio,resolution
"coffee shop hero image",16:9,2K
"team photo placeholder",1:1,1K
"product shot on marble",4:3,2K
"""
import argparse
import csv
import json
import sys
from pathlib import Path
# Inline pricing for estimates
PRICING = {
"gemini-3.1-flash-image-preview": {"512": 0.020, "1K": 0.039, "2K": 0.078, "4K": 0.156},
"gemini-2.5-flash-image": {"512": 0.020, "1K": 0.039},
}
DEFAULT_MODEL = "gemini-3.1-flash-image-preview"
DEFAULT_RESOLUTION = "1K"
DEFAULT_RATIO = "1:1"
def estimate_cost(model, resolution):
"""Estimate cost for a single image."""
model_pricing = PRICING.get(model, PRICING[DEFAULT_MODEL])
return model_pricing.get(resolution, model_pricing.get("1K", 0.039))
def main():
parser = argparse.ArgumentParser(description="Parse CSV batch and output generation plan")
parser.add_argument("--csv", required=True, help="Path to CSV file")
args = parser.parse_args()
csv_path = Path(args.csv).resolve()
if not csv_path.exists():
print(json.dumps({"error": True, "message": f"CSV not found: {csv_path}"}))
sys.exit(1)
rows = []
errors = []
try:
with open(csv_path, "r", newline="") as f:
reader = csv.DictReader(f)
if not reader.fieldnames or "prompt" not in reader.fieldnames:
print(json.dumps({"error": True, "message": "CSV must have a 'prompt' column header"}))
sys.exit(1)
for i, row in enumerate(reader, start=2): # Line 2+ (1 is header)
prompt = row.get("prompt", "").strip()
if not prompt:
errors.append(f"Row {i}: missing prompt")
continue
rows.append({
"row": i,
"prompt": prompt,
"ratio": row.get("ratio", "").strip() or DEFAULT_RATIO,
"resolution": row.get("resolution", "").strip() or DEFAULT_RESOLUTION,
"model": row.get("model", "").strip() or DEFAULT_MODEL,
"preset": row.get("preset", "").strip() or None,
})
except (csv.Error, UnicodeDecodeError) as e:
print(json.dumps({"error": True, "message": f"Failed to parse CSV: {e}"}))
sys.exit(1)
if errors:
print("Validation errors:")
for e in errors:
print(f" - {e}")
if not rows:
sys.exit(1)
print()
# Cost estimate
total_cost = sum(estimate_cost(r["model"], r["resolution"]) for r in rows)
# Output structured JSON for Codex to consume
print(json.dumps({"rows": rows, "total_count": len(rows),
"estimated_cost": round(total_cost, 3),
"errors": errors}, indent=2))
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |