image-to-code-skill
Image-first pipeline - generate site references, analyze them, then implement the frontend to match.
- License 许可
- MIT
- 最近更新
- 2026-08-26
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- image-to-code-skill
- description
- Image-first pipeline - generate site references, analyze them, then implement the frontend to match.
03 SKILL.md 正文
Image-to-Code Pipeline
WORKFLOW (3 STEPS)
Step 1: Generate Reference Images
Use imagegen-frontend-web or imagegen-frontend-mobile to create visual references.
Step 2: Analyze Images
Study the generated images carefully:
- Identify layout patterns
- Note typography hierarchy
- Extract color palette
- Map component structure
Step 3: Implement Frontend
Build the code matching the reference EXACTLY.
ANALYSIS GUIDELINES
Layout Analysis
- Grid structure (bento, masonry, split)
- Section hierarchy
- Spacing patterns
- Responsive behavior
Visual Analysis
- Color palette (primary, accent, neutral)
- Typography (headings, body, sizes)
- Shadows and depth
- Border radius values
Component Analysis
- What atoms/molecules/organisms?
- What are the states?
- What's the interaction model?
IMPLEMENTATION RULES
Match Exactness
- Replicate colors exactly
- Match typography sizes
- Copy spacing values
- Reproduce shadows
Quality Standards
Use taste-skill standards for implementation quality (motion, performance, etc.)
PROMPT TEMPLATE
Follow the image-to-code-skill:
1. Generate reference images using imagegen-frontend-web
2. Analyze the images for layout, colors, typography
3. Implement the frontend matching the reference exactly
FORBIDDEN
- Ignoring image details
- Making up different colors
- Using different fonts than shown
- Simplifying complex layouts
PRE-FLIGHT
- [ ] Images generated
- [ ] Analysis complete
- [ ] Implementation matches reference
04 同仓库更多 Skills
zustand-5
Zustand 5 state management patterns. Trigger: When managing React state with Zustand.
zod-4
Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.
x-bookmark-quote-posts
Workflow para revisar bookmarks de X/Twitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.