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 master-go-to-codegit 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/master-go-to-code)<a href="https://agentmods.dev/skills/willnie9/agent-skills/master-go-to-code"><img src="https://agentmods.dev/badge/skills/willnie9/agent-skills/master-go-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/willnie9/agent-skills/master-go-to-code"><img src="https://agentmods.dev/badge/skills/willnie9/agent-skills/master-go-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.00105 | $0.05801 |
| Opus 5.5 | $0.00042 | $0.02320 |
| Sonnet 5.5 | $0.00021 | $0.01160 |
| Haiku 4.5 | $0.00011 | $0.00580 |
Grade A, and why
master-go-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 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 — 386 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Master-Go-to-Code · 视觉还原流水线
Auto Mode(无确认模式)
触发:用户输入含任一关键词 → 全跑 / 一气呵成 / auto / yolo / 别问 / 自动,或被 module-flow 委托(auto 透传)。
行为:
- 跳过所有"报告 + 等用户继续"检查点(Step 1 报告下载数 / Step 2 报告 dom-tree 大小)
compare-tokens.mjs失败不阻断(verdict=fail 也继续,落 issues 给上层处理)
保留:
- Step 2
validate-dom-tree.mjs失败必停(schema 错下游全废) - 铁律 1-5 不变
决策
只给 MasterGo 链接时先明确目标。仅出设计包或递归检查节点,转给 mastergo-subdsl-package 后结束;设计包已有时从 manifest 选择主场景链接,再按本流水线生成实现产物。当前脚本仍从链接获取数据,不支持直接把设计包当成 dom-tree。
本 skill 专做"设计稿 → dom-tree.json + svg-paths.json + 图片资源"。永远委托给 module-flow / frontend-page-design 完成 Vue 组装(不在本 skill 直出)。
用户给 MasterGo URL
│
├─ 含 auto 关键词 ──→ 直接进 Step 1,跳所有检查点
└─ 默认 ──→ Step 0 自检后进 Step 1,Step 1-2 完后给报告等用户继续
工作流(3 个 Step + 1 个委托点 + 1 个回收验证)
Step 1 拉资源 + 切 chunk → Step 2 分块精修 + 合并 + 校验 → Step 3 渲染预览 + 自检 → Step 4 委托 → Step 5 token diff 回收。
Step 0 · Reconnaissance(自检)
启动前必须通过:
# 1. MCP 可用性
test -n "$(grep MASTERGO_TOKEN .env)" # Token 存在(在项目根 .env 或 skill 父级)
# 2. skill 自带脚本齐全
test -f .claude/skills/master-go-to-code/scripts/fetch-and-parse.mjs
# 3. skill 依赖装好(首次使用前)
test -d .claude/skills/master-go-to-code/node_modules/sharp \
|| (cd .claude/skills/master-go-to-code && npm install)
# 4. 解析 URL → fileId + layerId(从 ?layer_id= 提取)
任一失败即停,告诉用户具体原因。
Step 1 · 提取资源 + 切分 chunk
1.1 拉 DSL + 资源
# 默认: 下载图片 + 提取 SVG path + SVG → PNG (2x 图,适合直接当图片用)
node .claude/skills/master-go-to-code/scripts/fetch-and-parse.mjs <fileId> <layerId> <imgDir>
# 选项: 项目要保留 SVG(轻量/缩放无损),加 --keep-svg 关闭 PNG 转换
node .claude/skills/master-go-to-code/scripts/fetch-and-parse.mjs <fileId> <layerId> <imgDir> --keep-svg
# 选项: 想要有意义的英文文件名(user-mgmt.png 而不是 716-294400.png)
node .claude/skills/master-go-to-code/scripts/fetch-and-parse.mjs <fileId> <layerId> <imgDir> --icon-names=<path/to/icon-names.json>
imgDir 推断规则见 references/imgdir-mapping.md。
SVG → PNG 详细说明 + icon-names 映射格式见 references/svg-to-png.md。
What ships with it
23 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.
- package-lock.json 17 KB
- package.json 488 B
- references/common-pitfalls.md 8.7 KB
- references/dom-tree-spec.md 11 KB
- references/dsl-css-mapping.md 7.5 KB
- references/dsl-issues.md 9.5 KB
- references/dsl-rules.json 4.0 KB
- references/imgdir-mapping.md 2.0 KB
- references/svg-to-png.md 3.3 KB
- schemas/dom-tree-v1.schema.json 2.3 KB
- schemas/svg-paths.schema.json 1.3 KB
- scripts/compare-pixel.mjs 3.5 KB runs code
- scripts/compare-tokens.mjs 12 KB runs code
- scripts/extract-image-names.mjs 1.7 KB runs code
- scripts/fetch-and-parse.mjs 27 KB runs code
- scripts/iterate.mjs 1.6 KB runs code
- scripts/merge-refined.py 8.0 KB runs code
- scripts/refine-chunks.py 5.2 KB runs code
- scripts/refine-dom-tree.py 16 KB runs code
- scripts/render.mjs 9.4 KB runs code
- scripts/seed-test-data.mjs 12 KB runs code
- scripts/split-dsl.py 5.6 KB runs code
- scripts/validate-dom-tree.mjs 4.3 KB runs code
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 Changed · +5 lines · +11 tokens per session 53447550478f
- 3mo ago First seen · 381 lines · 94 tokens per session scan A 754726eb275b
master-go-to-code is a skill published in the GitHub repository willnie9/agent-skills (2 stars, last pushed 14d ago), licensed MIT. It adds 105 tokens to every session and 5,801 once invoked, about $0.0004 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.
master-go-to-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| master-go-to-codewillnie9/agent-skills | Skill | 2 | 14d ago | MIT | A | 105 | Claude Code |
| 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 |