[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EARBNC37P86X4Y8MBDM3J6":3,"skill-same:01M7EARBNC37P86X4Y8MBDM3J6":74},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":13,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M7EARBNC37P86X4Y8MBDM3J6","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.","infinityplatformhub\u002Fopencode-gen","infinityplatformhub","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F254854803?v=4","01M7EAN7RB68HJBYF1V0TEYCE1","01M7EAN7SDY3K98M6J16DQNQ5Y",0,"MIT","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Ftypescript-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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":14,"metadata":23,"description":7},{"role":24,"scope":25,"author":26,"domain":27,"version":28,"triggers":29,"output-format":30,"related-skills":31},"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","code","fullstack-guardian, api-designer","master","630f92e7d70ca0702a45824c77b5ea1ec042fa81","skills-library\u002F_cache\u002Ftypescript-pro","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub","2026-10-09 11:55:04",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add infinityplatformhub\u002Fopencode-gen --skill typescript-pro",{"tool":44,"command":45},"bunx","bunx skills add infinityplatformhub\u002Fopencode-gen --skill typescript-pro",{"tool":47,"command":48},"pnpm","pnpm dlx skills add infinityplatformhub\u002Fopencode-gen --skill typescript-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Ftypescript-pro\u002FSKILL.md",true,[52,58,62,66,70],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fadvanced-types.md","REFERENCE","参考文档",6449,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Ftypescript-pro\u002Freferences\u002Fadvanced-types.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fconfiguration.md",8965,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Ftypescript-pro\u002Freferences\u002Fconfiguration.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fpatterns.md",11213,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Ftypescript-pro\u002Freferences\u002Fpatterns.md",{"path":67,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Ftype-guards.md",7929,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Ftypescript-pro\u002Freferences\u002Ftype-guards.md",{"path":71,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Futility-types.md",8602,"https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Ftypescript-pro\u002Freferences\u002Futility-types.md",[75,84,91,98,105,112],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7EAR4SD7KJGZMH3Z280KYC6","security-audit","Security code review for vulnerabilities. Use when asked to \"security review\", \"find vulnerabilities\", \"check for security issues\", \"audit security\", \"OWASP review\", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.","CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fsecurity-audit\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M7EAQXCT9TT975X8TY460Q1Z","react-expert","Use when building React 18+ applications in .jsx or .tsx files, Next.js App Router projects, or create-react-app setups. Creates components, implements custom hooks, debugs rendering issues, migrates class components to functional, and implements state management. Invoke for Server Components, Suspense boundaries, useActionState forms, performance optimization, or React 19 features.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Freact-expert\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M7EAQPPXJYHMN5WG8X5GYK5V","python-pro","Use when building Python 3.11+ applications requiring type safety, async programming, or robust error handling. Generates type-annotated Python code, configures mypy in strict mode, writes pytest test suites with fixtures and mocking, and validates code with black and ruff. Invoke for type hints, async\u002Fawait patterns, dataclasses, dependency injection, logging configuration, and structured error handling.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fpython-pro\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":18},"01M7EAQFW1N62N8P6S6A1G9X1P","php-pro","Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks. Invokes strict typing, PHPStan level 9, async patterns with Swoole, and PSR standards. Creates controllers, configures middleware, generates migrations, writes PHPUnit\u002FPest tests, defines typed DTOs and value objects, sets up dependency injection, and scaffolds REST\u002FGraphQL APIs. Use when working with Eloquent, Doctrine, Composer, Psalm, ReactPHP, or any PHP API development.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fphp-pro\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":18},"01M7EAQ45FDXE4CYKD59813QM7","nextjs-developer","Use when building Next.js 14+ applications with App Router, server components, or server actions. Invoke to configure route handlers, implement middleware, set up API routes, add streaming SSR, write generateMetadata for SEO, scaffold loading.tsx\u002Ferror.tsx boundaries, or deploy to Vercel. Triggers on: Next.js, Next.js 14, App Router, RSC, use server, Server Components, Server Actions, React Server Components, generateMetadata, loading.tsx, Next.js deployment, Vercel, Next.js performance.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Fnextjs-developer\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":18},"01M7EAPWMXHSN8BHZ99XDRBYX8","laravel-specialist","Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers, implementing Sanctum auth flows, building Livewire components, optimising Eloquent queries, or writing Pest\u002FPHPUnit tests for Laravel features.","https:\u002F\u002Fgithub.com\u002Finfinityplatformhub\u002Fopencode-gen\u002Fblob\u002Fmaster\u002Fskills-library\u002F_cache\u002Flaravel-specialist\u002FSKILL.md",[],[]]