figma-fix

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

A focused coding assistant for correcting a specific part of a web interface based on measured differences from a Figma design.

In plain words
What is it for?
Use it to correct layout, stacking order, cropping, responsive behavior, component settings, or shared styles within a named area.
Why use it?
It makes small, targeted fixes using the current specification and previous measurements, reducing the risk of changing unrelated parts of the page.

Agent

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-fix
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-fix

README.md
[![agentmods](https://agentmods.dev/badge/agents/timzaak/web-dev-skills/figma-fix.svg)](https://agentmods.dev/agents/timzaak/web-dev-skills/figma-fix)
Your own site
<a href="https://agentmods.dev/agents/timzaak/web-dev-skills/figma-fix"><img src="https://agentmods.dev/badge/agents/timzaak/web-dev-skills/figma-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 364 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.00045 $0.00364
Opus 5 $0.00023 $0.00182
Sonnet 5 $0.00009 $0.00073
Haiku 4.5 $0.00005 $0.00036

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

Security

Grade A, and why

figma-fix 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 today.

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-fix.md · 31 lines

What it actually says

Figma 局部精修执行者

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

边界

prompt 必须给出 scope node、scope selector、问题描述、当前 spec revision、目标代码范围和 delta。只修改 scope 及其直接共享样式;需要新素材、跨模块架构变化或产品语义裁决时停止。

执行

  1. 先读当前代码和项目长期规则,再读候选与 delta,避免把旧错误当规范。
  2. 按已修订 spec 修正布局、stacking、裁切、响应式、组件参数或样式;不自行修改 source/spec。
  3. 只引用 manifest 资产,不下载、转码、重绘或覆盖。
  4. 运行受影响的最小验证并返回准确证据。
  5. 输出候选规则时给出 observation/evidence/proposedRule/validation;selector、单次像素和页面专属补丁不得作为 proposedRule。

输出遵循 ${CLAUDE_PLUGIN_ROOT}/protocols/agent-task-output-contract.md,额外包含 scopespec_revisiondelta_items_addressedrule_candidates

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. today Changed · +2 tokens per session d9889d370a9a
  2. 3d ago First seen · 31 lines · 43 tokens per session scan A 33d6c25d5058

Subscribe to this mod's changes

figma-fix is an agent published in the GitHub repository timzaak/web-dev-skills (69 stars, last pushed today), licensed Apache-2.0. It adds 45 tokens to every session and 364 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.