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/anybox-frontend-guidelines/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/anybox-frontend-guidelines)<a href="https://agentmods.dev/skills/fanfan-de/anybox/anybox-frontend-guidelines"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/anybox-frontend-guidelines/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/anybox-frontend-guidelines"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/anybox-frontend-guidelines.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.00097 | $0.01337 |
| Opus 5 | $0.00048 | $0.00668 |
| Sonnet 5 | $0.00019 | $0.00267 |
| Haiku 4.5 | $0.00010 | $0.00134 |
Grade A, and why
anybox-frontend-guidelines 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 12d 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 — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Anybox 前端规范
核心流程
- 修改前先阅读目标 UI 代码。优先沿用已有组件结构、class 命名、CSS 归属和 token 用法,不要先发明新抽象。
- 按组件的交互职责、状态模型和 ARIA role 判定 semantic token 归属,再到 schema v2 manifest 中找到对应 component/product token 组并列出完整状态组合。复用现有 class 只代表复用结构,不会改变组件的 semantic token 归属。
- 只读取当前任务需要的 reference:
- 产品整体风格:
references/principles.md - token、CSS 归属、主题规则:
references/tokens-and-css.md - shell、pane、sidebar、surface:
references/layout-and-surfaces.md - 按钮、菜单、控件、列表行:
references/controls-and-menus.md - 槽位式卡片列表交互:
references/slot-card-list.md - ThreadView、trace、branch、composer:
references/thread-view.md - 设置、插件、MCP、global skills 页面:
references/settings-and-management.md - UI 修改完成前检查:
references/implementation-checklist.md
- 产品整体风格:
- 以本地项目文件和可执行校验为事实来源。常用入口:
C:/Projects/Anybox/packages/desktop/src/shared/appearance-token-manifest.jsonC:/Projects/Anybox/packages/desktop/scripts/generate-appearance-tokens.mjsC:/Projects/Anybox/packages/desktop/src/renderer/src/styles/tokens.cssC:/Projects/Anybox/packages/desktop/src/renderer/src/styles/primitives.cssC:/Projects/Anybox/packages/desktop/src/renderer/src/styles/shell.cssC:/Projects/Anybox/packages/desktop/src/renderer/src/styles/sidebar.cssC:/Projects/Anybox/packages/desktop/src/renderer/src/styles/workbench.cssC:/Projects/Anybox/packages/desktop/src/renderer/src/styles/thread.cssC:/Projects/Anybox/packages/desktop/src/renderer/src/styles/composer.cssC:/Projects/Anybox/packages/desktop/src/renderer/src/styles/settings.cssC:/Projects/Anybox/packages/desktop/src/renderer/src/styles/responsive.css
- 保持改动范围收敛。优先改 token 或局部语义 class,不要追加文件末尾的大范围覆盖规则。新增或扩充 semantic token 组时,范围必须包含同语义消费者盘点:迁移所有命中的组件,或明确记录暂不迁移的例外,不能只修改一个示例组件后宣称该 token 组已接入。
- 最终回复前检查亮色/暗色主题、窄窗口、键盘焦点、溢出和相关测试。
撰写 UI 规范的元规则
新增或改写本 skill 的 UI 组件/交互 reference 时,必须让规范自包含这些主题与 token 约束,不要只依赖通用 token 文档:
- 明确 light 和 dark 双主题都必须支持。
- 明确组件 CSS 只消费不带
-light/-dark后缀的运行时 token。 - 明确每类组件及其子部件分别归属哪个 semantic token 组,并要求完整覆盖该组适用的 default、hover、focus、active、selected、disabled、invalid 等状态;不能借用其他组件组或基础色 token 代替已有的本组件语义。
- 明确复用 shared/context/menu class 时只复用布局、尺寸、排版和行为;颜色状态仍必须服从当前组件的 semantic token 组。组合组件按子部件分别归属,例如 picker trigger 使用按钮 token、搜索输入使用 field token、展开面板和选项使用 dropdown token。
- 明确 semantic token 的命名、fallback 与 light/dark 映射规则。
- 明确缺少合适 token 时,先在 schema v2 manifest 补充成对 light/dark semantic token,再运行生成器;不要在
tokens.css创建第二份颜色定义。 - 明确新增或扩充 semantic token 组后必须全仓盘点对应交互角色、ARIA role、组件 class 和旧 token 消费者,并增加正向消费断言与禁止跨组回退的负向断言。
- 明确公开主题值只允许 DTCG
literal或 mode-tokenalias;内部 blend 仅用于无法由 literal/alias 表达的受控派生,并禁止组件直接消费--mix-*。 - 明确 default、hover、focus、active、disabled、selected/current、error/invalid 等状态都要在明暗主题下可读。
- 明确禁止硬编码颜色和硬编码 fallback,例如
#fff、#000、固定灰色、固定品牌色或rgba(...)。 - 明确 focus 使用组件自身的背景、边框、文字、指示器等 token 化状态表达,不使用 outline 或 inset ring。
What ships with it
9 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.
- agents/openai.yaml 242 B
- references/controls-and-menus.md 18 KB
- references/implementation-checklist.md 3.3 KB
- references/layout-and-surfaces.md 1.9 KB
- references/principles.md 2.5 KB
- references/settings-and-management.md 4.7 KB
- references/slot-card-list.md 5.3 KB
- references/thread-view.md 3.1 KB
- references/tokens-and-css.md 7.9 KB
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.
- 12d ago First seen · 62 lines · 97 tokens per session scan A 65c5cfa8dd87
anybox-frontend-guidelines is a skill published in the GitHub repository fanfan-de/anybox (57 stars, last pushed 29d ago), licensed MIT. It adds 97 tokens to every session and 1,337 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 $ultragoal 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…
prototype-web
A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.