fec-image-generation

fec-image-generation is a skill for Claude Code from bovinphang/frontend-craft. It costs 256 tokens per session (2,105 once invoked), scanned B, original, MIT.

A workflow for creating or editing images and diagrams, from posters and product mockups to academic graphics, illustrations, and system maps. For text-heavy technical diagrams, it can use editable sources such as Mermaid, SVG, HTML, or canvas before exporting an image.

In plain words
What is it for?
Use it to make or edit visual assets, technical diagrams, workflow maps, architecture and data-flow diagrams, UI mockups, posters, product images, comics, avatars, and brand boards.
Why use it?
It helps choose a suitable creation method when visual appearance, editable structure, browser viewing, or image quality matters. Exported PNG files are checked and can be corrected through limited iterations.

Skill for Claude Code

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

Part of the frontend-craft plugin — 56 skills, 11 commands, 14 agents, 5 hooks, 6 MCP servers shipped together

Good fit Use it to make or edit visual assets, technical diagrams, workflow maps, architecture and data-flow diagrams, UI mockups, posters, product images, comics, avatars, and brand boards.

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

Made for: Claude Code.

Or install frontend-craft, the plugin that ships this one along with the rest of its 56 skills, 11 commands, 14 agents, 5 hooks, 6 MCP servers.

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 fec-image-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/bovinphang/frontend-craft/fec-image-generation/github.svg)](https://agentmods.dev/skills/bovinphang/frontend-craft/fec-image-generation)
Your own site
<a href="https://agentmods.dev/skills/bovinphang/frontend-craft/fec-image-generation"><img src="https://agentmods.dev/badge/skills/bovinphang/frontend-craft/fec-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 fec-image-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/bovinphang/frontend-craft/fec-image-generation"><img src="https://agentmods.dev/badge/skills/bovinphang/frontend-craft/fec-image-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 256 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00256 $0.02105
Opus 5 $0.00128 $0.01052
Sonnet 5 $0.00051 $0.00421
Haiku 4.5 $0.00026 $0.00211

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

Security

Grade B, and why

fec-image-generation scanned grade B with 2 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 10d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/export-diagram.mjs, scripts/interactive-diagram-server.mjs, scripts/png-qa.mjs, …), 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -s "http://127.0.0.1:6100/cmd?s=checkout-flow" -d '{"cmd":"init","title":"Checkout Flow","direction":"TB"}'

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "http://127.0.0.1:6100/cmd?s=checkout-flow" -d '{"cmd":"init","title":"Checkout Flow","direction":"TB"}'
localized/zh-CN/skills/fec-image-generation/SKILL.md · 81 lines

How it starts

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

图片生成与图表工作流

用途

生成或编辑图表、视觉资产和图片工作流,并对导出的 PNG 做可复查的自检与修复迭代。

