
Layout Library Importer
Add a supplied layout image and bilingual layout prompt to the local handdraw-style...
Install
npx skills add yang0/handraw-style --skill layout-library-importer -g -a claude-code -y- Repository
- yang0/handraw-style6.9k
- Category
- AI and agents
- Updated
- 7d ago
- License
- See repository
- Context cost
- Mediumabout 1,506 tokens
- Runs scripts
- No, instructions only
What it does
Add a supplied layout image and bilingual layout prompt to the local handdraw-style layout library and gallery. Use for new SC-* social-card or IG-* infographic layouts; do not use for style-number imports.
Layout Library Importer
Use this Skill when the user wants to add a new visual layout/type to the local hand-drawn layout gallery. This is a repository-local workflow: do not commit, push, publish, or install anything externally unless the user separately asks.
Source of truth
Work from the repository root and read the live implementation before editing:
skills/handdraw-style-prompter/references/layouts.jsonis the layout index.skills/handdraw-style-prompter/references/layouts/*.mdis the authoritative bilingual prompt content.images/layouts/social-cards/,images/layouts/infographics/,images/layouts/comic-storyboards/, andimages/layouts/ip-characters/hold the layout images; canonical assets use WebP.skills/handdraw-style-prompter/scripts/build_layout_gallery.pyrebuilds the derived gallery.skills/handdraw-style-prompter/scripts/validate_library.pyis the full validation command.
Preserve unrelated dirty work. Inspect git status --short before editing and do not reset, clean, or overwrite files outside the requested layout import.
Import workflow
Batch input mode
Unless the user explicitly asks to rebuild, treat consecutive layout imports as batch input. For each supplied image, convert it to WebP when needed, add its index entry, and create its bilingual prompt file, but do not rebuild gallery/layouts.html or run the full validator after each item.
When the user says 重建索引, rebuild the layout gallery once from the accumulated canonical index and run the full validation and whitespace check. The canonical index is references/layouts.json; this request means regenerate and validate its derived gallery, not recreate the index entries already recorded.

