doa-image

doa-image is a skill for Claude Code from medalsoftchina/workcopilot. It costs 106 tokens per session (1,302 once invoked), scanned A, original, Apache-2.0.

A content-to-image layout tool that turns text, data, guides, schedules, or similar material into a styled HTML page and then into a high-resolution PNG image. It uses layouts, colors, typography, cards, tables, and responsive styling suited to the content.

In plain words
What is it for?
Use it to create travel guides, event posters, infographics, project briefs, rankings, checklists, and other visually formatted long images.
Why use it?
It removes the need to design a long-form visual document manually when the source material is mainly text or structured information. You can preview the HTML before producing the image.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to create travel guides, event posters, infographics, project briefs, rankings, checklists, and other visually formatted long images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/medalsoftchina/workcopilot/doa-image
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 medalsoftchina/workcopilot --skill doa-image
Clone the repo
git clone --depth 1 https://github.com/medalsoftchina/workcopilot

Made for: Claude Code.

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 doa-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/medalsoftchina/workcopilot/doa-image/github.svg)](https://agentmods.dev/skills/medalsoftchina/workcopilot/doa-image)
Your own site
<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.

agentmods 80×15 button for doa-image

Your own site · 80×15
<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>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,302 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.00106 $0.01302
Opus 5.5 $0.00042 $0.00521
Sonnet 5.5 $0.00021 $0.00260
Haiku 4.5 $0.00011 $0.00130

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

Security

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.

embedded-skills/doa-image/SKILL.md · 120 lines

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

风格自动匹配

根据内容主题自动选择最合适的视觉风格:

内容类型 推荐风格 配色方向
旅游/自然 清新自然 绿色系、蓝绿色系
商务/报告 专业简约 深蓝、灰色系
美食/生活 温暖雅致 暖橙、米色系
科技/产品 现代极简 深色 + 亮色点缀
节日/庆祝 活泼明快 红金、多彩
文化/历史 古典雅致 褐色、墨绿

通用设计规范

  1. 字体:优先使用 Noto Serif SC(标题)+ Noto Sans SC(正文),通过 Google Fonts 引入
  2. 布局:最大宽度 960px 居中,卡片式布局,圆角 + 柔和阴影
  3. 间距:充足留白,section 间距 40-48px,卡片内边距 24-32px
  4. 配色:使用 CSS 变量统一管理,主色 + 辅色 + 背景 + 文字色
  5. 响应式:添加 @media (max-width: 600px) 适配移动端
  6. 装饰:适度使用 emoji 增强表达,避免过度堆砌
  7. 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, <根据内容估算高度>),
)

Read the full file on GitHub · 120 lines

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. 3mo ago First seen · 120 lines · 106 tokens per session scan A af8813c82a79

Subscribe to this mod's changes

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.

Related

doa-image compared with skills from other repositories

doa-image next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doa-imagemedalsoftchina/workcopilotSkill46mo agoApache-2.0A106Claude Code
architecture-diagramkonraddzbik/architecture-diagram-skillSkill1842d agoMITA203Claude Code
color-conversion-get-colorbobadilla-tech/requiems-api-skillsSkill222d agoMITA24Claude Code
qr-code-get-base64bobadilla-tech/requiems-api-skillsSkill222d agoMITA28Claude Code
qr-code-get-qrbobadilla-tech/requiems-api-skillsSkill222d agoMITA24Claude Code
figma-use-design-systemplanetabhi/figma-skillsSkill04mo agoMITA169Claude Code
scenario-brand-kitscenario-labs/skillsSkill4.8kyesterdayMITA109Claude Code