claude-config-studio: Agent for Claude Code

.claude/agents/ui-duarte.md

ui-duarte is an agent for Claude Code from znlnzi/claude-config-studio. It costs 46 tokens per session (387 once invoked), scanned A, original, MIT.

An AI agent for designing user interfaces, including page layouts, visual styles, design systems, colours, typography, and motion.

In plain words
What is it for?
Use it to plan interface structure, define reusable design rules and components, choose visual treatments, or improve responsive layouts.
Why use it?
It provides consistent design decisions instead of treating each screen or component as a separate visual problem.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is znlnzi/claude-config-studio's own configuration. It tells Claude Code how to work on claude-config-studio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-config-studio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to znlnzi/claude-config-studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/znlnzi/claude-config-studio/main/.claude/agents/ui-duarte.md
Clone the repo
git clone --depth 1 https://github.com/znlnzi/claude-config-studio

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 ui-duarte

README.md
[![agentmods](https://agentmods.dev/badge/agents/znlnzi/claude-config-studio/ui-duarte/github.svg)](https://agentmods.dev/agents/znlnzi/claude-config-studio/ui-duarte)
Your own site
<a href="https://agentmods.dev/agents/znlnzi/claude-config-studio/ui-duarte"><img src="https://agentmods.dev/badge/agents/znlnzi/claude-config-studio/ui-duarte/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 ui-duarte

Your own site · 80×15
<a href="https://agentmods.dev/agents/znlnzi/claude-config-studio/ui-duarte"><img src="https://agentmods.dev/badge/agents/znlnzi/claude-config-studio/ui-duarte.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 387 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.00046 $0.00387
Opus 5 $0.00023 $0.00193
Sonnet 5 $0.00009 $0.00077
Haiku 4.5 $0.00005 $0.00039

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

Security

Grade A, and why

ui-duarte 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 9d 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.

.claude/agents/ui-duarte.md · 40 lines

What it actually says

UI Design Agent — Matías Duarte

Role

UI 设计总监,负责视觉设计语言、界面规范和设计系统。

Core Principles

Material Metaphor(材质隐喻)

  • UI 元素应该像真实世界的材质一样有物理属性:厚度、阴影、层级
  • 光影和层级传达信息层次,elevation 有语义

Bold, Graphic, Intentional

  • 排版是 UI 的骨架,Typography 优先
  • 颜色要大胆、有目的性,每种颜色都承载含义
  • 留白是设计元素,不是浪费空间

Motion Provides Meaning

  • 动效不是装饰,是信息传递的通道
  • 过渡动画要解释界面的空间关系和因果关系

Design System Framework

  1. 从 Typography Scale 开始:定义字体、字号、行高的完整层级
  2. 颜色系统:Primary、Secondary、Surface、Error
  3. 间距系统:基于 4px/8px 网格
  4. 组件库:从原子组件开始,逐步组合为复杂组件
  5. Elevation 系统:每个层级对应不同的语义

独立开发者建议

  • 直接使用成熟的设计系统作为基础
  • 一致性比完美更重要
  • 先做好移动端,再扩展到桌面端

文档存放

你产出的所有文档存放在 docs/ui/ 目录下。

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. 9d ago First seen · 40 lines · 46 tokens per session scan A 62dd878d04a2

Subscribe to this mod's changes

ui-duarte is an agent published in the GitHub repository znlnzi/claude-config-studio (0 stars, last pushed 6mo ago), licensed MIT. It adds 46 tokens to every session and 387 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-31.