بنقرة واحدة
infographic-builder
// Use when creating an infographic, designing a visual explainer, making an educational infographic, or generating infographic images. Produces branded PNG infographics using KIE AI.
// Use when creating an infographic, designing a visual explainer, making an educational infographic, or generating infographic images. Produces branded PNG infographics using KIE AI.
Use when creating new skills, optimizing existing skills, or auditing skill quality. Guides skill development following Claude Code official best practices.
Use when someone asks for a hand-drawn visual, PNG image, rendered diagram, visual explanation, visualization, or says "make a visual" or "draw a visual". This generates PNG images, not editable files.
| name | infographic-builder |
| description | Use when creating an infographic, designing a visual explainer, making an educational infographic, or generating infographic images. Produces branded PNG infographics using KIE AI. |
Generates educational infographic images using KIE AI's nano banana pro model. Every infographic follows AIS brand guidelines and includes the AIS logo in the top-left corner.
Before generating, read these files:
brand-assets/AIS Brand Guidelines-1.png -- Brand colors, typography, and style rulesbrand-assets/AIS Logo PNG.png -- The AIS logo (placed in top-left of every infographic)For full API reference and parameters, see reference.md.
Ask the user what topic they want the infographic to cover. If they already stated it, skip this step.
Write a detailed prompt for nano banana pro that includes:
Make a POST request to create the image generation task:
curl -X POST "https://api.kie.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $KIE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-pro",
"input": {
"prompt": "<crafted prompt from Step 2>",
"aspect_ratio": "1:1",
"resolution": "2K",
"output_format": "png"
}
}'
The API key is stored in .env as KIE_API_KEY. Read it with:
source .env 2>/dev/null || export KIE_API_KEY=$(grep KIE_API_KEY .env | cut -d= -f2)
Poll the task status every 5 seconds until complete:
curl -s "https://api.kie.ai/api/v1/jobs/recordInfo?taskId=<taskId>" \
-H "Authorization: Bearer $KIE_API_KEY"
Wait for the response to contain a completed status and an image URL.
Download the generated PNG from the returned URL:
curl -o "projects/infographic-builder/<topic-slug>-base.png" "<image_url>"
Run the logo overlay script to place the AIS logo in the top-left corner:
python scripts/infographic-builder/overlay_logo.py \
"projects/infographic-builder/<topic-slug>-base.png" \
"brand-assets/AIS Logo PNG.png" \
"projects/infographic-builder/<topic-slug>.png"
This composites the logo exactly as-is onto the top-left corner of the infographic.
projects/infographic-builder/<topic-slug>.pngprojects/infographic-builder/<topic-slug>.pnghow-dns-works.png)<topic-slug>-base.png in case of re-compositingpip install Pillow) and try again.