mohitagw15856/pm-claude-skills/thumbnail-creator
- community
Checking that the SKILL.md file is still in the repository.
Generate article or newsletter thumbnail candidates using the Gemini API from inside Claude Code. Claude reads article copy, proposes composition concepts, writes image generation prompts incorporating brand specs, calls Gemini to generate the images, evaluates the results via computer vision, and returns ranked candidates with rationale. Use when asked to create thumbnails, generate cover images, or produce visual candidates for an article or newsletter.
Install
npx vskill@latest install mohitagw15856/pm-claude-skills/thumbnail-creatorSKILL.md
Thumbnail Creator Skill (via Gemini)
Generates article and newsletter thumbnail candidates by acting as an image-generation agent inside Claude Code. Instead of switching between tools and prompting Gemini's web UI one image at a time, this skill makes Claude do the full loop: read the copy, propose compositions, write tailored prompts, call the Gemini API, evaluate the outputs, and return ranked results with brief rationale.
The output is production-ready thumbnail candidates you can drop directly into your CMS, newsletter tool, or social scheduler.
Prerequisites
Both of these must be in place before the skill can generate images:
1. Gemini API Key
Get a free key from Google AI Studio.
Set it as an environment variable:
To persist it across sessions, add to your shell profile (~/.zshrc or ~/.bashrc):
Verify it is set:
2. generate_image.py Script
This script must exist at ./generate_image.py in the project root. The full template is provided in the Script Template section below. Claude will check for it and offer to create it if missing.
Python dependencies:
Or with uv:
Required Inputs
Claude will ask for these if not provided:
| Input | Required | Notes | |
|---|---|---|---|
| Article copy or URL | Yes | Paste the full article text, or provide a URL to fetch. Used to extract themes, hooks, and key claims for composition. | |
| Brand colours | Recommended | Hex codes or descriptive names. E.g. #1A1A2E (navy), #E94560 (coral). If not provided, Claude uses clean neutral defaults. | |
| Fonts / type style | Recommended | E.g. "bold sans-serif", "editorial serif", "Neue Haas Grotesk". Used in prompt to guide text treatment. | |
| Style reference description | Recommended | E.g. "flat illustration, minimal, like Stripe's marketing site" or "photorealistic, dark background, high contrast". A style image URL can also be provided. | |
| Output dimensions | No | Defaults to 1792x1024 (landscape, standard article thumbnail). Options: 1024x1024 (square), 1024x1792 (portrait/mobile). | |
| Number of candidates | No | Defaults to 4. Min 1, max 8 (API limits and cost). | |
| Article title (if different from H1) | No | Used as the primary text element in image prompts. | |
| Candidate selection | No | After proposing compositions, Claude asks which to generate. User can say "all" or pick by number. |
Output Structure
Phase 1 — Composition Proposals (text, before any API calls)
Claude presents 3-4 composition concepts for user approval. Format:
Phase 2 — Generated Image Files
After generation, Claude saves files to ./thumbnails/[article-slug]/:
Phase 3 — Evaluation Summary Table
Claude evaluates each returned image via computer vision and produces:
How Claude Should Execute This Skill
Step 1 — Ingest and analyse the article
Accept article copy as pasted text or a URL.
If a URL is provided, fetch the page and extract:
- The H1 title
- The first 3-5 paragraphs (the hook, central claim, and key points)
- Any notable statistics or named frameworks mentioned
- The author name (for typographic compositions)
If text is pasted, read it directly. Focus on:
- The hook: What is the opening claim or tension?
- The central thesis: What is the one thing the article argues or teaches?
- Key specifics: Any numbers, named frameworks, or concrete examples that could anchor a visual
- Tone: Is this formal/authoritative, conversational/accessible, provocative/challenge-based?
Summarise these findings internally before proposing compositions — the proposals should feel tailored to this specific article, not generic.
Step 2 — Collect brand specs
Ask the user for brand specs if not provided:
If the user says "use clean defaults", apply:
- Background:
#FFFFFFor#0F0F0F(dark mode default) - Accent:
#2563EB(blue) - Font style: bold geometric sans-serif
- Style: minimal flat, no textures, high contrast
Step 3 — Propose composition concepts
Write 3-4 composition concepts tailored to the article's tone and content. Each concept must:
- Have a name (short, memorable label)
- Describe the layout precisely (where title goes, what visual element anchors it, background treatment)
- Note the mood and the use case it's best suited for
- Include a rationale sentence explaining why this composition fits this specific article
After presenting the concepts, ask which to generate. Wait for user confirmation before making any API calls.
Step 4 — Write Gemini image generation prompts
For each selected composition, write a detailed image generation prompt. Image generation prompts follow a different grammar than text prompts — they are descriptive, not instructional.
Prompt structure:
Example prompt for Bold Claim composition:
Prompt rules:
- Include exact hex colours when brand colours are provided
- Specify the exact headline text to appear in the image
- Name the style explicitly ("flat design", "editorial", "photorealistic") — Gemini responds well to style category names
- Add a negative prompt ("Avoid: ...") at the end to reduce drift from brand style
- Keep prompts under 300 words — longer prompts do not reliably produce better outputs
Step 5 — Check prerequisites and run the generation script
Before calling the API, verify:
If the script is missing, offer to create it using the template in the Script Template section below.
Run the generation script for each prompt:
Or pass all prompts in a batch config file:
Step 6 — Evaluate generated images
After each image is saved, examine it using computer vision. Evaluate on two dimensions:
Brand Fit (score /10):
- Are the brand colours correct? (1-2 points each)
- Does the style match the requested aesthetic? (2 points)
- Is the layout consistent with the composition brief? (2 points)
- Are there any AI artefacts, distorted text, or unintended elements? (-1 per issue)
Text Legibility (score /10):
- Is the headline text readable at full resolution? (3 points)
- Is the headline text readable when the image is scaled to 300px wide (thumbnail size)? (3 points)
- Is there sufficient contrast between text and background? (2 points)
- Is the text placement within safe zones (not cut off at edges)? (2 points)
Note: Gemini Imagen sometimes renders text with spelling errors or distorted letterforms. If this happens, note it in the evaluation and suggest the user add the text overlay manually in Canva or Figma.
Step 7 — Produce the evaluation report
Write the evaluation summary table (format shown in Output Structure section) and save it as evaluation_report.md in the output folder.
Include:
- One-line rationale for each score
- A top pick recommendation per use case (web, email/mobile, social)
- Any production notes (e.g. "text rendering is imperfect on candidate_02 — overlay text manually")
- The full prompts used, so the user can iterate directly in AI Studio if needed
Step 8 — Offer iteration
After delivering the candidates, offer one iteration pass:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/thumbnail-creator/SKILL.md
Popularity
- Repository stars
- 1,320
- Repository forks
- 232
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 Jun 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mohitagw15856/pm-claude-skills/thumbnail-creator)