/minimalist-entrepreneur:image-generationfrom minimalist-entrepreneur
统一调用 MiniMax M Plan 与 OfoxAI 的图像生成和参考图编辑模型,支持 Nano Banana、Seedream、image-01、低清测试、多提供商配置与结果落盘。用户要求生成角色参考图、图像编辑或使用这些提供商时使用。
Ships in minimalist-entrepreneur. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
统一入口:scripts/generate_image.py。只依赖 Python 标准库。模型名自动决定 provider,不需要分别记两套命令。
在本 skill 根目录的 config.json 填写各 provider 的 token:
{
"providers": {
"minimax-plan": {"token": ""},
"ofoxai": {"token": ""}
}
}
以后新增 provider 时在同一对象中添加成员,并补充脚本后端。配置文件必须保持 Git 忽略、权限 600。不要打印、提交或在命令行传递 token。
低成本耄耋角色图草稿:
python3 skills/image-generation/scripts/generate_image.py \
--model nano-banana-2 \
--resolution 512 \
--reference research/video-generation/assets/maodi-face-reference.png \
--prompt "保持同一只猫,仅移除背景" \
--out output/cat.png
MiniMax 图生图:
python3 skills/image-generation/scripts/generate_image.py \
--model image-01 \
--reference path/to/reference.png \
--prompt "同一角色,正面全身,纯色背景" \
--n 4 \
--out-dir output/candidates
可用模型:
| 模型别名 | Provider | 默认分辨率 |
|---|---|---|
image-01 / image-01-live | minimax-plan | 按 --aspect-ratio |
nano-banana-2 | ofoxai | 512,适合低成本测试 |
nano-banana-2.1 | ofoxai | 1K |
nano-banana-pro | ofoxai | 1K |
seedream-5-flash / seedream-5-pro | ofoxai | 1024x1024 |
Ofox 每次请求生成一张;多个候选分别调用。MiniMax 可用 --n 1..9 和 --out-dir 批量生成。--reference 可重复使用:Nano Banana 最多 14 张,MiniMax/Seedream 限 1 张。多图时在 prompt 中明确“第一张是角色、第二张是场景”等对应关系。--dry-run 校验配置和参数,不发送生成请求。
nano-banana-2 --resolution 512,不要直接用 2K/4K。What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub linjiaqin12138/skills --plugin minimalist-entrepreneur29 skills in this plugin
/clone-from-scratch-tutor把一个开源仓库做成可断点续作的从零实现教程。当用户给出仓库地址,并要求手搓、从零实现、按里程碑学习作者的设计时使用。只想要代码导读、跑起来或一次架构介绍时不用。/company-valuesHelp define company values and culture for a minimalist business. Use when someone is setting up their company culture, preparing to hire, or wanting to codify what their company stands for./concept-writer当需要把一个概念落成可链接的概念页或深读页,或教程里的背景卡片装不下这个概念时使用。正文覆盖本次用点及其依赖、讲到够用;「去学」仅供深入。/content-recipe根据 creator-teardown 的结论和账号粉丝画像,生成可复用的内容模板(template.md),并为本批视频产出标题、正文、标签、发布时间、封面构图和分镜计划,渲染成 answer-me-with-html 报告供发布前 review。用户说「按这个模板做一条」「出一期发布计划」「模仿这个号」时使用。/creator-teardown拆解一个小红书、B站、抖音或视频号博主:抓主页作品,找出高赞高流量,编码封面与选题,算出数据,产出 insights.md 和 answer-me-with-html 报告。用户给博主主页链接、说「拆解这个号」「分析流量密码」「找他的爆款」时使用。/d2-diagramsCreates professional diagrams as code with D2 (d2lang.com) and renders them to SVG — architecture and system diagrams, flowcharts, sequence diagrams, database schemas/ERDs, network and cloud topologies, C4, state machines. Renders with the best available layout engine (TALA when licensed, ELK otherwise), then views its own rendered output and fixes layout defects in a loop before delivering. Use whenever the user wants a diagram or asks to visualise, map, or sketch a system, workflow, architecture, pipeline, schema, or process — even if they don't say "diagram" — and whenever they mention D2, d2lang, TALA, or diagram-as-code. Does NOT cover data charts or graphs (bar/line/scatter — use a plotting library) or hand-drawn Excalidraw JSON files.