Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Article Illustration Generator

ASecurity

Generates illustrations for articles

207 stars
0 votes
0 copies
1 views
Added 9/4/2026
toolspythongobashapidocumentation

Works with

api

Security Analysis

A100/100

Scanned 9/4/2026

Install to Claude Code

$npx -y skills add NeverSight/skills_feed --skill article-illustration-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Article Illustration Generator?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Article Illustration Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-article-illustration-generator/badge)](https://www.skillsdirectory.com/skills/neversight-article-illustration-generator)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: "article-illustration-generator"
description: "Generates illustrations for articles"
---

# Article Illustration Generator

This skill automatically generates relevant illustrations for a text article using the Gemini Image API and converts it into a visually appealing HTML file.

## Workflow

1.  **API Key Check**:
    *   First, check if the GOOGLE_API_KEY environment variable is set.
    *   If not set, use the AskUserQuestion tool to ask the user if they have configured their API key.
    *   If the user hasn't configured it, ask them to provide their Google API key.
    *   Store the API key for use in the script execution.

2.  **Input Analysis**:
    *   Read the user's article text.
    *   Split the text into logical sections (paragraphs).
    *   Identify key scenes for illustration (aim for 1 image every 2-3 paragraphs).

3.  **Image Generation**:
    *   For each identified scene, generate a descriptive prompt based on the text context.
    *   Use the `google.genai` SDK to generate images.
    *   **Model**: `gemini-2.5-flash-image` (default, or user specified).
    *   **Config**: Use `aspect_ratio="16:9"` or `4:3` for article images.

4.  **HTML Construction**:
    *   Use the HTML template provided in `assets/template.html` ("故都的秋" style).
    *   Insert the text and generated images (saved locally) into the HTML structure.

## Resources

This skill includes reference files in the `references/` directory:

*   **`references/template.html`**: The HTML/CSS template with serif fonts and clean layout. Use this as the base for the output file.
*   **`references/api_guide.md`**: Detailed documentation for the Nano Banana Pro (Gemini 3 Pro Image) API, which can be used for advanced image generation needs.
*   **`references/script_template.py`**: A Python script template containing the API calling logic.

## Usage Guide

When invoked, the agent should:
1.  **Check API Key Configuration**:
    *   Use Bash to check if GOOGLE_API_KEY environment variable is set: `echo $GOOGLE_API_KEY` (Linux/Mac) or `echo %GOOGLE_API_KEY%` (Windows).
    *   If empty or not set, use AskUserQuestion to ask: "您是否已经配置了 Google API Key?"
        *   Option 1: "是,已配置为环境变量" - Proceed with the script.
        *   Option 2: "否,我需要提供 API Key" - Ask for the API key and pass it as a command-line argument to the script.
    *   If the user provides an API key, store it temporarily for this execution.

2.  Read the target article provided by the user.
3.  Plan the image insertion points.
4.  Execute the Python script (`scripts/article_to_html.py`) with appropriate parameters:
    *   If API key was provided by user: `python scripts/article_to_html.py <article_file> <api_key>`
    *   If using environment variable: `python scripts/article_to_html.py <article_file>`
    *   Optional parameters: `--images N`, `--model MODEL`, `--ratio RATIO`, `--size SIZE`
5.  Verify the result and inform the user of the output location.

Attribution

NeverSightNeverSight
View sourceMore from NeverSight →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

ucoz-landing-skill

Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

805541 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes

Caveman Compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"

1023330 votes
View all in tools →