[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73CTFEB0S8M0EMMT9TFS626":3,"skill-same:01M73CTFEB0S8M0EMMT9TFS626":76},{"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":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M73CTFEB0S8M0EMMT9TFS626","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.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Ftypescript-pro\u002FSKILL.md",[],[],"2026-11-11 15:11:14",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\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Ftypescript-pro\u002F)\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\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Flanguage\u002Ftypescript-pro\u002F)\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","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Ftypescript-pro",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add roohe\u002Fagentic-super-skills --skill typescript-pro",{"tool":46,"command":47},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill typescript-pro",{"tool":49,"command":50},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill typescript-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Ftypescript-pro\u002FSKILL.md",true,[54,60,64,68,72],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fadvanced-types.md","REFERENCE","参考文档",6449,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Ftypescript-pro\u002Freferences\u002Fadvanced-types.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fconfiguration.md",8965,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Ftypescript-pro\u002Freferences\u002Fconfiguration.md",{"path":65,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fpatterns.md",11213,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Ftypescript-pro\u002Freferences\u002Fpatterns.md",{"path":69,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Ftype-guards.md",7929,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Ftypescript-pro\u002Freferences\u002Ftype-guards.md",{"path":73,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Futility-types.md",8602,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Ftypescript-pro\u002Freferences\u002Futility-types.md",[77,84,91,98,105,112],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\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},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\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},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\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},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\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},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\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},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]