agent-frontend-standard SKILL.md skillA
agent-frontend-standard from martin1847/evolab is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add martin1847/evolab/agent-frontend-standard@v1.0.1Pins v1.0.1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- martin1847/evolab
- Path
skills/agent-frontend-standard/SKILL.md- Versions recorded
- 5
- Latest version
- v1.0.1, committed Oct 29, 2026
- First version recorded
- Jul 29, 2026
- Size
- 5,362 bytes
- Repository stars
- 7
- License
- MIT
前端工程规范。适用于编写或评审前端/UI 代码(React、React Native/RN、Next.js、组件、样式、状态、测试)、建立前端工程门禁或将设计系统对接 AI。不用于仅从新用户视角探索产品卡点;该场景使用 frontend-explorer。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Agent Frontend — 前端工程手册
> 姊妹篇:后端归 `agent-backend-standard`(hub);Git 归 `git-workflow-standard`;护栏供给回路
> canonical = `cto-orchestration` 的 shock-in-the-loop 篇(电在回路/能电不文)。
## 1. 设计系统即 agent 契约
- **受限组件词表**:业务代码只准从少量 vetted DS primitives 组合,禁自由 CSS/裸 HTML 拼装。
机制:"LLM 不擅长一致发明,擅长查找"。
- **薄封装收窄 prop 面**:禁 app 直接 import 厂商组件库;wrapper 禁 `{...rest}` 透传——透传=把
厂商全部 API 面暴露给 agent 猜。
- **token 语义标注是性价比最高的一招**:token 定义处写 role + **反用法**("仅 destructive 操作;
禁用于品牌强调")。50 个设计系统审计只有 1 家写了 do-not-use——写了 agent 就稳定选对。
- **三条 lint 硬门(=error,warn 等于没有)**:
1) tailwind `no-arbitrary-value`——agent 不知道你的 token 就会吐 hex/px,任意值=样式漂移主通道;
2) `no-restricted-imports` 禁 legacy/厂商直连路径——agent 分不清 `ui/` 和 `legacy/`;
3) 非法 prop 组合用 discriminated union 灭在类型层——"TS 编译器就是设计系统评审员"。
- **机器可查询 > 散文描述**:组件 API 给结构化形态(manifest/story/类型),使用规则才写 Markdown。
格式即成本:JSON 组件元数据比散文省 ~80% token(Indeed 1056-prompt 实测,二手)。
## 2. 类型端到端契约
- **契约在 agent 编辑范围之外**:后端契约生成 client,生成物只读——"编不出不存在的 endpoint"。
配对律:契约改动必须触发再生成(pairing 门),生成物手改必须被拦(starter hook ①②已落)。
- **typecheck 是 agent 主反馈环**:`tsc --noEmit` 的 file/line/col 五元组比测试堆栈更适合收敛;
每轮都跑(tsgo 已把成本压到可每轮)。
…Read the whole file at its exact version.
How to install
mdr add martin1847/evolab/agent-frontend-standard@sha256:2a549b1192801681The line at the top of this page pins the label v1.0.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_t2qmbyxmospd356n)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Jul 29, 2026 and Oct 29, 2026, about one every 23 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.0.1 latest | 2026-10-29 | 8b44fa3 | 5,362 B | A | view · diff |
| v1.0.0 | 2026-10-29 | 7345c25 | 5,362 B | A | view · diff |
| v1.0.0 | 2026-10-29 | d3192ba | 5,855 B | A | view · diff |
| v1.0.0 | 2026-08-06 | af59db3 | 6,186 B | A | view · diff |
| v1.0.0 | 2026-07-29 | 9ce9c17 | 6,192 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5362 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
martin1847/evolab · 7 stars · license MIT · pushed 2026-11-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_t2qmbyxmospd356n GET https://markdownregistry.com/api/v1/resolve?ref=martin1847/evolab/agent-frontend-standard GET https://markdownregistry.com/api/v1/blob/2a549b11928016810edb39398ddd38dd8f15950d8cc33a36fbffc82c8a99c2f2
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.