Agent Skills › AjayIrkal23/agentic-mercy-10x › design-system-compliance

design-system-compliance

GitHub

检查渲染UI是否符合设计系统规范,通过读取计算样式对比设计Token,发现硬编码颜色、不可用控件及动画问题。

skills/design-system-compliance/SKILL.md AjayIrkal23/agentic-mercy-10x

Trigger Scenarios

构建或重构组件后验证UI合规性 需要设计审查时 UI显示异常但原因不明时

Install

npx skills add AjayIrkal23/agentic-mercy-10x --skill design-system-compliance -g -y
More Options

Use without installing

npx skills use AjayIrkal23/agentic-mercy-10x@design-system-compliance

指定 Agent (Claude Code)

npx skills add AjayIrkal23/agentic-mercy-10x --skill design-system-compliance -a claude-code -g -y

安装 repo 全部 skill

npx skills add AjayIrkal23/agentic-mercy-10x --all -g -y

预览 repo 内 skill

npx skills add AjayIrkal23/agentic-mercy-10x --list

SKILL.md

Frontmatter
{
    "name": "design-system-compliance",
    "license": "Apache-2.0",
    "metadata": {
        "guard": "Never run reticle init \/ start dev servers \/ open browsers unprompted; attach to the user's running app.",
        "version": "3.3.0",
        "category": "frontend",
        "homepage": "https:\/\/www.reticle.sh",
        "surfaces": [
            "frontend"
        ],
        "triggers": {
            "paths": [
                "**\/*.{tsx,jsx,vue,svelte,astro,css,scss}"
            ],
            "intents": [
                "REVIEW",
                "VERIFY"
            ],
            "keywords": [
                "design tokens compliance",
                "design system compliance",
                "computed styles",
                "hardcoded hex",
                "off-palette"
            ]
        },
        "repository": "https:\/\/github.com\/reticlehq\/reticle",
        "requires_mcp": "reticle"
    },
    "description": "Check that the UI you actually rendered uses the design system, by reading computed styles in the running app against the project's design tokens. Catches hardcoded hex colors, off-palette backgrounds, invisible or unusable controls, and animations that never ran. Use after building or restyling a component, when a design review is wanted, when a UI looks slightly off but nobody can say why, or when a design system exists and nothing checks whether the code follows it.",
    "when_to_use": "After building or restyling a component: check computed styles in the running app against the design tokens (hardcoded hex, off-palette colors). Needs the reticle MCP connected."
}

Local guard (vendor patch, ~/.claude): attach only to the app the user already runs. Never run reticle init/setup, never start a dev server, never open a browser, never call reticle_feedback unprompted.

Does the rendered UI actually use the design system?

Reading the source tells you what the component asks for. It cannot tell you what the browser resolved: a token overridden three layers up, a hardcoded #3b82f6 that happens to look close, a dark-theme scope that never applied. That answer only exists in the running page.

Reticle reads computed styles in the live app and compares them against the project's tokens. Not installed? Stop and tell the user in one line: setup is theirs, never run reticle init yourself. Their guide: the install-and-verify skill.

The check

reticle_snapshot({ sessionId, mode: "interactive" })
reticle_inspect({ sessionId, ref })

inspect returns a theme report per element:

Field What it tells you
offTheme the headline. True when a set, opaque color matches no token in the palette: a violation worth fixing
colorTokens / backgroundTokens every token whose resolved value is this color. Empty means off-palette
colorToken / backgroundToken the unambiguous match, or null when several tokens share the color. null here is an abstention, not a violation: read the plural field
tokenCount how many tokens resolved under the active theme. 0 means the app declares no palette, and offTheme is never asserted: report that rather than a clean bill of health
themeScope the theme active at capture (e.g. .dark), so two inspects taken minutes apart are comparable at all

Read tokenCount first. Zero tokens means there is nothing to comply with, and every "pass" below it is vacuous.

Beyond color: is the control actually usable?

The same call answers the questions a screenshot cannot:

  • occluded: covered by an overlay. It renders, and no user can click it.
  • box: 0×0 is present-but-invisible, the most common "it's there, I can see it in the DOM" bug.
  • styles.opacity / styles.cursor: the difference between disabled-looking and disabled.
  • source: { file, line }: where to go and fix it.

A design review that only compares colors passes a button nobody can press.

Animations

reticle_run({ tool: "reticle_animations", args: { sessionId } })

Returns running and recently completed animations with their targets and timing. Two things worth checking after any motion work: an animation you added that never appears here did not run, and one whose duration does not match the token is off-spec. Both look identical in a screenshot.

Report violations as locations, not opinions

For each element that failed, give the file:line from inspect and the specific fact: "background #3b82f6 matches no token; the palette has --color-primary at #2563eb". A design-review comment without a location is a task someone else has to redo.

What this is not

This checks compliance with the tokens the project declares. It is not an opinion about whether the design is good, and it is not an accessibility audit. Contrast ratios, focus order and screen-reader semantics are a different job, and claiming them here would be a false green of exactly the kind this repo exists to prevent.


Everything else, one page at a time: curl https://docs.reticle.sh/llms.txt. Design token check missing something you needed? reticle_feedback with kind: "gap".

Version History

  • 2315578 Current 2026-10-18 19:20

Same Skill Collection

skills/agentation-react/SKILL.md
skills/baseline-ui/SKILL.md
skills/brand/SKILL.md
skills/context7-mcp/SKILL.md
skills/create-design-md/SKILL.md
skills/debug-broken-ui/SKILL.md
skills/design-taste-frontend/SKILL.md
skills/design/SKILL.md
skills/docker-compose/SKILL.md
skills/ensure-repo-docs/SKILL.md
skills/expo-react-native/SKILL.md
skills/false-green-tests/SKILL.md
skills/fastify-patterns/SKILL.md
skills/fixing-accessibility/SKILL.md
skills/fixing-metadata/SKILL.md
skills/fixing-motion-performance/SKILL.md
skills/grill-with-docs/SKILL.md
skills/higgsfield-brandkit/SKILL.md
skills/higgsfield-video-explainer/SKILL.md
skills/higgsfield-youtube-thumbnail/SKILL.md
skills/idea-refine/SKILL.md
skills/img2threejs/SKILL.md
skills/improve-ui/SKILL.md
skills/invoke-audit/SKILL.md
skills/invoke-clean/SKILL.md
skills/invoke-debug/SKILL.md
skills/invoke-design/SKILL.md
skills/invoke-docs/SKILL.md
skills/invoke-impl/SKILL.md
skills/invoke-plan/SKILL.md
skills/invoke-refactor/SKILL.md
skills/invoke-review/SKILL.md
skills/invoke-security/SKILL.md
skills/invoke-session/SKILL.md
skills/invoke-spec/SKILL.md
skills/invoke-status/SKILL.md
skills/invoke-test/SKILL.md
skills/invoke-update/SKILL.md
skills/invoke-verify/SKILL.md
skills/invoke/SKILL.md
skills/kokonutui/SKILL.md
skills/mmx-cli/h3-video/SKILL.md
skills/modern-web-guidance/SKILL.md
skills/mongoose-patterns/SKILL.md
skills/no-ai-slop/SKILL.md
skills/slides/SKILL.md
skills/test-error-states/SKILL.md
skills/threejs-r3f/SKILL.md
skills/to-issues/SKILL.md

Metadata

Files
0
Version
2315578
Hash
787a9ae0
Indexed
2026-10-18 19:20

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 11:12
浙ICP备14020137号-1