[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6WYZXDW3G0PERNH7EN2S7Q7":3,"skill-same:01M6WYZXDW3G0PERNH7EN2S7Q7":79},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":6,"updatedAt":64,"install":65,"resources":78},"01M6WYZXDW3G0PERNH7EN2S7Q7","typescript-pro",null,"Implements advanced TypeScript type systems, creates custom type guards, utility types, and branded types, and configures tRPC for end-to-end type safety. Use when building TypeScript applications requiring advanced generics, conditional or mapped types, discriminated unions, monorepo setup, or full-stack type safety with tRPC.","PIXARTSeu\u002FSynapse","PIXARTSeu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F274446381?v=4","01M6RB4XPN9YBZCRY4FVN9PJCT","Pixarts ","01M6RB4XTF8G9KHQEMC21FGDKD",12,"MIT","https:\u002F\u002Fgithub.com\u002FPIXARTSeu\u002FSynapse\u002Fblob\u002Fmain\u002Fpackages\u002Fcodegraph\u002Fdata\u002Flifecycle-skills\u002Ftypescript-pro\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"typescript pro","pro","typescript","full","when","custom","for","advanced","types","trpc","utility","end","monorepo","stack","designer","api","applications","Safety","Type Safety","code","2026-11-10 10:12:30",false,"---\nname: typescript-pro\ndescription: Implements advanced TypeScript type systems, creates custom type guards, utility types, and branded types, and configures tRPC for end-to-end type safety. Use when building TypeScript applications requiring advanced generics, conditional or mapped types, discriminated unions, monorepo setup, or full-stack type safety with tRPC.\nlicense: MIT\nmetadata:\n  author: https:\u002F\u002Fgithub.com\u002FJeffallan\n  version: \"1.1.0\"\n  domain: language\n  triggers: TypeScript, generics, type safety, conditional types, mapped types, tRPC, tsconfig, type guards, discriminated unions\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: fullstack-guardian, api-designer\n---\n\n# TypeScript Pro\n\n## Core Workflow\n\n1. **Analyze type architecture** - Review tsconfig, type coverage, build performance\n2. **Design type-first APIs** - Create branded types, generics, utility types\n3. **Implement with type safety** - Write type guards, discriminated unions, conditional types; run `tsc --noEmit` to catch type errors before proceeding\n4. **Optimize build** - Configure project references, incremental compilation, tree shaking; re-run `tsc --noEmit` to confirm zero errors after changes\n5. **Test types** - Confirm type coverage with a tool like `type-coverage`; validate that all public APIs have explicit return types; iterate on steps 3–4 until all checks pass\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Advanced Types | `references\u002Fadvanced-types.md` | Generics, conditional types, mapped types, template literals |\n| Type Guards | `references\u002Ftype-guards.md` | Type narrowing, discriminated unions, assertion functions |\n| Utility Types | `references\u002Futility-types.md` | Partial, Pick, Omit, Record, custom utilities |\n| Configuration | `references\u002Fconfiguration.md` | tsconfig options, strict mode, project references |\n| Patterns | `references\u002Fpatterns.md` | Builder pattern, factory pattern, type-safe APIs |\n\n## Code Examples\n\n### Branded Types\n```typescript\n\u002F\u002F Branded type for domain modeling\ntype Brand\u003CT, B extends string> = T & { readonly __brand: B };\ntype UserId  = Brand\u003Cstring, \"UserId\">;\ntype OrderId = Brand\u003Cnumber, \"OrderId\">;\n\nconst toUserId  = (id: string): UserId  => id as UserId;\nconst toOrderId = (id: number): OrderId => id as OrderId;\n\n\u002F\u002F Usage — prevents accidental id mix-ups at compile time\nfunction getOrder(userId: UserId, orderId: OrderId) { \u002F* ... *\u002F }\n```\n\n### Discriminated Unions & Type Guards\n```typescript\ntype LoadingState = { status: \"loading\" };\ntype SuccessState = { status: \"success\"; data: string[] };\ntype ErrorState   = { status: \"error\";   error: Error };\ntype RequestState = LoadingState | SuccessState | ErrorState;\n\n\u002F\u002F Type predicate guard\nfunction isSuccess(state: RequestState): state is SuccessState {\n  return state.status === \"success\";\n}\n\n\u002F\u002F Exhaustive switch with discriminated union\nfunction renderState(state: RequestState): string {\n  switch (state.status) {\n    case \"loading\": return \"Loading…\";\n    case \"success\": return state.data.join(\", \");\n    case \"error\":   return state.error.message;\n    default: {\n      const _exhaustive: never = state;\n      throw new Error(`Unhandled state: ${_exhaustive}`);\n    }\n  }\n}\n```\n\n### Custom Utility Types\n```typescript\n\u002F\u002F Deep readonly — immutable nested objects\ntype DeepReadonly\u003CT> = {\n  readonly [K in keyof T]: T[K] extends object ? DeepReadonly\u003CT[K]> : T[K];\n};\n\n\u002F\u002F Require exactly one of a set of keys\ntype RequireExactlyOne\u003CT, Keys extends keyof T = keyof T> =\n  Pick\u003CT, Exclude\u003Ckeyof T, Keys>> &\n  { [K in Keys]-?: Required\u003CPick\u003CT, K>> & Partial\u003CRecord\u003CExclude\u003CKeys, K>, never>> }[Keys];\n```\n\n### Recommended tsconfig.json\n```json\n{\n  \"compilerOptions\": {\n    \"target\": \"ES2022\",\n    \"module\": \"NodeNext\",\n    \"moduleResolution\": \"NodeNext\",\n    \"strict\": true,\n    \"noUncheckedIndexedAccess\": true,\n    \"noImplicitOverride\": true,\n    \"exactOptionalPropertyTypes\": true,\n    \"isolatedModules\": true,\n    \"declaration\": true,\n    \"declarationMap\": true,\n    \"incremental\": true,\n    \"skipLibCheck\": false\n  }\n}\n```\n\n## Constraints\n\n### MUST DO\n- Enable strict mode with all compiler flags\n- Use type-first API design\n- Implement branded types for domain modeling\n- Use `satisfies` operator for type validation\n- Create discriminated unions for state machines\n- Use `Annotated` pattern with type predicates\n- Generate declaration files for libraries\n- Optimize for type inference\n\n### MUST NOT DO\n- Use explicit `any` without justification\n- Skip type coverage for public APIs\n- Mix type-only and value imports\n- Disable strict null checks\n- Use `as` assertions without necessity\n- Ignore compiler performance warnings\n- Skip declaration file generation\n- Use enums (prefer const objects with `as const`)\n\n## Output Templates\n\nWhen implementing TypeScript features, provide:\n1. Type definitions (interfaces, types, generics)\n2. Implementation with type guards\n3. tsconfig configuration if needed\n4. Brief explanation of type design decisions\n\n## Knowledge Reference\n\nTypeScript 5.0+, generics, conditional types, mapped types, template literal types, discriminated unions, type guards, branded types, tRPC, project references, incremental compilation, declaration files, const assertions, satisfies operator\n","# TypeScript Pro\n\n## Core Workflow\n\n1. **Analyze type architecture** - Review tsconfig, type coverage, build performance\n2. **Design type-first APIs** - Create branded types, generics, utility types\n3. **Implement with type safety** - Write type guards, discriminated unions, conditional types; run `tsc --noEmit` to catch type errors before proceeding\n4. **Optimize build** - Configure project references, incremental compilation, tree shaking; re-run `tsc --noEmit` to confirm zero errors after changes\n5. **Test types** - Confirm type coverage with a tool like `type-coverage`; validate that all public APIs have explicit return types; iterate on steps 3–4 until all checks pass\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Advanced Types | `references\u002Fadvanced-types.md` | Generics, conditional types, mapped types, template literals |\n| Type Guards | `references\u002Ftype-guards.md` | Type narrowing, discriminated unions, assertion functions |\n| Utility Types | `references\u002Futility-types.md` | Partial, Pick, Omit, Record, custom utilities |\n| Configuration | `references\u002Fconfiguration.md` | tsconfig options, strict mode, project references |\n| Patterns | `references\u002Fpatterns.md` | Builder pattern, factory pattern, type-safe APIs |\n\n## Code Examples\n\n### Branded Types\n```typescript\n\u002F\u002F Branded type for domain modeling\ntype Brand\u003CT, B extends string> = T & { readonly __brand: B };\ntype UserId  = Brand\u003Cstring, \"UserId\">;\ntype OrderId = Brand\u003Cnumber, \"OrderId\">;\n\nconst toUserId  = (id: string): UserId  => id as UserId;\nconst toOrderId = (id: number): OrderId => id as OrderId;\n\n\u002F\u002F Usage — prevents accidental id mix-ups at compile time\nfunction getOrder(userId: UserId, orderId: OrderId) { \u002F* ... *\u002F }\n```\n\n### Discriminated Unions & Type Guards\n```typescript\ntype LoadingState = { status: \"loading\" };\ntype SuccessState = { status: \"success\"; data: string[] };\ntype ErrorState   = { status: \"error\";   error: Error };\ntype RequestState = LoadingState | SuccessState | ErrorState;\n\n\u002F\u002F Type predicate guard\nfunction isSuccess(state: RequestState): state is SuccessState {\n  return state.status === \"success\";\n}\n\n\u002F\u002F Exhaustive switch with discriminated union\nfunction renderState(state: RequestState): string {\n  switch (state.status) {\n    case \"loading\": return \"Loading…\";\n    case \"success\": return state.data.join(\", \");\n    case \"error\":   return state.error.message;\n    default: {\n      const _exhaustive: never = state;\n      throw new Error(`Unhandled state: ${_exhaustive}`);\n    }\n  }\n}\n```\n\n### Custom Utility Types\n```typescript\n\u002F\u002F Deep readonly — immutable nested objects\ntype DeepReadonly\u003CT> = {\n  readonly [K in keyof T]: T[K] extends object ? DeepReadonly\u003CT[K]> : T[K];\n};\n\n\u002F\u002F Require exactly one of a set of keys\ntype RequireExactlyOne\u003CT, Keys extends keyof T = keyof T> =\n  Pick\u003CT, Exclude\u003Ckeyof T, Keys>> &\n  { [K in Keys]-?: Required\u003CPick\u003CT, K>> & Partial\u003CRecord\u003CExclude\u003CKeys, K>, never>> }[Keys];\n```\n\n### Recommended tsconfig.json\n```json\n{\n  \"compilerOptions\": {\n    \"target\": \"ES2022\",\n    \"module\": \"NodeNext\",\n    \"moduleResolution\": \"NodeNext\",\n    \"strict\": true,\n    \"noUncheckedIndexedAccess\": true,\n    \"noImplicitOverride\": true,\n    \"exactOptionalPropertyTypes\": true,\n    \"isolatedModules\": true,\n    \"declaration\": true,\n    \"declarationMap\": true,\n    \"incremental\": true,\n    \"skipLibCheck\": false\n  }\n}\n```\n\n## Constraints\n\n### MUST DO\n- Enable strict mode with all compiler flags\n- Use type-first API design\n- Implement branded types for domain modeling\n- Use `satisfies` operator for type validation\n- Create discriminated unions for state machines\n- Use `Annotated` pattern with type predicates\n- Generate declaration files for libraries\n- Optimize for type inference\n\n### MUST NOT DO\n- Use explicit `any` without justification\n- Skip type coverage for public APIs\n- Mix type-only and value imports\n- Disable strict null checks\n- Use `as` assertions without necessity\n- Ignore compiler performance warnings\n- Skip declaration file generation\n- Use enums (prefer const objects with `as const`)\n\n## Output Templates\n\nWhen implementing TypeScript features, provide:\n1. Type definitions (interfaces, types, generics)\n2. Implementation with type guards\n3. tsconfig configuration if needed\n4. Brief explanation of type design decisions\n\n## Knowledge Reference\n\nTypeScript 5.0+, generics, conditional types, mapped types, template literal types, discriminated unions, type guards, branded types, tRPC, project references, incremental compilation, declaration files, const assertions, satisfies operator\n",{"name":5,"license":15,"metadata":49,"description":7},{"role":50,"scope":51,"author":52,"domain":53,"version":54,"triggers":55,"output-format":43,"related-skills":56},"specialist","implementation","https:\u002F\u002Fgithub.com\u002FJeffallan","language","1.1.0","TypeScript, generics, type safety, conditional types, mapped types, tRPC, tsconfig, type guards, discriminated unions","fullstack-guardian, api-designer","main","c19c0bc0a04d25a849ce749fe88250e688f06437","packages\u002Fcodegraph\u002Fdata\u002Flifecycle-skills\u002Ftypescript-pro",1,"https:\u002F\u002Fgithub.com\u002FPIXARTSeu\u002FSynapse","https:\u002F\u002Fgithub.com\u002FPIXARTSeu","https:\u002F\u002Fpixarts.eu\u002F","2026-09-24 06:30:45",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add PIXARTSeu\u002FSynapse --skill typescript-pro",{"tool":71,"command":72},"bunx","bunx skills add PIXARTSeu\u002FSynapse --skill typescript-pro",{"tool":74,"command":75},"pnpm","pnpm dlx skills add PIXARTSeu\u002FSynapse --skill typescript-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPIXARTSeu\u002FSynapse\u002Fblob\u002Fmain\u002Fpackages\u002Fcodegraph\u002Fdata\u002Flifecycle-skills\u002Ftypescript-pro\u002FSKILL.md",true,[],[80,111,118,143,167,192],{"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":92,"publishedAt":44},"01M6X0ECZKGP44NP2JW588B9RG","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002FPIXARTSeu\u002FSynapse\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[86,91],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[93,94,95,96,97,98,99,100,101,102,103,43,104,105,106,107,108,109,110,28],"react","vercel react best practices","best practices","react best practices","vercel","writing","performance","components","react components","guidelines","tasks","Optimization","data","refactoring","patterns","next","triggers","data fetching",{"skillNo":112,"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":113,"categories":114,"keywords":117,"publishedAt":44},"01M6X05WCVH879XKZEAQ15PHQX","https:\u002F\u002Fgithub.com\u002FPIXARTSeu\u002FSynapse\u002Fblob\u002Fmain\u002Fpackages\u002Fcodegraph\u002Fdata\u002Fskill\u002Fvercel-react-best-practices\u002FSKILL.md",[115,116],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[93,94,95,96,97,98,99,100,101,102,103,43,104,105,106,107,108,109,110,28],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":128,"publishedAt":44},"01M6WZ286AR2SYE9GZYVW0CNYG","wordpress-pro","Develops custom WordPress themes and plugins, creates and registers Gutenberg blocks and block patterns, configures WooCommerce stores, implements WordPress REST API endpoints, applies security hardening (nonces, sanitization, escaping, capability checks), and optimizes performance through caching and query tuning. Use when building WordPress themes, writing plugins, customizing Gutenberg blocks, extending WooCommerce, working with ACF, using the WordPress REST API, applying hooks and filters, or improving WordPress performance and security.","https:\u002F\u002Fgithub.com\u002FPIXARTSeu\u002FSynapse\u002Fblob\u002Fmain\u002Fpackages\u002Fcodegraph\u002Fdata\u002Flifecycle-skills\u002Fwordpress-pro\u002FSKILL.md",[124,127],{"categoryNo":125,"categoryName":126,"taxonomyType":89,"taxonomyTypeDesc":90},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[129,130,25,98,131,99,43,132,39,133,134,135,136,137,138,139,140,141,142,28],"wordpress","wordpress pro","security","tuning","laravel","reviewer","hooks","filters","expert","query","woocommerce","caching","themes","sanitization",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":151,"publishedAt":44},"01M6WZ1ZVG6PJ4PVN9RTK0BX7Z","websocket-engineer","Use when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence tracking, room management.","https:\u002F\u002Fgithub.com\u002FPIXARTSeu\u002FSynapse\u002Fblob\u002Fmain\u002Fpackages\u002Fcodegraph\u002Fdata\u002Flifecycle-skills\u002Fwebsocket-engineer\u002FSKILL.md",[149,150],{"categoryNo":125,"categoryName":126,"taxonomyType":89,"taxonomyTypeDesc":90},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[152,153,154,155,43,156,157,39,134,158,137,159,160,161,162,163,164,165,166,28],"websocket","engineer","websocket engineer","architecture","messaging","monitoring","fastapi","time","scaling","io","communication systems","presence","updates","socket","invoke",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":176,"publishedAt":44},"01M6WZ1G86ZR73H0WNM6CGNRGF","vue-expert","Builds Vue 3 components with Composition API patterns, configures Nuxt 3 SSR\u002FSSG projects, sets up Pinia stores, scaffolds Quasar\u002FCapacitor mobile apps, implements PWA features, and optimises Vite builds. Use when creating Vue 3 applications with Composition API, writing reusable composables, managing state with Pinia, building hybrid mobile apps with Quasar or Capacitor, configuring service workers, or tuning Vite configuration and TypeScript integration.","https:\u002F\u002Fgithub.com\u002FPIXARTSeu\u002FSynapse\u002Fblob\u002Fmain\u002Fpackages\u002Fcodegraph\u002Fdata\u002Flifecycle-skills\u002Fvue-expert\u002FSKILL.md",[173,174,175],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},{"categoryNo":125,"categoryName":126,"taxonomyType":89,"taxonomyTypeDesc":90},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[177,137,178,179,98,26,100,180,40,181,182,183,184,185,186,187,188,189,190,191],"vue","vue expert","frontend","config","Composition","projects","pinia","use","router","workers","mobile","reusable","worker","apps","hybrid",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":200,"publishedAt":44},"01M6WZ1AP3GFCBAMD712X8KRP7","vue-expert-js","Creates Vue 3 components, builds vanilla JS composables, configures Vite projects, and sets up routing and state management using JavaScript only — no TypeScript. Generates JSDoc-typed code with @typedef, @param, and @returns annotations for full type coverage without a TS compiler. Use when building Vue 3 applications with JavaScript only (no TypeScript), when projects require JSDoc-based type hints, when migrating from Vue 2 Options API to Composition API in JS, or when teams prefer vanilla JavaScript, .mjs modules, or need quick prototypes without TypeScript setup.","https:\u002F\u002Fgithub.com\u002FPIXARTSeu\u002FSynapse\u002Fblob\u002Fmain\u002Fpackages\u002Fcodegraph\u002Fdata\u002Flifecycle-skills\u002Fvue-expert-js\u002FSKILL.md",[198,199],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[177,201,137,202,178,179,26,100,43,39,181,182,203,204,205,206,207,208,209,28],"js","vue expert js","coverage","only","up","modules","options","jsdoc","quick"]