[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77Q1XWR1RX3FQR2DEP525D6":3,"skill-same:01M77Q1XWR1RX3FQR2DEP525D6":49},{"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":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M77Q1XWR1RX3FQR2DEP525D6","typescript",null,"TypeScript strict patterns and best practices. Trigger: When writing TypeScript code - types, interfaces, generics.","janpereira-dev\u002FskillsCurate","janpereira-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6440548?v=4","01M6KKKXBFFK7QF5Y2JFXN35FF","Jan Pereira","01M77ND31QCT5KM25E1SW71M8F",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fagent-hub\u002Fruntime\u002Ftrusted\u002Ftypescript\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: typescript\ndescription: >\n  TypeScript strict patterns and best practices.\n  Trigger: When writing TypeScript code - types, interfaces, generics.\nlicense: Apache-2.0\nmetadata:\n  author: gentleman-programming\n  version: \"1.0\"\n---\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\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## Keywords\ntypescript, ts, types, interfaces, generics, strict mode, utility types\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\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## Keywords\ntypescript, ts, types, interfaces, generics, strict mode, utility types\n",{"name":5,"license":15,"metadata":24,"description":27},{"author":25,"version":26},"gentleman-programming","1.0","TypeScript strict patterns and best practices. Trigger: When writing TypeScript code - types, interfaces, generics.\n","main","ba43a4e7e8b0fd6b150b14bcb48978ec40879a28",".agents\u002Fagent-hub\u002Fruntime\u002Ftrusted\u002Ftypescript","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev","IT Leader, Scrum Master, FullStack Developer, SEO\u002FSEM Master #Angular #React\r\n","2026-07-13 03:04:32",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add janpereira-dev\u002FskillsCurate --skill typescript",{"tool":41,"command":42},"bunx","bunx skills add janpereira-dev\u002FskillsCurate --skill typescript",{"tool":44,"command":45},"pnpm","pnpm dlx skills add janpereira-dev\u002FskillsCurate --skill typescript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fagent-hub\u002Fruntime\u002Ftrusted\u002Ftypescript\u002FSKILL.md",true,[],[50,57,64,71,79,87],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M77T9KN6TEJMPPTQZDEB4K61","zustand-5","Zustand 5 state management patterns. Trigger: When managing React state with Zustand.","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzustand-5\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M77T9GN2GABPPWDGDCXJ6QWK","zod-4","Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzod-4\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M77T98A9R6PK155P71VX9MND","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\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwork-unit-commits\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M77T9505TGQGWHGAYVXGE2KS","web-quality-audit","Comprehensive web quality audit covering performance, accessibility, SEO, and best practices. Use when asked to \"audit my site\", \"review web quality\", \"run lighthouse audit\", \"check page quality\", or \"optimize my website\".","MIT","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-quality-audit\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M77T8YRVRNK8W4MG63XM80NK","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M77T8CEPQFZRRNGBYZX46P4Y","vercel-react-view-transitions","Guide for implementing smooth, native-feeling animations using React's View Transition API (`\u003CViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter\u002Fexit of components, animate list reorder, implement directional (forward\u002Fback) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.","https:\u002F\u002Fgithub.com\u002Fjanpereira-dev\u002FskillsCurate\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-react-view-transitions\u002FSKILL.md",[],[]]