[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M773MW4J5RYBEWTASVWG6HZQ":3,"skill-same:01M773MW4J5RYBEWTASVWG6HZQ":90},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M773MW4J5RYBEWTASVWG6HZQ","typescript-pro",null,"TypeScript expert for advanced type systems, large-scale applications, and type-safe development. Trigger: When writing TypeScript code - types, interfaces, generics, advanced patterns.","davidcoachdev\u002Fdcfiles","davidcoachdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F69812733?v=4","01M758C4BR16TAV1N47W319E9V","David H. Caycedo Blum.","01M758C4CCZA2ZYGA0BGMXCDRH",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: typescript-pro\ndescription: >\n  TypeScript expert for advanced type systems, large-scale applications, and type-safe development.\n  Trigger: When writing TypeScript code - types, interfaces, generics, advanced patterns.\nlicense: Apache-2.0\nmetadata:\n  author: gentleman-programming\n  version: \"1.1\"\n---\n\n## When to Use\n\n- TypeScript development (any level)\n- Advanced type systems and type-level programming\n- Large-scale TypeScript applications\n- Type-safe code patterns\n- Writing types, interfaces, generics\n- Strict mode development\n\n## Core Expertise\n\n### Foundational Patterns (REQUIRED)\n\n#### Const Types Pattern (REQUIRED)\n\n```typescript\n\u002F\u002F ✅ ALWAYS: Create const object first, then extract type\nconst STATUS = {\n  ACTIVE: \"active\",\n  INACTIVE: \"inactive\",\n  PENDING: \"pending\",\n} as const;\n\ntype Status = (typeof STATUS)[keyof typeof STATUS];\n\n\u002F\u002F ❌ NEVER: Direct union types\ntype Status = \"active\" | \"inactive\" | \"pending\";\n```\n\n**Why?** Single source of truth, runtime values, autocomplete, easier refactoring.\n\n#### Flat Interfaces (REQUIRED)\n\n```typescript\n\u002F\u002F ✅ ALWAYS: One level depth, nested objects → dedicated interface\ninterface UserAddress {\n  street: string;\n  city: string;\n}\n\ninterface User {\n  id: string;\n  name: string;\n  address: UserAddress;  \u002F\u002F Reference, not inline\n}\n\ninterface Admin extends User {\n  permissions: string[];\n}\n\n\u002F\u002F ❌ NEVER: Inline nested objects\ninterface User {\n  address: { street: string; city: string };  \u002F\u002F NO!\n}\n```\n\n#### Never Use `any`\n\n```typescript\n\u002F\u002F ✅ Use unknown for truly unknown types\nfunction parse(input: unknown): User {\n  if (isUser(input)) return input;\n  throw new Error(\"Invalid input\");\n}\n\n\u002F\u002F ✅ Use generics for flexible types\nfunction first\u003CT>(arr: T[]): T | undefined {\n  return arr[0];\n}\n\n\u002F\u002F ❌ NEVER\nfunction parse(input: any): any { }\n```\n\n#### Utility Types Quick Reference\n\n```typescript\nPick\u003CUser, \"id\" | \"name\">     \u002F\u002F Select fields\nOmit\u003CUser, \"id\">              \u002F\u002F Exclude fields\nPartial\u003CUser>                 \u002F\u002F All optional\nRequired\u003CUser>                \u002F\u002F All required\nReadonly\u003CUser>                \u002F\u002F All readonly\nRecord\u003Cstring, User>          \u002F\u002F Object type\nExtract\u003CUnion, \"a\" | \"b\">     \u002F\u002F Extract from union\nExclude\u003CUnion, \"a\">           \u002F\u002F Exclude from union\nNonNullable\u003CT | null>         \u002F\u002F Remove null\u002Fundefined\nReturnType\u003Ctypeof fn>         \u002F\u002F Function return type\nParameters\u003Ctypeof fn>         \u002F\u002F Function params tuple\n```\n\n#### Type Guards\n\n```typescript\nfunction isUser(value: unknown): value is User {\n  return (\n    typeof value === \"object\" &&\n    value !== null &&\n    \"id\" in value &&\n    \"name\" in value\n  );\n}\n```\n\n#### Import Types\n\n```typescript\nimport type { User } from \".\u002Ftypes\";\nimport { createUser, type Config } from \".\u002Futils\";\n```\n\n### Advanced Type System\n\n- Conditional types and mapped types\n- Template literal types\n- Recursive types and type inference\n- Discriminated unions and exhaustive checking\n- Generic constraints and variance\n\n### Type-Level Programming\n\n- DeepPartial, DeepReadonly\n- ReturnType inference\n- Template literal types for events\n- Mapped type utilities\n\n### Design Patterns\n\n- Repository pattern with generics\n- Dependency injection\n- Event-driven architectures\n- Factory patterns with type safety\n\n## Best Practices\n\n1. Use strict mode (enable all checks)\n2. Prefer interfaces over types for objects\n3. Use satisfies operator for inference\n4. Implement proper error handling\n5. Extract types to single source of truth\n6. Keep interfaces flat (no nesting)\n\n## Resources\n\nSee `references\u002F` for detailed guides:\n\n- **`references\u002Fadvanced-types.md`** - Const types, flat interfaces, utility types, conditional types\n- **`references\u002Fgenerics-type-safety.md`** - Generic functions, interfaces, constraints, type inference\n\nCode examples in `assets\u002F`:\n- **`assets\u002Ftypescript-patterns-example.ts`** - Complete working examples with const types, interfaces, generics, type guards, mapped types, template literal types\n\n## External Resources\n\n- **Main Docs**: https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\n- **Handbook**: https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002Fintro.html\n- **TypeScript 5.5**: https:\u002F\u002Fdevblogs.microsoft.com\u002Ftypescript\u002Fannouncing-typescript-5-5\u002F","## When to Use\n\n- TypeScript development (any level)\n- Advanced type systems and type-level programming\n- Large-scale TypeScript applications\n- Type-safe code patterns\n- Writing types, interfaces, generics\n- Strict mode development\n\n## Core Expertise\n\n### Foundational Patterns (REQUIRED)\n\n#### Const Types Pattern (REQUIRED)\n\n```typescript\n\u002F\u002F ✅ ALWAYS: Create const object first, then extract type\nconst STATUS = {\n  ACTIVE: \"active\",\n  INACTIVE: \"inactive\",\n  PENDING: \"pending\",\n} as const;\n\ntype Status = (typeof STATUS)[keyof typeof STATUS];\n\n\u002F\u002F ❌ NEVER: Direct union types\ntype Status = \"active\" | \"inactive\" | \"pending\";\n```\n\n**Why?** Single source of truth, runtime values, autocomplete, easier refactoring.\n\n#### Flat Interfaces (REQUIRED)\n\n```typescript\n\u002F\u002F ✅ ALWAYS: One level depth, nested objects → dedicated interface\ninterface UserAddress {\n  street: string;\n  city: string;\n}\n\ninterface User {\n  id: string;\n  name: string;\n  address: UserAddress;  \u002F\u002F Reference, not inline\n}\n\ninterface Admin extends User {\n  permissions: string[];\n}\n\n\u002F\u002F ❌ NEVER: Inline nested objects\ninterface User {\n  address: { street: string; city: string };  \u002F\u002F NO!\n}\n```\n\n#### Never Use `any`\n\n```typescript\n\u002F\u002F ✅ Use unknown for truly unknown types\nfunction parse(input: unknown): User {\n  if (isUser(input)) return input;\n  throw new Error(\"Invalid input\");\n}\n\n\u002F\u002F ✅ Use generics for flexible types\nfunction first\u003CT>(arr: T[]): T | undefined {\n  return arr[0];\n}\n\n\u002F\u002F ❌ NEVER\nfunction parse(input: any): any { }\n```\n\n#### Utility Types Quick Reference\n\n```typescript\nPick\u003CUser, \"id\" | \"name\">     \u002F\u002F Select fields\nOmit\u003CUser, \"id\">              \u002F\u002F Exclude fields\nPartial\u003CUser>                 \u002F\u002F All optional\nRequired\u003CUser>                \u002F\u002F All required\nReadonly\u003CUser>                \u002F\u002F All readonly\nRecord\u003Cstring, User>          \u002F\u002F Object type\nExtract\u003CUnion, \"a\" | \"b\">     \u002F\u002F Extract from union\nExclude\u003CUnion, \"a\">           \u002F\u002F Exclude from union\nNonNullable\u003CT | null>         \u002F\u002F Remove null\u002Fundefined\nReturnType\u003Ctypeof fn>         \u002F\u002F Function return type\nParameters\u003Ctypeof fn>         \u002F\u002F Function params tuple\n```\n\n#### Type Guards\n\n```typescript\nfunction isUser(value: unknown): value is User {\n  return (\n    typeof value === \"object\" &&\n    value !== null &&\n    \"id\" in value &&\n    \"name\" in value\n  );\n}\n```\n\n#### Import Types\n\n```typescript\nimport type { User } from \".\u002Ftypes\";\nimport { createUser, type Config } from \".\u002Futils\";\n```\n\n### Advanced Type System\n\n- Conditional types and mapped types\n- Template literal types\n- Recursive types and type inference\n- Discriminated unions and exhaustive checking\n- Generic constraints and variance\n\n### Type-Level Programming\n\n- DeepPartial, DeepReadonly\n- ReturnType inference\n- Template literal types for events\n- Mapped type utilities\n\n### Design Patterns\n\n- Repository pattern with generics\n- Dependency injection\n- Event-driven architectures\n- Factory patterns with type safety\n\n## Best Practices\n\n1. Use strict mode (enable all checks)\n2. Prefer interfaces over types for objects\n3. Use satisfies operator for inference\n4. Implement proper error handling\n5. Extract types to single source of truth\n6. Keep interfaces flat (no nesting)\n\n## Resources\n\nSee `references\u002F` for detailed guides:\n\n- **`references\u002Fadvanced-types.md`** - Const types, flat interfaces, utility types, conditional types\n- **`references\u002Fgenerics-type-safety.md`** - Generic functions, interfaces, constraints, type inference\n\nCode examples in `assets\u002F`:\n- **`assets\u002Ftypescript-patterns-example.ts`** - Complete working examples with const types, interfaces, generics, type guards, mapped types, template literal types\n\n## External Resources\n\n- **Main Docs**: https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\n- **Handbook**: https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002Fintro.html\n- **TypeScript 5.5**: https:\u002F\u002Fdevblogs.microsoft.com\u002Ftypescript\u002Fannouncing-typescript-5-5\u002F",{"name":5,"license":15,"metadata":24,"description":27},{"author":25,"version":26},"gentleman-programming","1.1","TypeScript expert for advanced type systems, large-scale applications, and type-safe development. Trigger: When writing TypeScript code - types, interfaces, generics, advanced patterns.\n","main","5dc86f90a5cbe45db3acd917825461b3ed6937fb","config\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro",0,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev","🌐 Apasionado por crear soluciones web escalables y eficientes. \r\n🧑‍🏫 Coach Dev.\r\n💻 Frontend Dev. \r\n🎚️Backend Dev.\r\n📊 Agile\u002FScrum.\r\n🚀100% remoto.","2026-08-26 07:28:05",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add davidcoachdev\u002Fdcfiles --skill typescript-pro",{"tool":42,"command":43},"bunx","bunx skills add davidcoachdev\u002Fdcfiles --skill typescript-pro",{"tool":45,"command":46},"pnpm","pnpm dlx skills add davidcoachdev\u002Fdcfiles --skill typescript-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002FSKILL.md",true,[50,56,62,66,70,74,78,82,86],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},".skill-meta.json","REFERENCE","参考文档",499,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002F.skill-meta.json",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"assets\u002F01-advanced-types.ts","SCRIPT","脚本",375,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002Fassets\u002F01-advanced-types.ts",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"assets\u002Ftypescript-patterns-example.ts",1539,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002Fassets\u002Ftypescript-patterns-example.ts",{"path":67,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":68,"sourceHtmlUrl":69},"README.md",1931,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002FREADME.md",{"path":71,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002F01-advanced-types.md",261,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002Freferences\u002F01-advanced-types.md",{"path":75,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002F02-generics.md",269,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002Freferences\u002F02-generics.md",{"path":79,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002F03-utility-types.md",240,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002Freferences\u002F03-utility-types.md",{"path":83,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fadvanced-types.md",1110,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002Freferences\u002Fadvanced-types.md",{"path":87,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fgenerics-type-safety.md",1278,"https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Ftypescript-pro\u002Freferences\u002Fgenerics-type-safety.md",[91,98,105,112,120,127],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7740FETMZY1VTYAEFY1TWY7","zustand-5","Zustand 5 state management patterns. Trigger: When managing React state with Zustand.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzustand-5\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M773ZZM9V68SA1AKP4WF4J29","zod-4","Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fzod-4\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M773ZJFR90CQAY0N9QR40QVP","x-bookmark-quote-posts","Workflow para revisar bookmarks de X\u002FTwitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fx-bookmark-quote-posts\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":116,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M773Z2RGV3786FV310SDB0YD","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","MIT","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":116,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M773YJH3KDSW467CSS63CSRJ","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":19},"01M773Y3S3H2CPRK5S8YFHWB5C","work-unit-commits","Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.","https:\u002F\u002Fgithub.com\u002Fdavidcoachdev\u002Fdcfiles\u002Fblob\u002Fmain\u002Fconfig\u002F.config\u002Fopencode\u002Fskills\u002Fwork-unit-commits\u002FSKILL.md",[],[]]