code-material-gen

code-material-gen is a skill for Claude Code from aAAaqwq/AGI-Super-Team. It costs 75 tokens per session (1,091 once invoked), scanned A, original, MIT.

A code-based graphics tool that uses HTML and CSS, then renders the result with Playwright, a browser automation tool. It is designed for Chinese text, selectable fonts, and repeatable layouts.

In plain words
What is it for?
Use it to make timelines, comparison tables, lists, quote cards, covers, and charts as image files.
Why use it?
It avoids relying on an image-generation service when you need exact text, fixed pixels, or consistent results. The same commands can create the graphic again with the same inputs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agi-super-team plugin — 192 skills, 1 agent shipped together

Good fit Use it to make timelines, comparison tables, lists, quote cards, covers, and…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aaaaqwq/agi-super-team/code-material-gen
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 aAAaqwq/AGI-Super-Team --skill code-material-gen
Clone the repo
git clone --depth 1 https://github.com/aAAaqwq/AGI-Super-Team

Made for: Claude Code.

Or install agi-super-team, the plugin that ships this one along with the rest of its 192 skills, 1 agent.

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 code-material-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/code-material-gen.svg)](https://agentmods.dev/skills/aaaaqwq/agi-super-team/code-material-gen)
Your own site
<a href="https://agentmods.dev/skills/aaaaqwq/agi-super-team/code-material-gen"><img src="https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/code-material-gen.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,091 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.00075 $0.01091
Opus 5 $0.00037 $0.00545
Sonnet 5 $0.00015 $0.00218
Haiku 4.5 $0.00007 $0.00109

Measured 2d ago against content hash 3c0903f17746, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

code-material-gen 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 2d ago.

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

skills/code-material-gen/SKILL.md · 101 lines

What it actually says

code-material-gen — 代码生成配图素材

HTML/CSS + Playwright 渲染,全中文手写字体,像素精确,零成本

定位

当素材需要全中文、手写字体、字迹清晰、可复现时使用。替代API生图方案(longform-visual-notes),不消耗任何API额度。

与其他skill的关系

Skill 关系
longform-visual-notes 互补:API生图 vs 代码生成
content-cover-gen 互补:封面场景可用code-material-gen
daily-gzh-content 素材生成阶段调用
daily-xhs-content 小红书素材(比例改3:4)

快速使用

python3 ~/clawd/skills/code-material-gen/scripts/generate.py \
  --type list \
  --title "三个核心建议" \
  --items "建议一:先用Excel写规则" "建议二:手动执行30天" "建议三:追求稳定性" \
  --font MaShanZheng \
  --palette ink \
  --size 1536x1024 \
  --output /path/to/output.png

素材类型

type 用途 items格式
timeline 时间线/阶段图 "阶段一:描述" "阶段二:描述"
compare 对比表格(表头第一项) "指标|A|B" "胜率|59%|61%"
list 要点列表/编号卡片 "标题:描述"
quote 金句/引用卡片 "金句文字" "作者"
cover 文章封面 "副标题" "标签1,标签2"
chart 数据展示(同list) 同list

手写字体

字体 风格 推荐场景
MaShanZheng 马善政楷体 推荐,清晰有力,正文首选
ZCOOLKuaiLe 站酷快乐体 圆润活泼,适合轻松内容
LiuJianMaoCao 刘建毛草 草书风格,仅适合大标题
ZhiMangXing 芝麻行书 行书风格,适合金句卡片

配色方案

palette 风格 适用
tech 深色科技(深蓝底+亮蓝) AI/科技/数据主题
warm 暖色纸张(米色底+橙红) 经验分享/生活类
ink 水墨风(白底+红黑) 推荐,文化感强
minimal 极简白(白底+蓝) 通用/商务

尺寸建议

平台 推荐 参数
公众号/抖音 16:9 1536x1024
小红书 3:4 1024x1365
封面 16:9 1920x1080

输出规范

  • 全中文,无任何英文
  • 手写字体,清晰可读
  • 零成本,不消耗API
  • 可复现,同样参数永远输出一样
  • <1秒/张,批量生成极快

依赖

  • Python 3 + Playwright(pip install playwright
  • 中文字体文件在 ~/.fonts/chinese-handwriting/
  • 无需网络,无需API key

更新日志

  • v1.0.0 (2026-04-18): 初始版本
    • 5种素材类型(timeline/compare/list/quote/cover)
    • 4种手写字体(马善政/站酷快乐/刘建毛草/芝麻行书)
    • 4种配色方案(tech/warm/ink/minimal)
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. 2d ago First seen · 101 lines · 75 tokens per session scan A 3c0903f17746

Subscribe to this mod's changes

code-material-gen is a skill published in the GitHub repository aAAaqwq/AGI-Super-Team (91 stars, last pushed 3d ago), licensed MIT. It adds 75 tokens to every session and 1,091 once invoked, about $0.0004 per session on Opus 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-09-05.

Related

Other skills, from other repositories

frontend-design

Use this as the design-lead layer for VideoStudio COMPOSE work. It shapes project/composition/composition-manifest.json::artdirection and the model-authored HTML/SVG motion graphics in index.html.

Orkas-AI/Orkas · 2 tokens

image-design-review

Read this skill only after a passing COMPOSE or HYBRID imagestudio project.snapshot returns visualevidence.attached:true. Never load it at task start, during routing, or in the same parallel batch as image-router. Never use it for a GENERATE or EDIT raster, including strict reproduction, semantic editing, explicit…

Orkas-AI/Orkas · 3 tokens

composition-design-review

Apply this checklist yourself after a successful composition.snapshot, before the preview is shown. It is advisory: nothing is submitted to the host, no operation records a verdict, and no gate waits on it — the host publishes the contact sheet with the passing snapshot. It is a design QA layer for your own authoring…

Orkas-AI/Orkas · 3 tokens

image-canvas

Read this private ImageStudio skill only after route lock when the result has multiple meaningful visual regions, an explicit reading order, exact layout constraints, or references bound to regions. Skip it for a simple single-region image. If art direction is also needed, read image-craft first. This adapts the…

Orkas-AI/Orkas · 3 tokens

image-craft

Read this skill only after route lock when the task needs original art direction, restyling, or clarification of an underspecified look. Skip it for crop, resize, format conversion, background removal, deterministic placement, or a narrow edit whose visual system is already defined.

Orkas-AI/Orkas · 3 tokens

slides

A slide generator that creates PNG images for presentation decks, including simple backgrounds for spoken-video scripts and fuller layouts for standalone presentations.

majiayu000/spellbook · 41 tokens