[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EX8C6S8V8RETAF4K63JZC8":3,"skill-same:01M7EX8C6S8V8RETAF4K63JZC8":53},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7EX8C6S8V8RETAF4K63JZC8","typescript",null,"Write clean, efficient TypeScript code that follows project conventions and advanced type patterns. Use when writing or reviewing TypeScript code, defining types, creating generics, handling errors, or working with React components, Zod schemas, and TanStack libraries.","Phenomenon-Studio\u002Fphenomenon-configs","Phenomenon-Studio","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F85674486?v=4","01M7EX2X2JF76C91JB202QMQHW","Phenomenon studio","01M7EX2X37T2C5FBHAH4B60YMX",1,"MIT","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Fexamples\u002Fvite\u002F.claude\u002Fskills\u002Ftypescript\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: typescript\ndescription: Write clean, efficient TypeScript code that follows project conventions and advanced type patterns. Use when writing or reviewing TypeScript code, defining types, creating generics, handling errors, or working with React components, Zod schemas, and TanStack libraries.\nuser-invocable: false\n---\n\n# TypeScript\n\nTypes are a **correctness and clarity tool** — reduce bugs, reduce cognitive load, no ceremony.\n\n## Compiler & Lint Constraints\n\n- `strict: true` — all strict checks enabled\n- `verbatimModuleSyntax: true` — always use `import type` for type-only imports\n- `erasableSyntaxOnly: true` — **no `enum`, no parameter properties, no namespaces**\n- `consistent-type-imports: \"error\"` — enforced by ESLint\n- `noUnusedLocals` \u002F `noUnusedParameters` — prefix intentionally unused with `_`\n- Target\u002Flib: **ES2022**, JSX: `react-jsx`. ES2022 = exact API ceiling for Vite `baseline-widely-available` (Vite 8: chrome111 \u002F edge111 \u002F firefox114 \u002F safari16.4). No polyfills — **no ES2023+ APIs** (`toSorted`, `toReversed`, `with`, `Object.groupBy`, `Promise.withResolvers`, …). Same ceiling: `ecmaVersion: 2022` (eslint.config.js). Bump all together, re-check every Vite major\n\n## Core Rules\n\n- **PREFER** `type` aliases for all type definitions\n- Use `interface` only for declaration merging (e.g., TanStack `Register` augmentation)\n- **AVOID** `any` — use `unknown` and narrow with type guards\n- **AVOID** `enum` — use union types or `as const` objects with `ObjValues\u003Ctypeof X>` extraction\n- **AVOID** non-null assertions (`!`) unless no alternative exists\n- Let TypeScript **infer** when inference is clear and stable\n- Use **explicit return types** for exported\u002Fpublic functions\n- Use `satisfies` to validate values against types without widening\n\n## Constants Pattern\n\n```ts\nexport const STATUS = { active: 'active', inactive: 'inactive' } as const;\nexport type Status = ObjValues\u003Ctypeof STATUS>; \u002F\u002F 'active' | 'inactive'\n```\n\n## React Component Props\n\n```ts\n\u002F\u002F Extend HTML elements\ntype ButtonProps = { isLoading?: boolean } & React.ComponentProps\u003C'button'>;\n\u002F\u002F Narrow with Omit\u002FPick\ntype PasswordInputProps = Omit\u003CInputProps, 'type'>;\n\u002F\u002F Compose with variants\ntype BadgeProps = React.ComponentProps\u003C'span'> & VariantProps\u003Ctypeof badgeVariants>;\n```\n\n- Use `React.ComponentProps\u003C'element'>` — not `HTMLAttributes`\n- Use `React.PropsWithChildren` when only children are needed\n- Never use `React.FC` with props — use function declarations with typed params\n\n## Zod Schema Inference\n\n```ts\nexport type LoginSchema = z.infer\u003Ctypeof loginSchema>;\nexport const loginSchema = z.object({ email: z.email(), password: z.string().min(8) });\n```\n\nAlways export the inferred type **above** the schema for colocation.\n\n## Error Handling\n\n- Type errors explicitly with `BaseErrorData\u003CTData>`\n- Use `instanceof` type guards for error narrowing (`HTTPError`, `Error`)\n- Handle form errors via `formApi.setErrorMap` with typed field error maps\n- Never swallow errors with broad `catch` — narrow and handle\n\n## Nullability\n\n- Handle `null`\u002F`undefined` explicitly via control flow narrowing\n- Prefer `??` (nullish coalescing) over `||` for defaults\n- Use optional chaining (`?.`) — avoid deep nested null checks\n- Early-return pattern for optional parameters\n\n## Advanced Patterns\n\nFor generics, conditional types, mapped types, template literals, discriminated unions, type guards, and repo-specific patterns see [REFERENCE.md](mdc:REFERENCE.md).\n","# TypeScript\n\nTypes are a **correctness and clarity tool** — reduce bugs, reduce cognitive load, no ceremony.\n\n## Compiler & Lint Constraints\n\n- `strict: true` — all strict checks enabled\n- `verbatimModuleSyntax: true` — always use `import type` for type-only imports\n- `erasableSyntaxOnly: true` — **no `enum`, no parameter properties, no namespaces**\n- `consistent-type-imports: \"error\"` — enforced by ESLint\n- `noUnusedLocals` \u002F `noUnusedParameters` — prefix intentionally unused with `_`\n- Target\u002Flib: **ES2022**, JSX: `react-jsx`. ES2022 = exact API ceiling for Vite `baseline-widely-available` (Vite 8: chrome111 \u002F edge111 \u002F firefox114 \u002F safari16.4). No polyfills — **no ES2023+ APIs** (`toSorted`, `toReversed`, `with`, `Object.groupBy`, `Promise.withResolvers`, …). Same ceiling: `ecmaVersion: 2022` (eslint.config.js). Bump all together, re-check every Vite major\n\n## Core Rules\n\n- **PREFER** `type` aliases for all type definitions\n- Use `interface` only for declaration merging (e.g., TanStack `Register` augmentation)\n- **AVOID** `any` — use `unknown` and narrow with type guards\n- **AVOID** `enum` — use union types or `as const` objects with `ObjValues\u003Ctypeof X>` extraction\n- **AVOID** non-null assertions (`!`) unless no alternative exists\n- Let TypeScript **infer** when inference is clear and stable\n- Use **explicit return types** for exported\u002Fpublic functions\n- Use `satisfies` to validate values against types without widening\n\n## Constants Pattern\n\n```ts\nexport const STATUS = { active: 'active', inactive: 'inactive' } as const;\nexport type Status = ObjValues\u003Ctypeof STATUS>; \u002F\u002F 'active' | 'inactive'\n```\n\n## React Component Props\n\n```ts\n\u002F\u002F Extend HTML elements\ntype ButtonProps = { isLoading?: boolean } & React.ComponentProps\u003C'button'>;\n\u002F\u002F Narrow with Omit\u002FPick\ntype PasswordInputProps = Omit\u003CInputProps, 'type'>;\n\u002F\u002F Compose with variants\ntype BadgeProps = React.ComponentProps\u003C'span'> & VariantProps\u003Ctypeof badgeVariants>;\n```\n\n- Use `React.ComponentProps\u003C'element'>` — not `HTMLAttributes`\n- Use `React.PropsWithChildren` when only children are needed\n- Never use `React.FC` with props — use function declarations with typed params\n\n## Zod Schema Inference\n\n```ts\nexport type LoginSchema = z.infer\u003Ctypeof loginSchema>;\nexport const loginSchema = z.object({ email: z.email(), password: z.string().min(8) });\n```\n\nAlways export the inferred type **above** the schema for colocation.\n\n## Error Handling\n\n- Type errors explicitly with `BaseErrorData\u003CTData>`\n- Use `instanceof` type guards for error narrowing (`HTTPError`, `Error`)\n- Handle form errors via `formApi.setErrorMap` with typed field error maps\n- Never swallow errors with broad `catch` — narrow and handle\n\n## Nullability\n\n- Handle `null`\u002F`undefined` explicitly via control flow narrowing\n- Prefer `??` (nullish coalescing) over `||` for defaults\n- Use optional chaining (`?.`) — avoid deep nested null checks\n- Early-return pattern for optional parameters\n\n## Advanced Patterns\n\nFor generics, conditional types, mapped types, template literals, discriminated unions, type guards, and repo-specific patterns see [REFERENCE.md](mdc:REFERENCE.md).\n",{"name":5,"description":7,"user-invocable":20},"main","a5c9ac2f39c1611831e417faea2e6d635699d9b5","examples\u002Fvite\u002F.claude\u002Fskills\u002Ftypescript",0,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio","https:\u002F\u002Fphenomenonstudio.com\u002F","Phenomenon is a digital product studio bolstering a core team of world-class developers, designers, and a flexible network of multi-specialized talent. ","2026-10-23 17:20:31",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Phenomenon-Studio\u002Fphenomenon-configs --skill typescript",{"tool":39,"command":40},"bunx","bunx skills add Phenomenon-Studio\u002Fphenomenon-configs --skill typescript",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Phenomenon-Studio\u002Fphenomenon-configs --skill typescript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Fexamples\u002Fvite\u002F.claude\u002Fskills\u002Ftypescript\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"REFERENCE.md","REFERENCE","参考文档",6840,"https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Fexamples\u002Fvite\u002F.claude\u002Fskills\u002Ftypescript\u002FREFERENCE.md",[54,61,66,73,80,87],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7EXBNNR8YZB8PD7J8ZAB5FP","web-security","Enforce web security and avoid security vulnerabilities.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Fweb-security\u002FSKILL.md",[],[],{"skillNo":62,"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":63,"categories":64,"keywords":65,"publishedAt":19},"01M7EXBJGWKB32NY4R2V141G0S","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Ftypescript\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7EXBESDHFPHAZKN292SDB6E","tanstack-router","TanStack Router patterns for this repo — file-based routing, auth guards, search params, data loading, TanStack Query integration, navigation, and code splitting. Use when creating routes, adding pages, implementing auth flows, working with search\u002Fpath params, or integrating loaders with TanStack Query.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Ftanstack-router\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7EXBAZW0KSMGVDB9DW157SD","tanstack-query","TanStack Query patterns for this repo — queryOptions\u002FmutationOptions factories, query key hierarchies, service layer integration, optimistic updates, Suspense usage, error handling, and TanStack Router data loading. Use when creating queries, mutations, API services, query keys, cache invalidation, optimistic updates, or integrating data fetching with routes.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Ftanstack-query\u002FSKILL.md",[],[],{"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":86,"publishedAt":19},"01M7EXB6X2TG4HYWCYB293581T","tanstack-form","Build forms using TanStack Form with the project's useAppForm composition, composable field components, Zod validation schemas, FormFieldWrapper error tracking, and form.AppField vs form.Field patterns. Use when creating new forms, adding form fields, writing form validation, or working with TanStack Form in this project.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Ftanstack-form\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":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7EXB4EXHFSSVY64QQAE77SA","react","Build clean, modern React components that apply common best practices and avoid common pitfalls like unnecessary state management or useEffect usage.","https:\u002F\u002Fgithub.com\u002FPhenomenon-Studio\u002Fphenomenon-configs\u002Fblob\u002Fmain\u002Ftemplate\u002Fproject\u002F{{ '.' if scope == 'app' and stack == 'vite' else '' }}\u002F.claude\u002Fskills\u002Freact\u002FSKILL.md",[],[]]