协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
dsl-compilation【开发与工程】Compile and troubleshoot pix2code .gui DSL files into Bootstrap HTML, Android XML layout, or iOS Storyboard scaffold output.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user has a pix2code .gui file or generated DSL text and wants platform scaffold output, token validation, or compiler troubleshooting.
.gui file or DSL text that uses pix2code tokens.web, android, or ios.python sub-skills/dsl-compilation/scripts/compile_gui.py --platform web --input screen.gui --output screen.html --seed 7
<html>, Bootstrap container/row/column markup.LinearLayout root.document and viewController tags.| User asks for | Do this |
|---|---|
"Compile this .gui to HTML" | Use compile_gui.py --platform web; read platform reference if the output needs Bootstrap details. |
| "Compile generated DSL for Android/iOS" | Use the same helper with --platform android or --platform ios; warn that generated IDs/text are placeholders. |
| "Debug a compiler KeyError" | Read troubleshooting, validate braces and token names, then rerun the helper for a clearer error. |
| "Explain pix2code DSL" | Read dsl-reference.md; do not send the user back to original mapping JSON files. |
| "Make exact original compiler behavior" | Note that this helper preserves the original mapping semantics but adds deterministic seeds and diagnostics. For checkout maintenance, original scripts assumed they were run from the compiler/ directory. |
This sub-skill owns DSL parsing and platform template rendering. It does not own model sampling from screenshots; route screenshot-to-DSL artifact questions to ../sampling-and-generation/SKILL.md. It does not own dataset splitting or model training; route those to ../data-and-training/SKILL.md.
.gui content..html, .xml, or .storyboard.