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.
npx skills add GGbond-bo/MemOmics-Agent --skill text-to-image-generationgit clone --depth 1 https://github.com/GGbond-bo/MemOmics-AgentWrote 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.
[](https://agentmods.dev/skills/ggbond-bo/memomics-agent/text-to-image-generation)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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/ landscape1280*720/ portrait720*1280(星号分隔,DashScope 格式)
正确调用(DashScope 原生 multimodal-generation)
- 端点:
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation - 同步调用:不要加
X-DashScope-Async: enableheader(会 403 或走异步任务流,当前会话成功路径是同步) - 不要用 OpenAI 兼容端点
/images/generations(404)也不要text2image/image-synthesis(不是这个模型系列) - 响应解析:
result["output"]["choices"][0]["message"]["content"][0]["image"]→ 图片 URL → 下载保存 - key 读取路径:
cfg["dashscope"]["api_key"](不是顶层)
关键坑(已实测)
- API key 被 Hermes 工具层脱敏:
read_file/execute_code输出里的sk-…key 一律变成«redacted:sk-…»。必须用 Pythonopen()直接读文件原始字节(脚本进程内读到的是真实内容),不要打印 key。 - key 在嵌套路径:
image_gen_config.json里是dashscope.api_key,不是顶层api_key。 - qwen-image-3.0 走 multimodal-generation,不是 OpenAI images 兼容口,也不是 text2image。
- 框架自带
image_generate工具(toolsets.pyimage_gen toolset,支持 9 家后端:dashscope/deepinfra/fal/krea/openai/openrouter/xai 等),但工具集变更后新会话才暴露;旧会话里只能用 execute_code 手动调 API。
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.
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.
- 1mo ago First seen · 57 lines · 171 tokens per session scan A 66ad29e84544
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.
text-to-image-generation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| text-to-image-generationGGbond-bo/MemOmics-Agent | Skill | 33 | 14d ago | MIT | A | 171 | Claude Code, Codex |
| biopythonK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 65 | Claude Code |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 44 | Claude Code |
| neuropixels-analysisK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 99 | Claude Code, Codex |
| pydicomK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 52 | Claude Code, Codex |
| umap-learnK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 52 | Claude Code, Codex |
| clinical-decision-supportK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 51 | Claude Code, Codex |