lanhu-xml-plan SKILL.md skillA
lanhu-xml-plan from dj931567261/lanhu-mcp is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add dj931567261/lanhu-mcp/lanhu-xml-plan@git:20260402.2d57380Pins git:20260402.2d57380 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- dj931567261/lanhu-mcp
- Path
skills/lanhu-xml-plan/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260402.2d57380, committed Apr 2, 2026
- Size
- 16,149 bytes
- Repository stars
- 18
- License
- MIT
输入蓝湖设计图详情 URL(含 image_id),使用 lanhu MCP image_id 精确链路输出传统 Android XML(annotations 直出 dp,schema 仅失败兜底,drawable-nodpi 统一落盘;缺失 dp_xx 基线时自动从 skill assets 整套补齐 7 套 dimens)。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 蓝湖 → Android XML(image_id 直连 + annotations(dp) 主路径 + schema 兜底)
## Skill 执行优先级(硬门禁)
当用户消息显式包含 `$lanhu-xml-plan`(或明确点名本 skill)时,必须执行以下规则:
1. **本 skill 规则最高优先级**:
- 禁止回退到通用转换文档(例如 `ai/ui.md`、`ai/base-ui-convert-rules.md`)作为主流程。
- 禁止输出“按设计图视觉比例落地”这类非本 skill 数据链路结论。
2. **先协议、后改文件**:
- 在完整输出“阶段 1 + 阶段 2(A/B/C/D)”之前,禁止修改项目代码文件。
3. **未满足契约即失败**:
- 未按约定输出 A) 审计区,视为未执行本 skill。
- 触发时必须输出:`FAIL_FAST: SKILL_CONTRACT_VIOLATION` 并停止。
## 输入格式(从用户消息解析)
支持任意一种:
- 只给一行蓝湖 URL
- 或 key=value 多行:
- `LANHU_URL=...`
- `HOST_ACTIVITY=...`(可选)
- `HOST_FRAGMENT=...`(可选)
- `PRESENTATION=auto|inline|fragment|dialog|bottom_sheet|popup|activity|dialog_activity`
### 输入硬要求
- `LANHU_URL` 必须是设计图详情链接并包含 `image_id`(`detailDetach?...&image_id=...`)。
- 若缺少 `LANHU_URL`:仅提示补充后停止。
- 若缺少 `image_id`:`FAIL_FAST: IMAGE_ID_MISSING_IN_URL`。
## 必须使用的 MCP 工具(主路径)
必须调用(禁止无工具猜测):
- `lanhu_get_ai_analyze_design_result(url, image_ids)`
- `lanhu_get_design_annotations(url, image_id)`
- `lanhu_get_design_slices(url, image_id)`
必要时(仅当链接为 PRD/原型文档且包含 `docId`):
- `lanhu_get_pages`
- `lanhu_get_ai_analyze_page_result`
- `lanhu_resolve_invite_link`
…Read the whole file at its exact version.
How to install
mdr add dj931567261/lanhu-mcp/lanhu-xml-plan@sha256:1ff49b3a334f35e7The line at the top of this page pins the label git:20260402.2d57380, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_5wjzi4myttntqdjo)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Apr 2, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (16149 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
dj931567261/lanhu-mcp · 18 stars · license MIT · pushed 2026-11-08 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_5wjzi4myttntqdjo GET https://markdownregistry.com/api/v1/resolve?ref=dj931567261/lanhu-mcp/lanhu-xml-plan GET https://markdownregistry.com/api/v1/blob/1ff49b3a334f35e7a1c2f3f9b98242842e2178218af022da00e4243b702181cc
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.