lanhu-design
Read Lanhu UI designs, extract slices, and download Web/iOS/Android assets using lh-design. Use when the user mentions 蓝湖, Lanhu, UI稿, 设计稿, 切图, iOS @2x/@3x, Android drawable, or Web 1x/2x/3x assets.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- lanhu-design
- description
- Read Lanhu UI designs, extract slices, and download Web/iOS/Android assets using lh-design. Use when the user mentions 蓝湖, Lanhu, UI稿, 设计稿, 切图, iOS @2x/@3x, Android drawable, or Web 1x/2x/3x assets.
03 SKILL.md 正文
Lanhu Design
Prerequisites
Use the lh-design CLI from xuwenxindeai/lanhu-design-reader.
If lh-design is missing, do not run remote installer commands from this skill. Ask the user to install lh-design from the project README, then verify with lh-design --help.
The default installer paths are:
Source: ~/.lanhu-design-reader/src
Virtualenv: ~/.lanhu-design-reader/venv
Config: ~/.lanhu-design-reader/.env
Command: ~/.local/bin/lh-design
The user must provide LANHU_COOKIE via shell env, a local .env, or ~/.lanhu-design-reader/.env. If DDS schema reads need a separate login state, use DDS_COOKIE.
Workflow
- Parse the user's Lanhu URL and identify
image_id. If the URL already includesimage_idordocId,--image-idmay be omitted. - Inspect slices first:
lh-design slices '<Lanhu URL>' --image-id <image_id> -o slices.json
- Download assets for the target platform.
Web:
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale 1x -o web_1x
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale 2x -o web_2x
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale 3x -o web_3x
iOS:
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale ios_2x -o ios_2x
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale ios_3x -o ios_3x
Android:
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale android_mdpi -o drawable-mdpi
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale android_hdpi -o drawable-hdpi
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale android_xhdpi -o drawable-xhdpi
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale android_xxhdpi -o drawable-xxhdpi
lh-design download-slices '<Lanhu URL>' --image-id <image_id> --scale android_xxxhdpi -o drawable-xxxhdpi
Important
- Web uses
1x/2x/3x, notios_*. - iOS uses
ios_2x/ios_3x. - Android uses
android_mdpi/android_hdpi/android_xhdpi/android_xxhdpi/android_xxxhdpi. - For Photoshop uploads,
base_sizeequals iOS@2x/ Androidxhdpi. - Prefer
slices.jsonas the source of truth before renaming or moving assets.
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.