[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F86P2FZ6JRWCC47KXTGJ44":3,"skill-same:01M7F86P2FZ6JRWCC47KXTGJ44":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7F86P2FZ6JRWCC47KXTGJ44","codegen",null,"Code generation utilities for json-render. Use when generating code from UI specs, building custom code exporters, traversing specs, or serializing props for @json-render\u002Fcodegen.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fcodegen\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: codegen\ndescription: Code generation utilities for json-render. Use when generating code from UI specs, building custom code exporters, traversing specs, or serializing props for @json-render\u002Fcodegen.\n---\n\n# @json-render\u002Fcodegen\n\nFramework-agnostic utilities for generating code from json-render UI trees. Use these to build custom code exporters for Next.js, Remix, or other frameworks.\n\n## Installation\n\n```bash\nnpm install @json-render\u002Fcodegen\n```\n\n## Tree Traversal\n\n```typescript\nimport {\n  traverseSpec,\n  collectUsedComponents,\n  collectStatePaths,\n  collectActions,\n} from \"@json-render\u002Fcodegen\";\n\n\u002F\u002F Walk the spec depth-first\ntraverseSpec(spec, (element, key, depth, parent) => {\n  console.log(`${\" \".repeat(depth * 2)}${key}: ${element.type}`);\n});\n\n\u002F\u002F Get all component types used\nconst components = collectUsedComponents(spec);\n\u002F\u002F Set { \"Card\", \"Metric\", \"Button\" }\n\n\u002F\u002F Get all state paths referenced\nconst statePaths = collectStatePaths(spec);\n\u002F\u002F Set { \"analytics\u002Frevenue\", \"user\u002Fname\" }\n\n\u002F\u002F Get all action names\nconst actions = collectActions(spec);\n\u002F\u002F Set { \"submit_form\", \"refresh_data\" }\n```\n\n## Serialization\n\n```typescript\nimport {\n  serializePropValue,\n  serializeProps,\n  escapeString,\n  type SerializeOptions,\n} from \"@json-render\u002Fcodegen\";\n\n\u002F\u002F Serialize a single value\nserializePropValue(\"hello\");\n\u002F\u002F { value: '\"hello\"', needsBraces: false }\n\nserializePropValue({ $state: \"\u002Fuser\u002Fname\" });\n\u002F\u002F { value: '{ $state: \"\u002Fuser\u002Fname\" }', needsBraces: true }\n\n\u002F\u002F Serialize props for JSX\nserializeProps({ title: \"Dashboard\", columns: 3, disabled: true });\n\u002F\u002F 'title=\"Dashboard\" columns={3} disabled'\n\n\u002F\u002F Escape strings for code\nescapeString('hello \"world\"');\n\u002F\u002F 'hello \\\"world\\\"'\n```\n\n### SerializeOptions\n\n```typescript\ninterface SerializeOptions {\n  quotes?: \"single\" | \"double\";\n  indent?: number;\n}\n```\n\n## Types\n\n```typescript\nimport type { GeneratedFile, CodeGenerator } from \"@json-render\u002Fcodegen\";\n\nconst myGenerator: CodeGenerator = {\n  generate(spec) {\n    return [\n      { path: \"package.json\", content: \"...\" },\n      { path: \"app\u002Fpage.tsx\", content: \"...\" },\n    ];\n  },\n};\n```\n\n## Building a Custom Generator\n\n```typescript\nimport {\n  collectUsedComponents,\n  collectStatePaths,\n  traverseSpec,\n  serializeProps,\n  type GeneratedFile,\n} from \"@json-render\u002Fcodegen\";\nimport type { Spec } from \"@json-render\u002Fcore\";\n\nexport function generateNextJSProject(spec: Spec): GeneratedFile[] {\n  const files: GeneratedFile[] = [];\n  const components = collectUsedComponents(spec);\n  \u002F\u002F Generate package.json, component files, main page...\n  return files;\n}\n```\n","# @json-render\u002Fcodegen\n\nFramework-agnostic utilities for generating code from json-render UI trees. Use these to build custom code exporters for Next.js, Remix, or other frameworks.\n\n## Installation\n\n```bash\nnpm install @json-render\u002Fcodegen\n```\n\n## Tree Traversal\n\n```typescript\nimport {\n  traverseSpec,\n  collectUsedComponents,\n  collectStatePaths,\n  collectActions,\n} from \"@json-render\u002Fcodegen\";\n\n\u002F\u002F Walk the spec depth-first\ntraverseSpec(spec, (element, key, depth, parent) => {\n  console.log(`${\" \".repeat(depth * 2)}${key}: ${element.type}`);\n});\n\n\u002F\u002F Get all component types used\nconst components = collectUsedComponents(spec);\n\u002F\u002F Set { \"Card\", \"Metric\", \"Button\" }\n\n\u002F\u002F Get all state paths referenced\nconst statePaths = collectStatePaths(spec);\n\u002F\u002F Set { \"analytics\u002Frevenue\", \"user\u002Fname\" }\n\n\u002F\u002F Get all action names\nconst actions = collectActions(spec);\n\u002F\u002F Set { \"submit_form\", \"refresh_data\" }\n```\n\n## Serialization\n\n```typescript\nimport {\n  serializePropValue,\n  serializeProps,\n  escapeString,\n  type SerializeOptions,\n} from \"@json-render\u002Fcodegen\";\n\n\u002F\u002F Serialize a single value\nserializePropValue(\"hello\");\n\u002F\u002F { value: '\"hello\"', needsBraces: false }\n\nserializePropValue({ $state: \"\u002Fuser\u002Fname\" });\n\u002F\u002F { value: '{ $state: \"\u002Fuser\u002Fname\" }', needsBraces: true }\n\n\u002F\u002F Serialize props for JSX\nserializeProps({ title: \"Dashboard\", columns: 3, disabled: true });\n\u002F\u002F 'title=\"Dashboard\" columns={3} disabled'\n\n\u002F\u002F Escape strings for code\nescapeString('hello \"world\"');\n\u002F\u002F 'hello \\\"world\\\"'\n```\n\n### SerializeOptions\n\n```typescript\ninterface SerializeOptions {\n  quotes?: \"single\" | \"double\";\n  indent?: number;\n}\n```\n\n## Types\n\n```typescript\nimport type { GeneratedFile, CodeGenerator } from \"@json-render\u002Fcodegen\";\n\nconst myGenerator: CodeGenerator = {\n  generate(spec) {\n    return [\n      { path: \"package.json\", content: \"...\" },\n      { path: \"app\u002Fpage.tsx\", content: \"...\" },\n    ];\n  },\n};\n```\n\n## Building a Custom Generator\n\n```typescript\nimport {\n  collectUsedComponents,\n  collectStatePaths,\n  traverseSpec,\n  serializeProps,\n  type GeneratedFile,\n} from \"@json-render\u002Fcodegen\";\nimport type { Spec } from \"@json-render\u002Fcore\";\n\nexport function generateNextJSProject(spec: Spec): GeneratedFile[] {\n  const files: GeneratedFile[] = [];\n  const components = collectUsedComponents(spec);\n  \u002F\u002F Generate package.json, component files, main page...\n  return files;\n}\n```\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fcodegen",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":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill codegen",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill codegen",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill codegen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fcodegen\u002FSKILL.md",true,[],[47,54,59,66,73,80],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"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.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":55,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"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":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"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":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"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":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"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",[],[]]