流程

  1. 判断产物类型

    • 文本、结构和连线准确性优先时,用 Mermaid、SVG、HTML/CSS、canvas 或图表库生成可编辑源,再导出 PNG。
    • 需要单文件浏览器打开、暗/亮主题和结构化 QA 的系统蓝图、架构图、部署拓扑、Agent runtime、memory flow、before-after architecture、流程、序列、数据流、生命周期、runbook、状态机或 PII/数据血缘图时,使用 HTML technical diagrams。
    • 流程地图、审批流、自动化运行、异常路径和循环运营流需要清晰的起止节点、决策、参与者、步骤编号和摘要,但不需要 diagrams.net 时,使用 HTML workflow 路线。
    • 系统、Agent、memory、数据或 tool-call 图需要语义节点形状、有含义的连线和可浏览器打开、可导出、可 QA 的源文件时,使用主题化 HTML technical diagrams。
    • 用户需要在本地浏览器里看到节点和连线实时出现,或需要在会话中拖拽、改标签、删除、缩放并快速导出草图时,使用交互式实时图表路线。
    • 审美、质感、照片、插画、漫画、产品图或品牌氛围优先时,用图片生成或编辑工具,再把最终资产保存到项目或报告目录。
  2. 明确输入与约束

    • 收集受众、用途、尺寸、语言、必须出现的文本、品牌限制、可编辑源格式、导出格式和禁用元素。
    • 对海报、UI 样机、品牌板和产品图,先写出一行视觉读取:目标用户、场景、可信感来源、主视觉锚点。
  3. 选择生成路线

    • ER 图、UML 类图、序列图、技术架构图、ML/深度学习、流程图等,优先按 diagram-workflows.md 建立结构化源。
    • 浏览器可打开的系统蓝图、架构、流程、序列、数据流和生命周期图,先读 html-technical-diagrams.md,再用 tech-diagram-render.mjs 渲染 JSON IR。流程工作流用 lanes 表达参与方,用 nodes 表达有序动作,用 edges 表达异常或回环路径,并可添加 waypoints
      node skills/fec-image-generation/scripts/tech-diagram-render.mjs --input diagram.json --output diagram.html --type architecture --manifest diagram.layout.json
      
    • Agent 和 memory 图优先使用 architecture IR,并使用 agentmodelmemoryvectorstoregraphdbtooldocumentqueuebrowserusergateway 等语义节点类型。连线含义重要时添加 flowcontroldatareadwriteasyncfeedback;出现两种以上 flow 时自动生成 flow legend。
    • 需要源文件级主题方向时可添加 visual.styledefaultterminalblueprintminimalglasswarmopenaieditorial-dark。这些是交付主题,不等同于品牌规范承诺。
    • 需要从生成好的 HTML/SVG 源导出适合 README 的 SVG、PNG、JPG 或 JPEG 交付物时,使用 export-diagram.mjs
      node skills/fec-image-generation/scripts/export-diagram.mjs --input diagram.html --format svg
      node skills/fec-image-generation/scripts/export-diagram.mjs --input diagram.html --format png --output diagram.png --scale 2
      
    • 实时交互草图使用 interactive-diagram-server.mjs,打开服务提供的 interactive-diagram.html 页面并带上唯一 ?s=session-id,再向 /cmd?s=session-id 发送小 JSON 命令:
      node skills/fec-image-generation/scripts/interactive-diagram-server.mjs --port 6100
      curl -s "http://127.0.0.1:6100/cmd?s=checkout-flow" -d '{"cmd":"init","title":"Checkout Flow","direction":"TB"}'
      curl -s "http://127.0.0.1:6100/cmd?s=checkout-flow" -d '{"cmd":"node","id":"cart","label":"Review cart","type":"process"}'
      
    • 海报、UI 样机、产品图、信息图、学术图、漫画、头像、分镜、品牌板和图像编辑,按 artifact-routing.md 选择生成、编辑或混合路线。

Read the full file on GitHub · 81 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. 10d ago First seen · 81 lines · 256 tokens per session scan B 3a676eaee8db

Subscribe to this mod's changes

fec-image-generation is a skill published in the GitHub repository bovinphang/frontend-craft (21 stars, last pushed 8d ago), licensed MIT. It adds 256 tokens to every session and 2,105 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

brand-design

Brand-aware design system generator that acts as Head of Brand. Translates abstract brand language into a mathematically-validated, implementation-ready design system, writes creative-brief.md as the source of truth for all UI/UX in a project, and optionally compiles it to framework tokens (Tailwind v4 @theme, v3…

rfxlamia/pocketto · 146 tokens

mobile-flows-maestro

This skill should be used when Maestro is explicitly requested or already present and the task is to author, run, or debug iOS/Android Maestro flows; use Maestro MCP; or handle Maestro selectors, system UI, permissions, Keychain, JavaScript, waits, device state, flakiness, or CI. Evidence includes a .maestro directory…

johnkozaris/jko-claude-plugins · 102 tokens

pocket-init

Onboards an existing (brownfield) project onto Pocket. Scans the codebase and writes a project memory file (CLAUDE.md or AGENTS.md), optionally enables Pocket Enterprise (mode init) and scaffolds GitHub issue/PR templates. Trigger on "pocket-init", "set up pocket", "onboard this project", "generate CLAUDE.md", "enable…

rfxlamia/pocketto · 85 tokens

esp32-expert

This skill should be used for ESP32-specific hardware and runtime work in ESP-IDF, Arduino-ESP32, or PlatformIO projects: target/build detection, FreeRTOS tasks and ISRs, memory/DMA, peripherals, power, networking/security, OTA, crash diagnosis, and unattended reliability. Trigger on "debug this ESP32 crash", "review…

johnkozaris/jko-claude-plugins · 137 tokens

ui-ux-pro-max

UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design…

avelikiy/great_cto · 238 tokens

memory-to-skill

Turn workflows from your MemSearch memory into reusable skills. Use when the user asks to make/create/extract/distill a skill from what they just did or from past work, review skill candidates, install a distilled skill, or 'turn this into a skill'. Manages MemSearch procedural-memory candidates under…

zilliztech/memsearch · 82 tokens