figma-assets

figma-assets is an agent for coding agents from timzaak/web-dev-skills. It costs 39 tokens per session (361 once invoked), scanned A, original, Apache-2.0.

An asset-handling agent for confirmed Figma sources. It downloads, combines, converts, verifies, and places approved media files, then records them in a manifest.

In plain words
What is it for?
It is for preparing approved images, SVGs, WebP files, GIFs, and videos for use in a project without implementing the UI.
Why use it?
It keeps asset preparation separate from interface coding and checks files for identity, format, dimensions, and video properties.

Agent

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the t-tools plugin — 27 skills, 31 agents shipped together

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.

agentmods
npx agentmods add agents/timzaak/web-dev-skills/figma-assets
Clone the repo
git clone --depth 1 https://github.com/timzaak/web-dev-skills

Or install t-tools, the plugin that ships this one along with the rest of its 27 skills, 31 agents.

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 figma-assets

README.md
[![agentmods](https://agentmods.dev/badge/agents/timzaak/web-dev-skills/figma-assets.svg)](https://agentmods.dev/agents/timzaak/web-dev-skills/figma-assets)
Your own site
<a href="https://agentmods.dev/agents/timzaak/web-dev-skills/figma-assets"><img src="https://agentmods.dev/badge/agents/timzaak/web-dev-skills/figma-assets.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00361
Opus 5 $0.00019 $0.00180
Sonnet 5 $0.00008 $0.00072
Haiku 4.5 $0.00004 $0.00036

Measured 4d ago against content hash b9824f4c4eb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

figma-assets 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 4d 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.

agents/figma-assets.md · 30 lines

What it actually says

Figma 素材执行者

共享契约:${CLAUDE_PLUGIN_ROOT}/protocols/figma-workflow-contract.md 资产规范:${CLAUDE_PLUGIN_ROOT}/guides/figma/assets.md

边界

输入必须包含 project root、session、context、已下载 raw 清单、正式资产目录和已裁决的合成/视频来源。不得调用 Figma MCP、编辑 UI 文件、安装依赖、生成占位素材或自行选择有歧义的节点。

执行

  1. 校验 raw/source 位于项目内,名称语义化,正式输出目录符合 context。
  2. 图片调用 ${CLAUDE_PLUGIN_ROOT}/scripts/figma-assets.py image;视频调用同脚本 video。SVG/WebP/GIF 仅复制并读取元数据。
  3. 写正式文件前计算 hash:同内容复用,异内容返回冲突并停止。
  4. 仅在全部条目完成后原子性写 assets-manifest.json;字段和枚举严格按共享契约。
  5. 返回 converted/reused/flattened/video_verified/failures 和 manifest 路径。

验证必须包含:文件存在、SHA-256、mime/codec、宽高与 aspect ratio;视频额外验证 yuv420p 和 faststart。HTTP Range 留给页面 accept。

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. 4d ago First seen · 30 lines · 39 tokens per session scan A b9824f4c4eb5

Subscribe to this mod's changes

figma-assets is an agent published in the GitHub repository timzaak/web-dev-skills (69 stars, last pushed yesterday), licensed Apache-2.0. It adds 39 tokens to every session and 361 once invoked, about $0.0002 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-08-30.