[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECSBV2V482WZ7GA1N0XDKD":3,"skill-same:01M7ECSBV2V482WZ7GA1N0XDKD":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},"01M7ECSBV2V482WZ7GA1N0XDKD","likec4-cli-codegen-regression",null,"Use when changing or reviewing LikeC4 CLI code generation, exporters, output file naming, include-path codegen behavior, or `likec4 gen` commands. Trigger for bugs around `--outdir`, generated files escaping output folders, dot\u002Fd2\u002Fmermaid\u002Fplantuml output, or external include-path views.","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\u002F03-逆向工程\u002Flikec4-cli-codegen-regression\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: likec4-cli-codegen-regression\ndescription: Use when changing or reviewing LikeC4 CLI code generation, exporters, output file naming, include-path codegen behavior, or `likec4 gen` commands. Trigger for bugs around `--outdir`, generated files escaping output folders, dot\u002Fd2\u002Fmermaid\u002Fplantuml output, or external include-path views.\n---\n\n# LikeC4 CLI Codegen Regression\n\nProtect `likec4 gen` output contracts with focused tests. The most important invariant is that multi-file generators write every emitted view under the requested output directory.\n\n## Ground rules\n\n- Start in `packages\u002Flikec4\u002Fsrc\u002Fcli\u002Fcodegen`.\n- Add a regression test before implementation when fixing a bug.\n- Test every affected multi-file format, not only the format that exposed the issue.\n- Treat external include-path views and Windows paths as first-class edge cases.\n\n## Output-path invariants\n\nFor `likec4 gen dot`, `d2`, `mermaid` or `mmd`, and `plantuml`:\n\n- `--outdir` or `-o` defines the containment root for all generated files.\n- Source-relative view paths must never escape the output root.\n- Absolute source paths, parent-relative paths, and Windows drive-root paths must not create files outside `--outdir`.\n- A view coming from an external include path should still be emitted under `--outdir`.\n- Define and assert the resulting output naming contract for escaped or external source paths; containment-only checks are not enough.\n- Single-file generators such as model, react, or webcomponent should keep their existing `--outfile` behavior.\n\n## Regression matrix\n\nCover the smallest matrix that proves the contract:\n\n| Case                                      | Expected result                                             |\n| ----------------------------------------- | ----------------------------------------------------------- |\n| view in project folder                    | file under `--outdir`                                       |\n| view in nested project folder             | nested file under `--outdir`                                |\n| view from external include path           | file under `--outdir`, not beside the included source       |\n| source path with `..` relation to project | sanitized or re-rooted under `--outdir`                     |\n| Windows drive-style source path           | no drive-root escape such as `C:` output outside `--outdir` |\n| absolute source path                      | no absolute-root escape outside `--outdir`                  |\n\nFormats to consider:\n\n- `.dot`\n- `.d2`\n- `.mmd`\n- `.puml`\n\n## Test shape\n\nUse a temp workspace fixture:\n\n```text\nworkspace\u002F\n  project-a\u002F\n    likec4.config.ts\n    project-view.c4\n  shared\u002F\n    included-view.c4\n  out\u002F\n```\n\nConfigure `project-a` to include `..\u002Fshared`. Run each generator with `--outdir workspace\u002Fout`.\n\nAssert:\n\n- expected files exist inside `workspace\u002Fout`\n- escaped or external source paths use the explicitly chosen output naming contract\n- no generated file exists under `project-a`, `shared`, or the temp workspace root outside `out`\n- all generated paths pass an `isInside(outdir, filepath)` style check\n\nIf the real fixture cannot produce absolute or Windows drive-style `sourcePath` values, extract a small path-resolution helper and cover those cases with pure unit tests.\n\n## Focused commands\n\n```bash\npnpm --filter likec4 test -- codegen\npnpm --filter likec4 typecheck\npnpm exec dprint check packages\u002Flikec4\u002Fsrc\u002Fcli\u002Fcodegen\ngit diff --check\n```\n\nIf touching shared path utilities, also run the package tests that own those utilities.\n","# LikeC4 CLI Codegen Regression\n\nProtect `likec4 gen` output contracts with focused tests. The most important invariant is that multi-file generators write every emitted view under the requested output directory.\n\n## Ground rules\n\n- Start in `packages\u002Flikec4\u002Fsrc\u002Fcli\u002Fcodegen`.\n- Add a regression test before implementation when fixing a bug.\n- Test every affected multi-file format, not only the format that exposed the issue.\n- Treat external include-path views and Windows paths as first-class edge cases.\n\n## Output-path invariants\n\nFor `likec4 gen dot`, `d2`, `mermaid` or `mmd`, and `plantuml`:\n\n- `--outdir` or `-o` defines the containment root for all generated files.\n- Source-relative view paths must never escape the output root.\n- Absolute source paths, parent-relative paths, and Windows drive-root paths must not create files outside `--outdir`.\n- A view coming from an external include path should still be emitted under `--outdir`.\n- Define and assert the resulting output naming contract for escaped or external source paths; containment-only checks are not enough.\n- Single-file generators such as model, react, or webcomponent should keep their existing `--outfile` behavior.\n\n## Regression matrix\n\nCover the smallest matrix that proves the contract:\n\n| Case                                      | Expected result                                             |\n| ----------------------------------------- | ----------------------------------------------------------- |\n| view in project folder                    | file under `--outdir`                                       |\n| view in nested project folder             | nested file under `--outdir`                                |\n| view from external include path           | file under `--outdir`, not beside the included source       |\n| source path with `..` relation to project | sanitized or re-rooted under `--outdir`                     |\n| Windows drive-style source path           | no drive-root escape such as `C:` output outside `--outdir` |\n| absolute source path                      | no absolute-root escape outside `--outdir`                  |\n\nFormats to consider:\n\n- `.dot`\n- `.d2`\n- `.mmd`\n- `.puml`\n\n## Test shape\n\nUse a temp workspace fixture:\n\n```text\nworkspace\u002F\n  project-a\u002F\n    likec4.config.ts\n    project-view.c4\n  shared\u002F\n    included-view.c4\n  out\u002F\n```\n\nConfigure `project-a` to include `..\u002Fshared`. Run each generator with `--outdir workspace\u002Fout`.\n\nAssert:\n\n- expected files exist inside `workspace\u002Fout`\n- escaped or external source paths use the explicitly chosen output naming contract\n- no generated file exists under `project-a`, `shared`, or the temp workspace root outside `out`\n- all generated paths pass an `isInside(outdir, filepath)` style check\n\nIf the real fixture cannot produce absolute or Windows drive-style `sourcePath` values, extract a small path-resolution helper and cover those cases with pure unit tests.\n\n## Focused commands\n\n```bash\npnpm --filter likec4 test -- codegen\npnpm --filter likec4 typecheck\npnpm exec dprint check packages\u002Flikec4\u002Fsrc\u002Fcli\u002Fcodegen\ngit diff --check\n```\n\nIf touching shared path utilities, also run the package tests that own those utilities.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","03-逆向工程\u002Flikec4-cli-codegen-regression",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 likec4-cli-codegen-regression",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill likec4-cli-codegen-regression",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill likec4-cli-codegen-regression","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Flikec4-cli-codegen-regression\u002FSKILL.md",true,[],[47,55,60,67,74,81],{"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":54},"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",[],[],"2026-11-16 10:05:34",{"skillNo":56,"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":57,"categories":58,"keywords":59,"publishedAt":54},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":54},"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":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":54},"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":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":54},"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":54},"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",[],[]]