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 medalsoftchina/workcopilot --skill doa-imagegit clone --depth 1 https://github.com/medalsoftchina/workcopilotWrote 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/medalsoftchina/workcopilot/doa-image)<a href="https://agentmods.dev/skills/medalsoftchina/workcopilot/doa-image"><img src="https://agentmods.dev/badge/skills/medalsoftchina/workcopilot/doa-image/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/medalsoftchina/workcopilot/doa-image"><img src="https://agentmods.dev/badge/skills/medalsoftchina/workcopilot/doa-image.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.00106 | $0.01302 |
| Opus 5.5 | $0.00042 | $0.00521 |
| Sonnet 5.5 | $0.00021 | $0.00260 |
| Haiku 4.5 | $0.00011 | $0.00130 |
Grade A, and why
doa-image 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 3mo 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 — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
HTML Beautiful Page → Image
将用户提供的内容(文字、数据、攻略等)生成一张格式精美、排版现代、配色雅致的 HTML 页面,用户确认后将其转为高清 PNG 长图。
When to Use
- 需要把文字内容变成精美可视化页面
- 生成旅游攻略、活动日程、项目简报等长图
- 制作信息图表、清单、排行榜等
- 任何需要 "内容 → 精美HTML → 图片" 的场景
Design Principles
风格自动匹配
根据内容主题自动选择最合适的视觉风格:
| 内容类型 | 推荐风格 | 配色方向 |
|---|---|---|
| 旅游/自然 | 清新自然 | 绿色系、蓝绿色系 |
| 商务/报告 | 专业简约 | 深蓝、灰色系 |
| 美食/生活 | 温暖雅致 | 暖橙、米色系 |
| 科技/产品 | 现代极简 | 深色 + 亮色点缀 |
| 节日/庆祝 | 活泼明快 | 红金、多彩 |
| 文化/历史 | 古典雅致 | 褐色、墨绿 |
通用设计规范
- 字体:优先使用
Noto Serif SC(标题)+Noto Sans SC(正文),通过 Google Fonts 引入 - 布局:最大宽度 960px 居中,卡片式布局,圆角 + 柔和阴影
- 间距:充足留白,section 间距 40-48px,卡片内边距 24-32px
- 配色:使用 CSS 变量统一管理,主色 + 辅色 + 背景 + 文字色
- 响应式:添加
@media (max-width: 600px)适配移动端 - 装饰:适度使用 emoji 增强表达,避免过度堆砌
- Hero 区:渐变背景 + 标题 + 副标题 + 关键信息,营造视觉焦点
HTML 结构模板
Hero 区(渐变背景 + 标题)
├── 总览/概要(grid 卡片)
├── 主体内容(分节卡片 + 时间线/列表)
├── 补充信息(grid 网格展示)
├── 数据/表格(简洁表格)
├── 提示/备注(tip 卡片网格)
└── 页脚(点睛之笔)
Procedure
Step 1: 理解需求
- 确认用户要生成的内容主题
- 如果内容不够充分,主动询问补充细节
- 确定视觉风格偏好(或自动匹配)
Step 2: 生成 HTML
- 创建单文件 HTML(CSS 内联在
<style>中) - 遵循上述设计规范
- 文件名使用中文描述性名称,如
湖州五一旅游攻略.html - 输出目录:
output/{内容描述性名称}/(每次新任务创建独立子文件夹)
Step 3: 用户确认
- 提示用户在浏览器中预览 HTML
- 等待用户确认或提出修改意见
- 如需修改,迭代调整后再次确认
Step 4: 转为图片
用户确认后,使用 html2image + Edge/Chrome 浏览器将 HTML 截图为 PNG。
生成转换脚本并执行:
import os
from html2image import Html2Image
# 自动查找浏览器
for p in [
r"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe",
r"C:\Program Files\Microsoft\Edge\Application\msedge.exe",
r"C:\Program Files\Google\Chrome\Application\chrome.exe",
r"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe",
]:
if os.path.exists(p):
browser_path = p
break
hti = Html2Image(
browser_executable=browser_path,
output_path="<输出目录>",
custom_flags=["--no-sandbox", "--disable-gpu", "--hide-scrollbars"],
)
hti.screenshot(
html_file="<HTML文件路径>",
save_as="<输出文件名>.png",
size=(1080, <根据内容估算高度>),
)
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.
- 3mo ago First seen · 120 lines · 106 tokens per session scan A af8813c82a79
doa-image is a skill published in the GitHub repository medalsoftchina/workcopilot (4 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 106 tokens to every session and 1,302 once invoked, about $0.0004 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-08-31.
doa-image compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| doa-imagemedalsoftchina/workcopilot | Skill | 4 | 6mo ago | Apache-2.0 | A | 106 | Claude Code |
| architecture-diagramkonraddzbik/architecture-diagram-skill | Skill | 184 | 2d ago | MIT | A | 203 | Claude Code |
| color-conversion-get-colorbobadilla-tech/requiems-api-skills | Skill | 2 | 22d ago | MIT | A | 24 | Claude Code |
| qr-code-get-base64bobadilla-tech/requiems-api-skills | Skill | 2 | 22d ago | MIT | A | 28 | Claude Code |
| qr-code-get-qrbobadilla-tech/requiems-api-skills | Skill | 2 | 22d ago | MIT | A | 24 | Claude Code |
| figma-use-design-systemplanetabhi/figma-skills | Skill | 0 | 4mo ago | MIT | A | 169 | Claude Code |
| scenario-brand-kitscenario-labs/skills | Skill | 4.8k | yesterday | MIT | A | 109 | Claude Code |