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 skills/zhanyoulin456/seevin-claude-plugins/layerdata-to-codenpx skills add zhanyoulin456/seevin-claude-plugins --skill layerdata-to-codegit clone --depth 1 https://github.com/zhanyoulin456/seevin-claude-pluginsWrote 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/zhanyoulin456/seevin-claude-plugins/layerdata-to-code)<a href="https://agentmods.dev/skills/zhanyoulin456/seevin-claude-plugins/layerdata-to-code"><img src="https://agentmods.dev/badge/skills/zhanyoulin456/seevin-claude-plugins/layerdata-to-code.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.00032 | $0.01301 |
| Opus 5 | $0.00016 | $0.00651 |
| Sonnet 5 | $0.00006 | $0.00260 |
| Haiku 4.5 | $0.00003 | $0.00130 |
Grade A, and why
LayerData 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 4d 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 — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LayerData to Code
将 UI 设计工具导出的 layerDatas 图层数据转换为 HTML/CSS 页面代码。按照下面的步骤进行
- 从项目的
DESIGN.md文件中获取设计系统变量(颜色、字体、间距等)和规范 - 分析 layerDatas 数据结构
- 生成 HTML 结构和 CSS 样式
- 确保符合当前项目的设计系统规范
- 添加到用户指定的位置
Requirements
- 需要从项目的
DESIGN.md项目规则中获取设计系统变量(颜色、字体、间距等),是否使用 tailwind css,scss 等 - 如果当前项目的
DESIGN.md不存在,或者没有提到设计系统,则暂停,并提示用户添加设计系统信息到DESIGN.md文件中 - 严格遵循
DESIGN.md中的代码规范
Quick Start
1. 获取项目的设计系统
- 从项目的
DESIGN.md文件中获取设计系统,(颜色、间距等变量)和规范 - 如果当前项目的
DESIGN.md不存在,或者没有提到设计系统,以及不完整的情况下则取消操作,并提示用户添加设计系统信息到DESIGN.md中 - 严格遵循
DESIGN.md中的代码规范
需要从 DESIGN.md 文件中获取的设计系统变量包括:
- 颜色变量,包括主题色,文本色,背景色,边框色等 css 变量
- 是否使用 tailwind css,scss,less 等 css 框架
- 使用的组件库
2. 分析数据结构
解析并理解 layerDatas 的结构化内容。
数据结构
layerData 示例
{
"type": "shape",
"name": "矩形 788",
"x": 1362,
"y": 102,
"width": 100,
"height": 64,
"css": ["width: 100px;", "height: 64px;", "background: #fff;"],
"layerIndex": 76
}
字段说明
| 字段 | 说明 |
|---|---|
type |
图层类型 (group/shape/text/Ellipse/Line) |
content |
图层内容 |
name |
图层名称,如果 content 为空,则使用 name 字段 |
x, y |
绝对定位坐标 |
width, height |
元素尺寸 |
css |
原始 CSS 样式数组 |
layerIndex |
图层索引 |
布局转换原理
原始数据: 基于绝对定位 (x, y, width, height)
目标代码: 使用标准 CSS 布局 (margin, padding, flex, grid 等)
转换时需要:
- 识别图层间的父子/兄弟关系
- 选择合适的布局方案 (flex/grid/block)
- 将原始的 x, y, width, height 绝对定位转换为 css 中的相对定位 (使用 margin, padding, flex, grid 等布局样式),禁止使用 position: absolute/fixed
- 从 layer.css 中提取原始 css 样式,并应用到生成的代码中
2. 生成页面代码
根据草图和结构化数据生成 HTML/CSS 代码。
代码生成规则
- 生成 HTML 结构
- 基于图层名称创建元素标签
- 保持层级关系 (父元素包含子元素)
- 生成 CSS 样式
- 保留原始 CSS 样式
- 转换绝对定位为相对定位
- 应用 margin, padding, flex, grid,block,盒子模型等布局特性
- 默认值不声明,比如
font-weight: 400;,这是默认值,不需要声明即可生效
- 默认填充 layerData 的 content 字段,如果没有 content 则填充 name 字段
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 4d ago First seen · 115 lines · 32 tokens per session scan A 631ff6aab603
LayerData to Code is a skill published in the GitHub repository zhanyoulin456/seevin-claude-plugins (4 stars, last pushed 7mo ago), licensed MIT. It adds 32 tokens to every session and 1,301 once invoked, about $0.0002 per session on Opus 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
shadcn-svelte
Pre-built shadcn-svelte components for json-render Svelte apps. Use when working with @json-render/shadcn-svelte, adding standard UI components to a Svelte catalog, or building Svelte web UIs with shadcn-svelte + Tailwind CSS components.
v3-create-crud
创建增删改查(CRUD)页面,基于 Element Plus 组件库,包含表格、搜索、分页、新增/编辑弹窗、删除确认等功能。当用户提到以下任何场景时都应触发:创建管理页面、创建列表页、创建表格页。即使用户没有明确说 CRUD,只要意图是创建带表格和表单操作的后台页面就应该使用此 Skill。使用时需提供模块名称和字段信息。.
v3-use-composables
项目内置组合式函数使用教程,涵盖设备检测、异步下拉、全屏加载、分页、路由监听、主题切换、动态标题、水印等组合式函数。当用户提到以下任何场景时都应触发:使用组合式函数、调用 Composables、判断设备类型、异步加载下拉选项、全屏 Loading、分页逻辑、监听路由变化、切换主题、设置页面标题、添加水印。即使用户没有明确说 Composables,只要意图是使用项目内置的组合式函数就应该使用此 Skill。.
markstream-nuxt
Integrate markstream-vue into a Nuxt 3 or Nuxt 4 app. Use when Codex needs client-only boundaries, SSR-safe setup, browser-only peer gating, worker-aware initialization, renderer mode selection, or a safe MarkdownRender integration inside pages, components, or Nuxt plugins.
markstream-vue2-cli
Integrate markstream-vue2 into a Vue 2 Vue CLI or Webpack 4 app. Use when Codex needs Webpack 4-friendly setup, CDN worker fallbacks for Mermaid or KaTeX, dist/index.css imports, Vue 2 composition-api shims, or code block choices limited to stream-diffs or plain .
markstream-svelte
Integrate the beta markstream-svelte package in Svelte 5 or SvelteKit apps. Use when Codex needs Svelte 5 runes, CSS and optional peers, smooth streaming, worker setup, renderer-local or scoped custom components, or SSR-safe boundaries. Svelte 4 is unsupported.