Install
openclaw skills install wangjipeng-screenshot-to-prototypeUse when (1) user pastes a UI screenshot and needs editable frontend code prototype.
openclaw skills install wangjipeng-screenshot-to-prototypeUse when (1) user pastes a UI screenshot and needs editable frontend code prototype.
This skill solves the specific engineering problem of: user pastes a UI screenshot and needs editable frontend code prototype
This skill is NOT:
This skill IS activated ONLY when the trigger conditions are explicitly met.
/screenshot-to-prototypeDefault mode. Performs the core task end-to-end.
When to use: User provides input matching the trigger conditions above.
Receive screenshot — User pastes a UI screenshot (PNG/JPG/WebP)
Analyze UI structure — Identify key elements from the screenshot:
Generate component map — Map detected elements to frontend structure:
Output prototype code — Generate clean, well-structured HTML/CSS (or React/Vue):
Deliver with guidance — Return the code with a brief explanation:
os.getenv("API_KEY") insteadA good output:
A bad output:
| Scenario | Bad Output | Good Output |
|---|---|---|
| Trigger matched | "I can help with that." + no action | Correct transformation delivered in structured format |
| Invalid input | Crash or wrong result | "Missing required field: [X]. Please provide [Y]." |
| Ambiguous input | Guesses and might be wrong | States assumption and asks for confirmation |
| Off-topic request | Attempts to help anyway | "This skill activates when [trigger]. Please restate your request." |
references/ — Detailed templates, schemas, and edge-case rules for this skill