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.
git 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/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/rules/zleap-ai/zleap-agent/frontend"><img src="https://agentmods.dev/badge/rules/zleap-ai/zleap-agent/frontend.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00000 | $0.01249 |
| Opus 5.5 | $0.00000 | $0.00500 |
| Sonnet 5.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 1mo 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.
- 1mo 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 (219 stars, last pushed 2mo 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
backend-rules
A Cursor rule named backend-rules covering backend development, project structure, technology choices, runtime environment, and main process. Cursor is a coding editor with rules that guide how an agent works in a project.
spec-for-ut
Unit testing is essential to ensure the reliability and stability of code, especially for React components and functions. Adhering to best practices and ensuring high test coverage is critical to maintaining a robust codebase.
instruct-ut
A rule for turning a user's goal into a to-do list and carrying out the tasks in order. It describes a step-by-step way to organize requested work.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.