Borrowing it
Nothing to install: this file belongs to fanfan-de/anybox. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/fanfan-de/anybox/master/.agents/skills/frontend-ui-style-kit/SKILL.mdgit clone --depth 1 https://github.com/fanfan-de/anyboxWrote 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.
[](https://agentmods.dev/skills/fanfan-de/anybox/frontend-ui-style-kit)<a href="https://agentmods.dev/skills/fanfan-de/anybox/frontend-ui-style-kit"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/frontend-ui-style-kit/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.
<a href="https://agentmods.dev/skills/fanfan-de/anybox/frontend-ui-style-kit"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/frontend-ui-style-kit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00092 | $0.01280 |
| Opus 5 | $0.00046 | $0.00640 |
| Sonnet 5 | $0.00018 | $0.00256 |
| Haiku 4.5 | $0.00009 | $0.00128 |
Grade A, and why
frontend-ui-style-kit 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.
前端 UI 样式模板
用途
使用这个 skill 为小型产品级 UI 基础组件套用一致、可复用的样式基础。优先读取目标应用已有的设计 token、组件模式和相邻样式,再用本 skill 的模板补齐缺失部分。
工作流程
- 在写样式之前,先检查目标应用已有的 token、基础样式和相邻组件。
- 将本 skill 的语义 token 映射到本地 token,避免在已有等价 token 时硬编码颜色。
- 只在需要时加载对应参考文档:
- 右键菜单、自定义上下文菜单:读取
references/context-menu.md。 - 页面滚动条、长滚动容器:读取
references/scrollbar.md。
- 右键菜单、自定义上下文菜单:读取
- 基础组件样式要保持紧凑、可操作、可复用。除非组件明确属于某个业务功能,否则避免使用过于业务化的命名。
- 完成前检查亮色主题、暗色主题、键盘操作、鼠标操作、视口边缘定位、禁用状态和长文本。
基础规则
- 优先使用现有 CSS 变量。常见映射包括 surface、elevated surface、border、primary text、secondary text、focus outline、shadow、radius 和 motion duration。
- 菜单样式优先服从应用已有的 semantic token。常见映射包括 dropdown/menu surface、tree/list row hover surface、hover text、danger text/surface、border、font family、shadow 和 radius。
- 菜单和控件圆角保持克制。普通应用基础组件使用 4px 到 8px,除非当前设计系统明确使用其他圆角;浮层菜单窗口的外层圆角可比菜单项或小控件略大 1px 到 2px,优先使用本地 menu/dropdown radius token。
- 菜单宽度要贴合内容。不要让短标签菜单套用过宽的通用 selector 宽度;图标 + 短文本的应用选择菜单优先让面板用
width: max-content/fit-content按最长项推断宽度。此类菜单不要继承 184px、220px 这类通用min-width;用min-width: 0或很小的内容下限,只保留视口保护用的max-width。菜单项本身仍应width: 100%填满已推断出的面板宽度,确保每一行 hover/selected 背景等宽。 - 菜单项默认不要有背景块。只有 hover、focus、active、selected 或 highlighted 状态才显示背景;按钮触发的下拉菜单也遵守这一点。
- 交互行使用稳定尺寸:固定最小高度、明确图标槽位、文本省略、可选快捷键槽位。
- 短右键菜单、短下拉菜单和按钮触发的动作菜单默认不显示、不预留右侧滚动条槽位;只有菜单项确实可能超过视口时才允许内部滚动。紧凑弹层即使需要滚动,也优先隐藏可见 scrollbar,避免右侧出现拖动条或空白槽位;谨慎使用
scrollbar-gutter: stable。 - 页面级、主内容区和长列表的可见滚动条采用轻量标准样式:轨道透明或贴合页面背景,不画外框;滑块窄、圆角胶囊、低对比中性灰,默认不抢视觉,hover 或拖动时才略微加深;不要使用彩色、渐变、阴影、加宽滚动条或常驻背景槽。具体实现读取
references/scrollbar.md。 - 紧凑菜单不常驻显示解释性小字。将说明放在 hover tooltip、
title、aria-describedby或详情面板里;菜单行内只保留主标签、状态/动作词和必要图标。 - 破坏性操作使用语义变体。不要依赖菜单项位置来编码危险样式。
- 动作菜单优先使用
role="menu"和role="menuitem"。根据应用交互模型一致地使用aria-disabled或disabled。 - 带搜索框的菜单使用同一套菜单 surface、radius、hover、focus token;搜索框固定在顶部,下面的结果区才滚动,但不要显示右侧拖动条或预留 scrollbar 区域。语义上可使用
role="dialog"包含searchbox+listbox,不要为了套用普通菜单角色而牺牲搜索输入的可访问性。 - 可能被滚动容器或
overflow裁剪的浮层菜单,使用 portal 或 fixed 定位渲染。 - 除非产品明确接管该区域,否则保留输入框、textarea、可编辑内容和 webview 中的浏览器原生右键菜单。
- 不要给工具型 UI 添加装饰性卡片、夸张阴影、渐变或营销页式视觉处理。
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 11d ago First seen · 43 lines · 92 tokens per session scan A 527280f94ca3
frontend-ui-style-kit is a skill published in the GitHub repository fanfan-de/anybox (57 stars, last pushed 28d ago), licensed MIT. It adds 92 tokens to every session and 1,280 once invoked, about $0.0005 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.
Other skills, from other repositories
chakra-ui-builder
Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…
visual-ralph
Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.
frontend-ui-dark-ts
Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.
reveal-hover-effect
Build cursor-following spotlight reveals that expose a second aligned image through a soft radial mask. Use for hover-to-color, before-and-after, x-ray, material, texture, product-detail, and illustrated hero effects where a desaturated or embossed base image should remain visible while another treatment follows an…
frontend-visual-qa
Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…
better-colors
Helps you build a color system and answer anything about color in your project. You can generate palettes, use semantic tokens, convert between formats, check contrast and more.