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 skills add willnie9/agent-skills --skill mastergo-subdsl-packagegit clone --depth 1 https://github.com/willnie9/agent-skillsWrote 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/willnie9/agent-skills/mastergo-subdsl-package)<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.
<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>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.00063 | $0.04276 |
| Opus 5.5 | $0.00025 | $0.01710 |
| Sonnet 5.5 | $0.00013 | $0.00855 |
| Haiku 4.5 | $0.00006 | $0.00428 |
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.
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 — 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)。
无图片目录时的强制声明
没有拿到图片目录时,不要静默继续,也不要事后才承认。必须:
- 先问用户一次是否能提供截图/切图目录。
- 用户明确说不提供、或暂时找不到时,才继续出包,但要在
ai-page-context.md顶部和manifest.json里写清:imagesStatus: "missing"(manifest 顶层字段);- 文档里一行声明:「本次未提供截图/切图目录,
images/为空,全部场景image标记为unmatched,视觉比对不可用。」
- 所有
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
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.
- 13d ago First seen · 249 lines · 63 tokens per session scan A 05d737428a34
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.
mastergo-subdsl-package compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mastergo-subdsl-packagewillnie9/agent-skills | Skill | 2 | 14d ago | MIT | A | 63 | Codex |
| ui-design-sourceOrkas-AI/Orkas | Skill | 7.7k | today | MIT | A | 3 | Claude Code, Codex |
| ui-design-contractOrkas-AI/Orkas | Skill | 7.7k | today | MIT | A | 3 | Claude Code, Codex |
| ui-design-systemOrkas-AI/Orkas | Skill | 7.7k | today | MIT | A | 3 | Claude Code, Codex |
| ui-reference-packsOrkas-AI/Orkas | Skill | 7.7k | today | MIT | A | 4 | Claude Code, Codex |
| skin-creatornetease-youdao/LobsterAI | Skill | 6.2k | today | MIT | A | 52 | Claude Code, Codex |
| ui-controls-accessibilityOrkas-AI/Orkas | Skill | 7.7k | today | MIT | A | 4 | Claude Code, Codex |