ai-cover-generator

ai-cover-generator is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 126 tokens per session (748 once invoked), scanned A, original, Apache-2.0.

A tool for creating article cover images and illustrations through a local image-generation service. It can check required image sizes and optionally make smaller JPG files.

In plain words
What is it for?
Use it to create blog covers or article illustrations, check platform size limits, download generated images, and compress them for upload.
Why use it?
It removes the need to prepare image-generation requests, wait for results, and manually adjust files for different publishing platforms.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create blog covers or article illustrations, check platform size limits, download generated images, and compress them for upload.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/ai-cover-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill ai-cover-generator
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-cover-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/ai-cover-generator/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/ai-cover-generator)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/ai-cover-generator"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/ai-cover-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-cover-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/ai-cover-generator"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/ai-cover-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 748 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00126 $0.00748
Opus 5 $0.00063 $0.00374
Sonnet 5 $0.00025 $0.00150
Haiku 4.5 $0.00013 $0.00075

Measured 11d ago against content hash 2ff84db48ad3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ai-cover-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/generate_cover.py, tests/test_generate_cover.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/writing/assets/ai-cover-generator/SKILL.md · 55 lines

What it actually says

AI 封面图生成 Skill

compatibility

  • Python 3.8+(标准库即可运行;--jpg 压缩功能需 Pillow)
  • 本地图片服务运行于 http://127.0.0.1:30080(可用环境变量 IMAGE_API_BASE 覆盖)

服务契约

与本地 ai-image-gen 服务完全一致:

  • 提交POST /api/image/generate {"model":"gpt-image-2","prompt":"...","params":{"size":"1792x1024","quality":"auto","n":1}}
  • 轮询GET /api/image/status?task_id=... is_final=true && state=="success"result_url 为下载地址
  • 尺寸规则:宽高均为 16 的倍数;宽高比 1:33:1;总像素 6553608294400(脚本提交前会校验)

使用

1. 先看请求计划(默认 dry-run)

python3 scripts/generate_cover.py --prompt "..." --size 1536x1024

2. 提交并等待完成

python3 scripts/generate_cover.py --execute \
  --prompt "Dark tech blog cover, isometric illustration of publish pipelines across platforms, flat design, #0d1117 background, green #238636 and blue #58a6ff accents" \
  --size 1536x1024 --out cover.png --jpg --timeout 180
  • --jpg:额外用 PIL 压缩出 <1MB 的 JPG(知乎/公众号上传要求小体积)
  • 服务不可达 → 明确报错 exit 1,不会假装成功

3. Prompt 风格模板(配合各平台规范)

平台 建议 prompt 要素 尺寸
博客园 暗色 #0d1117 背景 + #238636/#58a6ff 点缀,flat-design 无渐变 1536x1024 (3:2)
知乎 主题场景风格插画,避免纯渐变 PPT 风 1536x1024
公众号 900x383 头图比例附近取整到16倍数(如 896x384) 896x384

英文 prompt 更稳:主体 + 风格 + 光影 + 构图 + 配色。

与其他技能的联动

  • cnblogs-skill / zhihu-content-manager 的发文流程中「生成配图」一步即调用本技能
  • 生成的 JPG 路径直接传给对应平台的图片上传步骤
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 55 lines · 126 tokens per session scan A 2ff84db48ad3

Subscribe to this mod's changes

ai-cover-generator is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 126 tokens to every session and 748 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agentic-webdesign-html-anything

Install and use html-anything — the agentic HTML editor where your local AI agent writes HTML and you ship it. 75 skills × 9 surfaces, BYOK, zero API key. Use when building magazine articles, keynote decks, resumes, posters, social cards, web prototypes, data reports, or Hyperframes videos with AI coding agents.

S3YED/appie-kit · 78 tokens

blog-post

Full-stack blog post production — turns a topic, idea, or brief into a complete publishing package across written, social, and multimedia surfaces. Generates broomva.tech .mdx posts (or Substack/other long-form), X posts and threads, LinkedIn posts, Instagram posts and reel scripts, plus multimedia asset plans…

broomva/skills · 182 tokens

content-creation

Full-stack content creation pipeline: idea or reference to published blog post, audio narration, video, and social media distribution. Orchestrates research, reference extraction, storytelling, AI visual assets (Nano Banana, Veo 3.1), TTS audio (Voicebox, kokoro-tts, Edge TTS), Remotion video, and social copy into a…

broomva/skills · 239 tokens

muapi-seedance-2

Expert Cinema Director skill for Seedance 2.0 (ByteDance) — high-fidelity video generation across Chinese, Global, and VIP tiers. Supports text-to-video, image-to-video, first-last-frame, omni reference, character training, omni-reference training, video editing, and watermark removal.

SamurAIGPT/Generative-Media-Skills · 67 tokens

muapi-workflow

Build, run, and visualize multi-step AI generation workflows. The AI architect translates natural language descriptions into connected node graphs — chain image generation, video creation, enhancement, and editing into automated pipelines.

SamurAIGPT/Generative-Media-Skills · 44 tokens

muapi-media-editing

Edit and enhance images and videos with AI via muapi.ai — prompt-based editing, upscaling, background removal, face swap, lipsync, video effects, and more.

SamurAIGPT/Generative-Media-Skills · 41 tokens