[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FB9P9A5Z178XDD522V4WPM":3,"skill-same:01M7FB9P9A5Z178XDD522V4WPM":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":48},"01M7FB9P9A5Z178XDD522V4WPM","dsl-compilation",null,"Compile and troubleshoot pix2code .gui DSL files into Bootstrap HTML, Android XML layout, or iOS Storyboard scaffold output.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fpix2code\u002Fsub-skills\u002Fdsl-compilation\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: dsl-compilation\ndescription: \"Compile and troubleshoot pix2code .gui DSL files into Bootstrap\n  HTML, Android XML layout, or iOS Storyboard scaffold output.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# DSL Compilation\n\nUse 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.\n\n## Read first\n\n- [references\u002Fdsl-reference.md](references\u002Fdsl-reference.md) explains the DSL grammar, nesting tokens, platform token differences, and validation rules.\n- [references\u002Fplatform-compilation.md](references\u002Fplatform-compilation.md) gives concrete compile recipes and output expectations for web, Android, and iOS.\n- [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) covers unknown tokens, malformed braces, unstable placeholder text, and output-location surprises.\n- [scripts\u002Fcompile_gui.py](scripts\u002Fcompile_gui.py) is the bundled self-contained compiler helper; use it instead of relying on original checkout scripts.\n\n## Quick workflow\n\n1. Confirm the input is a `.gui` file or DSL text that uses pix2code tokens.\n2. Choose one target platform: `web`, `android`, or `ios`.\n3. Run the bundled compiler with a deterministic seed when a stable test output matters:\n\n```bash\npython sub-skills\u002Fdsl-compilation\u002Fscripts\u002Fcompile_gui.py --platform web --input screen.gui --output screen.html --seed 7\n```\n\n4. Inspect the generated file for the platform-specific signal:\n   - web: `\u003Chtml>`, Bootstrap container\u002Frow\u002Fcolumn markup.\n   - Android: XML declaration plus `LinearLayout` root.\n   - iOS: Storyboard XML `document` and `viewController` tags.\n5. If the compiler reports unknown tokens, compare the DSL against [references\u002Fdsl-reference.md](references\u002Fdsl-reference.md). Platform vocabularies differ; a token valid for web may not exist for Android or iOS.\n\n## Route by task\n\n| User asks for | Do this |\n| --- | --- |\n| \"Compile this `.gui` to HTML\" | Use `compile_gui.py --platform web`; read platform reference if the output needs Bootstrap details. |\n| \"Compile generated DSL for Android\u002FiOS\" | Use the same helper with `--platform android` or `--platform ios`; warn that generated IDs\u002Ftext are placeholders. |\n| \"Debug a compiler KeyError\" | Read troubleshooting, validate braces and token names, then rerun the helper for a clearer error. |\n| \"Explain pix2code DSL\" | Read `dsl-reference.md`; do not send the user back to original mapping JSON files. |\n| \"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\u002F` directory. |\n\n## Boundaries\n\nThis sub-skill owns DSL parsing and platform template rendering. It does not own model sampling from screenshots; route screenshot-to-DSL artifact questions to [..\u002Fsampling-and-generation\u002FSKILL.md](..\u002Fsampling-and-generation\u002FSKILL.md). It does not own dataset splitting or model training; route those to [..\u002Fdata-and-training\u002FSKILL.md](..\u002Fdata-and-training\u002FSKILL.md).\n\n## Validation checklist\n\n- The input path exists and uses `.gui` content.\n- Braces are balanced and each opening token has a known platform mapping.\n- Leaf tokens separated by commas are valid for the selected platform.\n- Output extension matches the selected platform: `.html`, `.xml`, or `.storyboard`.\n- Runtime instructions use bundled scripts and references only.\n","# DSL Compilation\n\nUse 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.\n\n## Read first\n\n- [references\u002Fdsl-reference.md](references\u002Fdsl-reference.md) explains the DSL grammar, nesting tokens, platform token differences, and validation rules.\n- [references\u002Fplatform-compilation.md](references\u002Fplatform-compilation.md) gives concrete compile recipes and output expectations for web, Android, and iOS.\n- [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) covers unknown tokens, malformed braces, unstable placeholder text, and output-location surprises.\n- [scripts\u002Fcompile_gui.py](scripts\u002Fcompile_gui.py) is the bundled self-contained compiler helper; use it instead of relying on original checkout scripts.\n\n## Quick workflow\n\n1. Confirm the input is a `.gui` file or DSL text that uses pix2code tokens.\n2. Choose one target platform: `web`, `android`, or `ios`.\n3. Run the bundled compiler with a deterministic seed when a stable test output matters:\n\n```bash\npython sub-skills\u002Fdsl-compilation\u002Fscripts\u002Fcompile_gui.py --platform web --input screen.gui --output screen.html --seed 7\n```\n\n4. Inspect the generated file for the platform-specific signal:\n   - web: `\u003Chtml>`, Bootstrap container\u002Frow\u002Fcolumn markup.\n   - Android: XML declaration plus `LinearLayout` root.\n   - iOS: Storyboard XML `document` and `viewController` tags.\n5. If the compiler reports unknown tokens, compare the DSL against [references\u002Fdsl-reference.md](references\u002Fdsl-reference.md). Platform vocabularies differ; a token valid for web may not exist for Android or iOS.\n\n## Route by task\n\n| User asks for | Do this |\n| --- | --- |\n| \"Compile this `.gui` to HTML\" | Use `compile_gui.py --platform web`; read platform reference if the output needs Bootstrap details. |\n| \"Compile generated DSL for Android\u002FiOS\" | Use the same helper with `--platform android` or `--platform ios`; warn that generated IDs\u002Ftext are placeholders. |\n| \"Debug a compiler KeyError\" | Read troubleshooting, validate braces and token names, then rerun the helper for a clearer error. |\n| \"Explain pix2code DSL\" | Read `dsl-reference.md`; do not send the user back to original mapping JSON files. |\n| \"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\u002F` directory. |\n\n## Boundaries\n\nThis sub-skill owns DSL parsing and platform template rendering. It does not own model sampling from screenshots; route screenshot-to-DSL artifact questions to [..\u002Fsampling-and-generation\u002FSKILL.md](..\u002Fsampling-and-generation\u002FSKILL.md). It does not own dataset splitting or model training; route those to [..\u002Fdata-and-training\u002FSKILL.md](..\u002Fdata-and-training\u002FSKILL.md).\n\n## Validation checklist\n\n- The input path exists and uses `.gui` content.\n- Braces are balanced and each opening token has a known platform mapping.\n- Leaf tokens separated by commas are valid for the selected platform.\n- Output extension matches the selected platform: `.html`, `.xml`, or `.storyboard`.\n- Runtime instructions use bundled scripts and references only.\n",{"name":5,"license":24,"metadata":25,"description":7,"disable-model-invocation":27},"Apache 2.0",{"disco-role":26},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fpix2code\u002Fsub-skills\u002Fdsl-compilation",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":27},[38,41,44],{"tool":39,"command":40},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill dsl-compilation",{"tool":42,"command":43},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill dsl-compilation",{"tool":45,"command":46},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill dsl-compilation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fpix2code\u002Fsub-skills\u002Fdsl-compilation\u002FSKILL.md",[49,55,59],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fdsl-reference.md","REFERENCE","参考文档",2057,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fpix2code\u002Fsub-skills\u002Fdsl-compilation\u002Freferences\u002Fdsl-reference.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fplatform-compilation.md",1459,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fpix2code\u002Fsub-skills\u002Fdsl-compilation\u002Freferences\u002Fplatform-compilation.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Ftroubleshooting.md",947,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fpix2code\u002Fsub-skills\u002Fdsl-compilation\u002Freferences\u002Ftroubleshooting.md",[64,72,77,84,91,98],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":73,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]