Install
openclaw skills install wangjipeng-diagram-to-codeUse when (1) user provides architecture diagram and needs infrastructure as code or component code.
openclaw skills install wangjipeng-diagram-to-codeUse when (1) user provides architecture diagram and needs infrastructure as code or component code.
This skill solves the specific engineering problem of: user provides architecture diagram and needs infrastructure as code or component code
This skill is NOT:
This skill IS activated ONLY when the trigger conditions are explicitly met.
/diagram-to-codeDefault mode. Performs the core task end-to-end.
When to use: User provides input matching the trigger conditions above.
Receive diagram — User pastes an architecture diagram, flowchart, or infrastructure plan
Parse diagram structure — Identify the diagram elements:
Map to target code form — Identify the appropriate output:
Generate code — Produce the target format with the diagram's structure:
Deliver with validation — Return the code with a diagram-to-code mapping:
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