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.
npx agentmods add rules/zleap-ai/zleap-agent/frontendgit clone --depth 1 https://github.com/Zleap-AI/Zleap-AgentWrote 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/rules/zleap-ai/zleap-agent/frontend)<a href="https://agentmods.dev/rules/zleap-ai/zleap-agent/frontend"><img src="https://agentmods.dev/badge/rules/zleap-ai/zleap-agent/frontend.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00000 | $0.01249 |
| Opus 5 | $0.00000 | $0.00624 |
| Sonnet 5 | $0.00000 | $0.00250 |
| Haiku 4.5 | $0.00000 | $0.00125 |
Grade A, and why
frontend 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 5d 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 — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Zleap Web 前端规范
目标:生产级、可开源、对标 codex 质感的中性克制 UI,铜金/琥珀为唯一强调色。
设计 token(单一真源在 app/globals.css)
- 颜色一律走语义 token,禁止 className 内写
#hex/rgb()/oklch()/ Tailwind 调色板色阶(emerald-500、sky-50、text-white…)。- 中性骨架:
bg-background、bg-card、bg-muted、text-foreground、text-muted-foreground、border-border。 - 强调色:仅关键交互用
primary(发送、主操作、active)。 - 状态色:
success/warning/info/danger,软底用bg-success/10 text-success等(自带 dark 适配)。
- 中性骨架:
- 间距 / 圆角 / 阴影 / 字号一律走 scale,禁止任意值
[Npx]/text-[Npx]/ inlinestyle={{ fontSize }}。- 字号:
text-2xs(11px) /text-xs/text-sm/text-base… - 动效:className 时长走
duration-[var(--duration-base)](fast / slow 同理换 token 名)+ease-out/ease-spring(后两者经@theme已映射到 token,等同--ease-*);禁止 Tailwind 原生步进时长(如duration-300)与任意自定义缓动(ad-hoc cubic-bezier 的方括号写法)。framer-motion 不能读 CSS 变量,统一从@/lib/motion(EASE_OUT/EASE_SPRING/DURATION/SPRING_PANEL/SPRING_SNAPPY)取值,禁止内联stiffness/duration字面量。 - hover 抬升统一
hover:-translate-y-px(克制,1px)。 - 以上由
scripts/check-web-design-tokens.mjs在 CI 强制(pnpm check:design);components/ui/*生成的 shadcn 原语不受动效规则约束。
- 字号:
- 例外(数据驱动):用户可配置的 space/avatar accent 色经 inline style 注入是允许的;品牌 wordmark canvas 渲染、文档纸面预览(PPTX/HTML)可保留固定色。
- 别名收敛:
surface→card、surface-2→muted、ink→foreground、border-strong→border为旧别名(与规范 token 1:1 映射),新代码一律用右侧规范名。
组件库
- 交互元素必须用
@/components/ui/*(Button、IconButton、Input、Textarea、Select、Dialog…),禁止裸写<button>/<input>/<textarea>。 - 按钮走
Button的variant/size体系,禁止自建按钮样式体系。- 图标按钮一律用
IconButton(强制aria-label,统一 focus/hover/disabled);尺寸icon-xs(24)/icon-sm(28)/icon(32)。 - 例外:内容复合的可点元素(列表行、文件树节点、分段切换、富 chip)可保留
<button>,但必须自带focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50(行内可加ring-inset)。
- 图标按钮一律用
- 弹窗页脚统一
ManageDialog+ManageDialogFooterActions(ghost 取消 + primary 确认,busy自带 spinner);表单字段统一ManageField(label/description/error/required);行内状态徽标统一ManageStatusBadge(size="sm"用于密集列表行)。 - 空态 / 加载态 / 卡片 / 列表行用
@/components/shared与@/components/ui的统一原语,禁止每处重写。 - 对话框表单统一用
ManageDialog+useEntityFormDialog,不再复制 reset/submit/toast 样板。 - 数据请求走
lib/services/*,组件内不直接fetch/拼接 API 逻辑。
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.
- 5d ago First seen · 49 lines · 0 tokens per session scan A 4200cbdf9519
frontend is a cursor rule published in the GitHub repository Zleap-AI/Zleap-Agent (218 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,249 tokens. 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 cursor rules, from other repositories
workflow
BDD-style workflow, UI screenshots in the PR, HTTP OpenAPI and config schema sync before lint, final checks.
code-style
Formatting, lint, comments language.
shadcn-tailwind-guide
本规范定义了使用 shadcn/ui 和 Tailwind CSS 开发新组件的标准流程和最佳实践。.
backend-rules
Cursor rule "backend-rules" from jihe520/MathModelAgent, covering 后端开发规则, 目录结构, 技术栈, 运行环境 and 主要流程.
ddd-design-guide
Apply when designing or refactoring domain models, services, stores, or discussing DDD (Domain-Driven Design) architecture. Also apply when working on business logic layers, API modules, or planning domain boundaries and migrations.
instruct-ut
基于用户的目标,生产 todo list 并按顺序执行.