[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QPKDDY261XYB6NNTZDQWW7":3,"skill-same:01M6QPKDDY261XYB6NNTZDQWW7":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":57,"install":58,"resources":71},"01M6QPKDDY261XYB6NNTZDQWW7","typescript",null,"Apply strict TypeScript production rules for typing, runtime validation, state\u002Ferror modeling, and module organization in TypeScript codebases; not intended for non-TypeScript stacks.","theCat69\u002Fla-briguade","theCat69","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F40163881?v=4","01M6QPEW8JP05VD4Q9E4TJDFB3","01M6QPEWCX5VB9ZKJ7E96BXEHQ",1,"MIT","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fauto-inject-skills\u002Ftypescript\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"orchestrator","apply","for","typing","error","module","feature","runtime","organization","builder","ask","reviewer","Rules","planner","json","designer","state","validation","runtime validation","2026-11-10 10:12:30",false,"---\nname: typescript\ndescription: Apply strict TypeScript production rules for typing, runtime validation, state\u002Ferror modeling, and module organization in TypeScript codebases; not intended for non-TypeScript stacks.\ndetect:\n  files:\n    - tsconfig.json\nagents:\n  - coder\n  - sidekick-reviewer\n  - architect\n  - feature-designer\n  - feature-reviewer\n  - planner\n  - ask\n  - builder\n  - orchestrator\n---\n\n# TypeScript Skill\n\n## Compiler Strictness\nFor new TypeScript configurations, enable `strict: true`, `noUncheckedIndexedAccess`, and\n`exactOptionalPropertyTypes`. Before enabling them in an existing project, assess compatibility,\nplan the migration, and preserve the project's agreed compiler baseline. These flags catch many\nruntime type errors at compile time.\n\n## Unknown Over Any\nPrefer `unknown` over `any`. When a value's type is truly unknown, require an explicit type guard or narrowing before use. `any` silently disables type checking and must never appear in production code without a documented justification.\n\n## Runtime Validation\nValidate all external data (API responses, user input, environment variables) at the boundary using a schema library such as Zod or Valibot. TypeScript types alone do not protect against malformed runtime data.\n\n## Discriminated Unions for State\nModel state machines and variants with discriminated unions (`{ kind: \"success\"; value: T } | { kind: \"error\"; message: string }`). Never use boolean flags or optional fields to represent mutually exclusive states.\n\n## Interface vs Type\nUse `interface` for object shapes that may be extended or implemented by classes. Use `type` for unions, intersections, mapped types, and aliases for primitives. Do not use `interface` for union types.\n\n## Utility Types First\nExhaust TypeScript's built-in utility types (`Partial`, `Required`, `Pick`, `Omit`, `Readonly`, `Record`, `ReturnType`, `Parameters`, etc.) before creating new types. Custom mapped types should be a last resort.\n\n## Const and Satisfies\nUse `as const` to freeze literal values and narrow their types. Use `satisfies` to validate that a value conforms to a type without widening it. Prefer `satisfies` over type annotations when you want both inference and validation.\n\n## Import Type\nAlways use `import type { ... }` for type-only imports. This ensures the import is erased at compile time and avoids accidental runtime dependencies.\n\n## Generic Constraints\nAdd explicit constraints to generic type parameters (`\u003CT extends object>`, `\u003CT extends string>`). Unconstrained generics (`\u003CT>`) accept `null` and `undefined` unless strictness flags prevent it, and reduce IDE assistance.\n\n## Result Pattern\nModel recoverable errors as `Result\u003CT, E>` discriminated unions instead of throwing exceptions or returning `null`. Reserve `throw` for truly unrecoverable programmer errors. This makes error paths explicit and type-safe.\n\n## No Type Assertions\nAvoid `value as SomeType` assertions. They suppress compiler errors and lie about the type of a value. Use type guards (`function isFoo(v: unknown): v is Foo`) or narrowing instead. The only acceptable assertion is `as unknown as T` when bridging intentionally incompatible types with a documented reason.\n\n## Folder Organization\nPlace all shared types in a dedicated `types\u002F` folder at the appropriate scope (feature-level or module-level). Co-locate types that are only used by a single module next to that module. Never scatter type declarations across implementation files.\n","# TypeScript Skill\n\n## Compiler Strictness\nFor new TypeScript configurations, enable `strict: true`, `noUncheckedIndexedAccess`, and\n`exactOptionalPropertyTypes`. Before enabling them in an existing project, assess compatibility,\nplan the migration, and preserve the project's agreed compiler baseline. These flags catch many\nruntime type errors at compile time.\n\n## Unknown Over Any\nPrefer `unknown` over `any`. When a value's type is truly unknown, require an explicit type guard or narrowing before use. `any` silently disables type checking and must never appear in production code without a documented justification.\n\n## Runtime Validation\nValidate all external data (API responses, user input, environment variables) at the boundary using a schema library such as Zod or Valibot. TypeScript types alone do not protect against malformed runtime data.\n\n## Discriminated Unions for State\nModel state machines and variants with discriminated unions (`{ kind: \"success\"; value: T } | { kind: \"error\"; message: string }`). Never use boolean flags or optional fields to represent mutually exclusive states.\n\n## Interface vs Type\nUse `interface` for object shapes that may be extended or implemented by classes. Use `type` for unions, intersections, mapped types, and aliases for primitives. Do not use `interface` for union types.\n\n## Utility Types First\nExhaust TypeScript's built-in utility types (`Partial`, `Required`, `Pick`, `Omit`, `Readonly`, `Record`, `ReturnType`, `Parameters`, etc.) before creating new types. Custom mapped types should be a last resort.\n\n## Const and Satisfies\nUse `as const` to freeze literal values and narrow their types. Use `satisfies` to validate that a value conforms to a type without widening it. Prefer `satisfies` over type annotations when you want both inference and validation.\n\n## Import Type\nAlways use `import type { ... }` for type-only imports. This ensures the import is erased at compile time and avoids accidental runtime dependencies.\n\n## Generic Constraints\nAdd explicit constraints to generic type parameters (`\u003CT extends object>`, `\u003CT extends string>`). Unconstrained generics (`\u003CT>`) accept `null` and `undefined` unless strictness flags prevent it, and reduce IDE assistance.\n\n## Result Pattern\nModel recoverable errors as `Result\u003CT, E>` discriminated unions instead of throwing exceptions or returning `null`. Reserve `throw` for truly unrecoverable programmer errors. This makes error paths explicit and type-safe.\n\n## No Type Assertions\nAvoid `value as SomeType` assertions. They suppress compiler errors and lie about the type of a value. Use type guards (`function isFoo(v: unknown): v is Foo`) or narrowing instead. The only acceptable assertion is `as unknown as T` when bridging intentionally incompatible types with a documented reason.\n\n## Folder Organization\nPlace all shared types in a dedicated `types\u002F` folder at the appropriate scope (feature-level or module-level). Co-locate types that are only used by a single module next to that module. Never scatter type declarations across implementation files.\n",{"name":5,"agents":42,"detect":48,"description":7},[43,44,45,46,47,31,28,27,18],"coder","sidekick-reviewer","architect","feature-designer","feature-reviewer",{"files":49},[50],"tsconfig.json","main","f4f3a02e82412dd181a98c114c6650ec02475d0f","content\u002Fauto-inject-skills\u002Ftypescript",0,"https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade","https:\u002F\u002Fgithub.com\u002FtheCat69","2026-09-14 16:38:37",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add theCat69\u002Fla-briguade --skill typescript",{"tool":64,"command":65},"bunx","bunx skills add theCat69\u002Fla-briguade --skill typescript",{"tool":67,"command":68},"pnpm","pnpm dlx skills add theCat69\u002Fla-briguade --skill typescript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fauto-inject-skills\u002Ftypescript\u002FSKILL.md",true,[],[73,94,109,120,144,157],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":37},"01M6QPPWK5A3WJ1SAYDNR5YD6S","unslop","Perform sequential slop-cleanup edits in bounded changed-file scope with behavior-preserving rules; do not use for read-only scanning.","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Funslop\u002FSKILL.md",[],[75,20,80,81,82,83,84,85,86,87,30,27,88,89,90,91,92,93],"slop","bounded","behavior-preserving","scope","only","use","behavior","read","file","do","cleanup","scanning","with","read-only",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":37},"01M6QPPPQ49KBWSWH3X9D9R17B","unslop-reviewer","Run a read-only, pass-ordered slop scan covering abstraction and locally fixable boundary findings; never edit files.","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Funslop-reviewer\u002FSKILL.md",[],[75,29,101,87,102,103,104,105,80,93,106,107,84,108],"unslop reviewer","sidekick","boundary","run","edit","scan","files","never",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":37},"01M6QPPJA6P2HDC19FFR3FZB7A","unslop-coder","Apply unslop-reviewer findings as targeted in-scope code edits in pass order; do not run discovery\u002Fscanning in this skill.","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Funslop-coder\u002FSKILL.md",[],[75,43,116,117,19,83,89,91,29,118,119,104],"unslop coder","as","discovery","code",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":37},"01M6QPP53KFSKE5KGJBGAKD3WW","serena","Semantic code retrieval, editing, refactoring and debugging tools using LSP servers","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fserena\u002FSKILL.md",[],[122,127,128,129,130,131,132,133,27,134,135,136,137,138,119,139,140,141,142,143],"server","mcp-server","retrieval","false","project","local","lsp","editing","refactoring","open","debugging tools","https","debugging","web","dashboard","github","MCP",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":37},"01M6QPP2M71X18ENVM3R3B6D10","read-image","guidance to read images in a lightweight fashion using cwebp","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fread-image\u002FSKILL.md",[],[151,87,152,27,18,28,43,153,154,155,156],"read image","image","images","fashion","cwebp","guidance",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":37},"01M6QPNWCSF2V8AGS8KH9D6A54","playwright-cli","Drive browser UI checks with playwright-cli commands, snapshots, and test\u002Fdebug workflows; do not use for backend-only or non-browser tasks.","https:\u002F\u002Fgithub.com\u002FtheCat69\u002Fla-briguade\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fplaywright-cli\u002FSKILL.md",[],[164,165,166,27,159,20,92,167,89,168,84,169,85,43,170,171,172,173,174,175],"playwright","cli","playwright cli","commands","snapshots","backend","ui","browser","tasks","debug","workflows","test"]