技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
pix2code【数据与研究】Operate the pix2code research repository for GUI screenshot-to-DSL experiments, legacy Keras/TensorFlow training, model sampling, and DSL compilation to web, Android, or iOS code.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves the pix2code research codebase: turning GUI screenshot datasets into training examples, training or inspecting the legacy Keras/TensorFlow model, generating the pix2code DSL from screenshots, or compiling .gui DSL files into web, Android, or iOS scaffold code.
pix2code is an educational 2017 research prototype. Treat it as historical ML code, not a production UI generator. Prefer small, deterministic checks and explicit artifact validation before attempting model training or inference.
The original README listed Python 2 or 3 and these historical pins:
Keras==2.1.2
numpy==1.13.3
opencv-python==3.3.0.10
h5py==2.7.1
tensorflow==1.4.0
For modern hosts, expect to use an isolated legacy Python environment. The old OpenCV pin may no longer be available from current package indexes; use the troubleshooting reference before changing versions. A minimal inspection check is:
python scripts/check_pix2code_environment.py --include-ml
The repository is not a packaged Python distribution with console entry points. Its scripts rely on working from either the model/ or compiler/ source directories. This generated skill therefore bundles safer helpers that are self-contained and runnable from arbitrary directories.
| Task intent | Read this |
|---|---|
Prepare pix2code datasets, validate .gui/image pairs, split train/eval sets, convert screenshots to .npz, or plan legacy training commands. | sub-skills/data-and-training/SKILL.md |
Validate trained artifacts, choose greedy versus beam search, diagnose missing pix2code.json / .h5 / meta_dataset.npy / words.vocab, or explain batch versus single-image generation. | sub-skills/sampling-and-generation/SKILL.md |
Compile a .gui DSL file to web Bootstrap HTML, Android XML, or iOS Storyboard, inspect DSL tokens, or debug malformed DSL nesting. | sub-skills/dsl-compilation/SKILL.md |
| Diagnose install/import failures, stale helper behavior, unavailable pretrained results, or research-prototype limitations shared by multiple workflows. | references/troubleshooting.md |
.gui files before compiling them. Unknown tokens raise KeyError in the original compiler; use the bundled compiler's clearer diagnostics..gui and .png/.npz files.