mastergo-subdsl-package

mastergo-subdsl-package is a skill for Codex from willnie9/agent-skills. It costs 63 tokens per session (4,276 once invoked), scanned A, original, MIT.

A tool that turns a MasterGo design link, screenshots, and image assets into a traceable handoff package for another system to build from. MasterGo is a design tool; the package keeps the original design structure, text, interactions, and links between screens and assets.

In plain words
What is it for?
Use it to document a design, extract its child components, map screenshots and assets, preserve interaction wording, and create files that a page-generation system can use.
Why use it?
It prevents UI implementation from relying on guessed details or recreated graphics when the original design data or assets are available. Missing inputs are recorded instead of silently filled in.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to document a design, extract its child components, map screenshots and assets, preserve interaction wording, and create files that a page-generation system can use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/willnie9/agent-skills/mastergo-subdsl-package
Install

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.

Any agent
npx skills add willnie9/agent-skills --skill mastergo-subdsl-package
Clone the repo
git clone --depth 1 https://github.com/willnie9/agent-skills

Made for: Codex.

Wrote 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.

agentmods badge for mastergo-subdsl-package

README.md
[![agentmods](https://agentmods.dev/badge/skills/willnie9/agent-skills/mastergo-subdsl-package/github.svg)](https://agentmods.dev/skills/willnie9/agent-skills/mastergo-subdsl-package)
Your own site
<a href="https://agentmods.dev/skills/willnie9/agent-skills/mastergo-subdsl-package"><img src="https://agentmods.dev/badge/skills/willnie9/agent-skills/mastergo-subdsl-package/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.

agentmods 80×15 button for mastergo-subdsl-package

Your own site · 80×15
<a href="https://agentmods.dev/skills/willnie9/agent-skills/mastergo-subdsl-package"><img src="https://agentmods.dev/badge/skills/willnie9/agent-skills/mastergo-subdsl-package.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,276 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.04276
Opus 5.5 $0.00025 $0.01710
Sonnet 5.5 $0.00013 $0.00855
Haiku 4.5 $0.00006 $0.00428

Measured 13d ago against content hash 05d737428a34, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mastergo-subdsl-package 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 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/package-subdsl.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

mastergo-subdsl-package/SKILL.md · 249 lines

How it starts

The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MasterGo 子 DSL 交付包

独立触发与编排

用户要求“整理设计稿 / 子 DSL / 设计文档 / 递归细查”或明确点名本 skill 时独立执行,交付包完成即结束。可以由 module-flow 在多阶段任务中调用,但出包成功不自动启动后端分析或页面开发。

Purpose

将一个 MasterGo 最外层容器整理为可直接喂给页面生成 AI 的交付包:

  • 通过 MasterGo MCP 的 mcp__getDsl 获取真实外层 DSL。
  • 从外层 DSL 中提取真实的最内层/业务子节点,保留原始节点 JSON。
  • 将子节点与用户提供的截图、切图或图片资源建立可追溯映射。
  • 生成语义化图片副本、子 DSL JSON、manifest.json 和总文档。
  • 交互说明必须从 DSL 原文抽取,禁止改写、润色、补写或根据截图猜测。
  • 对只有交互文案、没有独立画面节点的“编辑/修改/查看”等行为,生成行为变体,复用对应基础场景的图片和 DSL。
  • 文档中的画面信息使用结构化“关键元素摘要”,不要把完整画面文字重复堆在文档里;完整原始文字只保存在 DSL 和必要的原文区块中。
  • 输出 assetInventory(矢量图标 / 位图清单 + 图片目录状态),让下游页面生成阶段知道资源在哪、以及哪些资源本包根本没有。
  • 本 Skill 不生成任何图片或图标文件:images/ 只能来自用户提供的截图/切图目录。拿不到就显式声明缺口,禁止自绘近似图形充数。

Required Input

用户通常会提供一个图片目录、一个包含 file/page_id/layer_id 的 MasterGo 外层链接,以及可选的输出目录或业务名称。

三样输入的强制性不同,必须区分对待:

输入 是否必需 缺失时怎么做
MasterGo 外层链接(含 file/page_id/layer_id) 必需 停下来向用户要,不得用别的链接、旧包缓存或记忆里的 DSL 顶替
图片目录(设计稿整页截图 + 切图,png/jpg) 必需,缺失必须显式声明 见下方「无图片目录时的强制声明」
输出目录 / 业务名称 可选 按外层节点名推导,并在文档里写明是推导的
auditDepth(细查深度) 可选,默认 2 仅需局部视觉/样式核对时填写 3 或更大;详见「细查深度」

图片目录的用途是把设计稿画面和 DSL 子节点对应起来,供人工视觉比对与后续页面生成参考。图片只做复制到 <output>/images/<语义名>.png,不改名、不移动、不覆盖用户原目录(见完成后检查 4)。

无图片目录时的强制声明

没有拿到图片目录时,不要静默继续,也不要事后才承认。必须:

  1. 先问用户一次是否能提供截图/切图目录。
  2. 用户明确说不提供、或暂时找不到时,才继续出包,但要在 ai-page-context.md 顶部和 manifest.json 里写清:
    • imagesStatus: "missing"(manifest 顶层字段);
    • 文档里一行声明:「本次未提供截图/切图目录,images/ 为空,全部场景 image 标记为 unmatched,视觉比对不可用。」
  3. 所有 items[].image 一律 unmatched,禁止凭 DSL 结构“推测”一个图片文件名填进去。

本 Skill 不产出任何图片资源

这一点必须写在文档里,避免下游误以为图标已经备好:

  • 本 Skill 只调用 mcp__getDsl 拿 DSL 文本数据,不下载、不导出、不生成任何 png/jpg/svg 文件。
  • images/ 里的文件只可能来自用户提供的图片目录;用户没给就是空的,Skill 不会自己补。
  • DSL 里出现的 image-resource.mastergo.com/... 链接是设计稿内嵌的示例位图(例如样例照片),不是 UI 切图,不得当作图标资源,也不得写进图片映射。
  • 矢量图标在 DSL 里表现为 VECTOR/PATH 节点的 path 数据,属于结构数据,需要页面生成阶段自己解析或走 master-go-to-code 的 svg-paths.json;本 Skill 不负责把它们变成可用图片。

Mandatory Workflow

Read the full file on GitHub · 249 lines

Files

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.

Changes

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.

  1. 13d ago First seen · 249 lines · 63 tokens per session scan A 05d737428a34

Subscribe to this mod's changes

mastergo-subdsl-package is a skill published in the GitHub repository willnie9/agent-skills (2 stars, last pushed 14d ago), licensed MIT. It adds 63 tokens to every session and 4,276 once invoked, about $0.0003 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-11-21.

Related

mastergo-subdsl-package compared with skills from other repositories

mastergo-subdsl-package next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mastergo-subdsl-packagewillnie9/agent-skillsSkill214d agoMITA63Codex
ui-design-sourceOrkas-AI/OrkasSkill7.7ktodayMITA3Claude Code, Codex
ui-design-contractOrkas-AI/OrkasSkill7.7ktodayMITA3Claude Code, Codex
ui-design-systemOrkas-AI/OrkasSkill7.7ktodayMITA3Claude Code, Codex
ui-reference-packsOrkas-AI/OrkasSkill7.7ktodayMITA4Claude Code, Codex
skin-creatornetease-youdao/LobsterAISkill6.2ktodayMITA52Claude Code, Codex
ui-controls-accessibilityOrkas-AI/OrkasSkill7.7ktodayMITA4Claude Code, Codex