mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-21 12:18:24 +08:00
feat: responsive variants + design-to-code prompt
Responsive variants: $D variants --viewports desktop,tablet,mobile generates mockups at 1536x1024, 1024x1024, and 1024x1536 (portrait) with viewport-appropriate layout instructions. Design-to-code prompt: $D prompt --image approved.png extracts colors, typography, layout, and components via GPT-4o vision, producing a structured implementation prompt. Reads DESIGN.md for additional constraint context. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -54,6 +54,11 @@ export const COMMANDS = new Map<string, {
|
||||
usage: "verify --mockup approved.png --screenshot live.png",
|
||||
flags: ["--mockup", "--screenshot", "--output"],
|
||||
}],
|
||||
["prompt", {
|
||||
description: "Generate structured implementation prompt from approved mockup",
|
||||
usage: "prompt --image approved.png",
|
||||
flags: ["--image"],
|
||||
}],
|
||||
["extract", {
|
||||
description: "Extract design language from approved mockup into DESIGN.md",
|
||||
usage: "extract --image approved.png",
|
||||
|
||||
Reference in New Issue
Block a user