Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/anoopsg/agent_rulesnpx agentmods add skills/anoopsg/agent_rules/design-to-codeWrote 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/anoopsg/agent_rules/design-to-code)<a href="https://agentmods.dev/skills/anoopsg/agent_rules/design-to-code"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/design-to-code/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/anoopsg/agent_rules/design-to-code"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/design-to-code.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.00022 | $0.02389 |
| Opus 5.5 | $0.00009 | $0.00956 |
| Sonnet 5.5 | $0.00004 | $0.00478 |
| Haiku 4.5 | $0.00002 | $0.00239 |
Grade A, and why
design-to-code 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 — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Design-to-Code Skill
1. Asset Management
1.1 Organization
All assets must be placed in the packages/app_ui/assets/ directory following this structure:
- Icons:
assets/icons/(SVG) - Images:
assets/images/(SVG illustrations and PNG, JPEG, WebP — e.g., photos, hero banners) - Animations:
assets/animations/ - No Feature Folders: Do not create feature-specific subfolders (e.g.,
login/,auth/) within these asset directories. Keep the structure flat by asset type to avoid issues if an asset is later reused in another feature.
1.2 Verification & Generation
- Verify: Before adding an asset, check
packages/app_ui/assets/to see if it already exists. - Add: Place the new asset in the appropriate folder.
- Generate: Run
melos run generateto update theAppAssetsclass. - Usage: Use
AppAssetsto reference the asset in code:AppAssets.icons.google.svg();
1.3 Handling Missing or Unplaced Assets
When extracting from Figma via the MCP server, assets might not be marked for export or could be missing entirely:
- Detection: If the MCP server cannot locate or export an expected visual asset.
- Placeholders: Use a standardized placeholder widget to maintain layout integrity. Always include a
TODOcomment for traceability:const SizedBox(width: 120, height: 120); // TODO(design): Replace with exported asset. @Source: <Page> > <Frame> > <Element> - Notification: Explicitly notify the user that the asset was missing from the exportable Figma assets and request they mark it for export or provide it manually. NEVER use the Figma MCP API asset URL (
https://www.figma.com/api/mcp/asset/...) directly in the code (e.g. viaImage.network).
1.4 Asset Usage
- No
package:Argument: Generated asset widgets already resolve toapp_ui. Never passpackage:or define a package constant. - Tint Icons: Use
colorFilter: ColorFilter.mode(context.$.colors.x, BlendMode.srcIn); never edit the SVG or hardcode colors. - Material Icons: Use
Icon(Icons.x)for stock Material icons instead of exporting SVGs.
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 Changed · +7 lines d3e707da8d6e
- 12d ago Changed dea1bc87c9ff
- 2mo ago First seen · 129 lines · 22 tokens per session scan A 8abe7a9fe700
design-to-code is a skill published in the GitHub repository anoopsg/agent_rules (2 stars, last pushed 5d ago), licensed MIT. It adds 22 tokens to every session and 2,389 once invoked, about $0.0001 per session on Opus 5.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-31.
Other skills, from other repositories
display-glasses-with-jetpack-compose-glimmer
Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. Covers Glimmer design principles, workflows, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer.…
glance-canonical-layouts
Use this skill to create home screen widgets using Jetpack Glance Canonical Layouts from the Android Platform Samples project, or when asked to implement standard widget layout patterns (including Check List, Image Grid, Snap Scrolling, and Standard Toolbar).
expo-design-system
Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow, motion), reusable component structure with variant/size/state prop conventions, and rules for when to extract a repeated view into a shared component. Use when creating or organizing…
flutter-build-responsive-layout
Use LayoutBuilder, MediaQuery, or Expanded/Flexible to create a layout that adapts to different screen sizes. Use when you need the UI to look good on both mobile and tablet/desktop form factors.
omh-apple-design
This is an OMH apple-design workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
axiom-audit-liquid-glass
Use when the user mentions Liquid Glass review, iOS 26 UI updates, toolbar improvements, or visual effect migration.