text-to-image-generation

text-to-image-generation is a skill for Claude Code, Codex from GGbond-bo/MemOmics-Agent. It costs 171 tokens per session (1,228 once invoked), scanned A, original, MIT.

A text-to-image tool that uses a configured DashScope Qwen image service to create concept art, diagrams, or cover illustrations from written descriptions. It is intended for images where exact labels and arrows are not essential.

In plain words
What is it for?
Creating concept images, visual examples, and cover artwork from prompts, using configured image-generation access through the available image tool or API.
Why use it?
It provides a way to make illustrative images from text when there is no data file to plot. Generated text and precise diagram details may be unreliable, so data-based or exact scientific figures need code instead.

Skill for Claude CodeCodex

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

Good fit Creating concept images, visual examples, and cover artwork from prompts, using configured image-generation access through the available image tool or API.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ggbond-bo/memomics-agent/text-to-image-generation
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 GGbond-bo/MemOmics-Agent --skill text-to-image-generation
Clone the repo
git clone --depth 1 https://github.com/GGbond-bo/MemOmics-Agent

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 text-to-image-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/text-to-image-generation/github.svg)](https://agentmods.dev/skills/ggbond-bo/memomics-agent/text-to-image-generation)
Your own site
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/text-to-image-generation"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/text-to-image-generation/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 text-to-image-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/text-to-image-generation"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/text-to-image-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 171 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,228 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.00171 $0.01228
Opus 5.5 $0.00068 $0.00491
Sonnet 5.5 $0.00034 $0.00246
Haiku 4.5 $0.00017 $0.00123

Measured 1mo ago against content hash 66ad29e84544, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

text-to-image-generation 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/dashscope_text2image.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.

memomics_home/skills/.archive/text-to-image-generation/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

文生图(text-to-image via DashScope qwen-image)

什么时候用(判定逻辑 — 用户 2026-08 明确要求过)

用户要画图
  ├─ 有数据文件 → 代码画(数据可视化,像素忠于数据)
  │    ├─ CSV/通用数据 → scipilot-figure-skill
  │    ├─ Seurat/单细胞 → scrna-cns-figure-design
  │    └─ 发表级/投稿 → nature-figure
  ├─ 只有文字描述,要概念图/示意图/封面图 → 文生图 API(本 skill)
  │    ├─ 新会话(toolsets.py 注册了 image_gen toolset)→ 优先框架 image_generate 工具
  │    └─ 当前会话无 image_generate 工具 → execute_code 直接调 DashScope API
  └─ 精确示意图(基因名标注/箭头方向/通路逻辑)→ 推荐代码画(Graphviz 等)
       文生图 AI 生成文字/箭头经常出错,只适合文字不重要或无需标注的图

⚠️ 回答"画图逻辑/能力"类问题前必须调查:先 skills_list + 读配置 + 查框架代码,禁止凭记忆声称某个 skill 存在。实测教训:SOUL.md 触发表引用的 cns-visualization 不存在(skill_view 报 unsupported),实际画图 skill 只有 scipilot-figure-skill / nature-figure / scrna-cns-figure-design。

配置现状

  • 配置文件:<MEMOMICS_HOME>/image_gen_config.json(WebUI 设置页写入,优先级高于 config.yaml 的 image_gen 段)
  • provider=dashscope, model=qwen-image-3.0(通义万相)
  • 尺寸:square 1024*1024 / landscape 1280*720 / portrait 720*1280(星号分隔,DashScope 格式)

正确调用(DashScope 原生 multimodal-generation)

  • 端点:POST https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation
  • 同步调用:不要加 X-DashScope-Async: enable header(会 403 或走异步任务流,当前会话成功路径是同步)
  • 不要用 OpenAI 兼容端点 /images/generations(404)也不要 text2image/image-synthesis(不是这个模型系列)
  • 响应解析:result["output"]["choices"][0]["message"]["content"][0]["image"] → 图片 URL → 下载保存
  • key 读取路径:cfg["dashscope"]["api_key"](不是顶层)

关键坑(已实测)

  1. API key 被 Hermes 工具层脱敏:read_file/execute_code 输出里的 sk-… key 一律变成 «redacted:sk-…»。必须用 Python open() 直接读文件原始字节(脚本进程内读到的是真实内容),不要打印 key。
  2. key 在嵌套路径:image_gen_config.json 里是 dashscope.api_key,不是顶层 api_key。
  3. qwen-image-3.0 走 multimodal-generation,不是 OpenAI images 兼容口,也不是 text2image。
  4. 框架自带 image_generate 工具(toolsets.py image_gen toolset,支持 9 家后端:dashscope/deepinfra/fal/krea/openai/openrouter/xai 等),但工具集变更后新会话才暴露;旧会话里只能用 execute_code 手动调 API。

Read the full file on GitHub · 57 lines

Files

What ships with it

1 file 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. 1mo ago First seen · 57 lines · 171 tokens per session scan A 66ad29e84544

Subscribe to this mod's changes

text-to-image-generation is a skill published in the GitHub repository GGbond-bo/MemOmics-Agent (33 stars, last pushed 14d ago), licensed MIT. It adds 171 tokens to every session and 1,228 once invoked, about $0.0007 per session on Opus 5.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-10-25.

Related

text-to-image-generation compared with skills from other repositories

text-to-image-generation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
text-to-image-generationGGbond-bo/MemOmics-AgentSkill3314d agoMITA171Claude Code, Codex
biopythonK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA65Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA44Claude Code
neuropixels-analysisK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA99Claude Code, Codex
pydicomK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA52Claude Code, Codex
umap-learnK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA52Claude Code, Codex
clinical-decision-supportK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA51Claude Code, Codex