← 返回
未分类 Key

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,...
读取蓝湖 UI 设计稿,提取切片并使用 lh-design 下载 Web/iOS/Android 资源。用户提及蓝湖、Lanhu、UI稿、设计稿、切图、iOS @2x/@3x 时使用。
xuwenxindeai xuwenxindeai 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 1
Stars
📥 290
下载
💾 0
安装
1
版本
#design#lanhu#latest#ui-assets

概述

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

  1. Parse the user's Lanhu URL and identify image_id. If the URL already includes image_id or docId, --image-id may be omitted.
  2. Inspect slices first:
lh-design slices '<Lanhu URL>' --image-id <image_id> -o slices.json
  1. 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, not ios_*.
  • iOS uses ios_2x/ios_3x.
  • Android uses android_mdpi/android_hdpi/android_xhdpi/android_xxhdpi/android_xxxhdpi.
  • For Photoshop uploads, base_size equals iOS @2x / Android xhdpi.
  • Prefer slices.json as the source of truth before renaming or moving assets.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-08 04:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 219 📥 48,038
design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 134 📥 53,005
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 332 📥 94,150