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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "lanhu-design" with this command: npx skills add xuwenxindeai/lanhu-design

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Colormind

Generate color palettes and get color suggestions via the Colormind.io API (list models, generate palettes with optional locked colors).

Registry SourceRecently Updated
8710Profile unavailable
General

TailwindCss Complete Documentation

Complete Tailwind CSS documentation. Use when working with Tailwind CSS utility classes, responsive design, dark mode, animations, custom configurations, plugins, or styling questions. Covers all utility classes, modifiers, configuration options, and best practices.

Registry SourceRecently Updated
2K0Profile unavailable
General

Style Guide Generator

Generate comprehensive website style guides and design systems from URLs, screenshots, and existing documentation. Use this skill when users ask to create a style guide, design system documentation, brand guidelines document, or design specification from a website, app, or existing materials. This skill produces professional PDF outputs following industry-standard style guide structure.

Registry SourceRecently Updated
2.8K2Profile unavailable
General

UI/UX CraftKit

UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart ty...

Registry SourceRecently Updated
4910Profile unavailable