[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J446TSR3DQSH5TC1JZ5XCC":3,"skill-same:01M6J446TSR3DQSH5TC1JZ5XCC":91},{"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":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":6,"ownerDescription":66,"updatedAt":67,"install":68,"resources":80},"01M6J446TSR3DQSH5TC1JZ5XCC","mk:typescript",null,"TypeScript authoring and strict type-safety fixes: null handling, utility types, ESLint. NOT for mk:react-patterns.","ngocsangyem\u002FMeowKit","ngocsangyem","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F33769536?v=4","01M6J3FSMJAG9PVQEGRT7AQ9J2","Sang Nguyen","01M6J3FSRTJG0MNP6NV71639RM",16,"MIT","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftypescript\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"typescript","when","mk:vue","patterns","Safety","Type Safety","active","react","mk:angular","code","framework-specific","angular","utility","writing","auto","files","errors","frontend","expert","types","tsx","2026-11-10 10:12:30",false,"---\nname: mk:typescript\ndescription: 'TypeScript authoring and strict type-safety fixes: null handling, utility types, ESLint. NOT for mk:react-patterns.'\nsource: aura-frog\noriginal_skills:\n  - typescript-expert\n  - frontend-development (TS parts)\nadapted_for: claude-code\nkeywords:\n  - typescript\n  - type-errors\n  - strict-types\n  - null-handling\n  - utility-types\n  - ts-eslint\nwhen_to_use: Editing .ts files or clearing type errors outside a UI framework.\nuser-invocable: true\nowner: utility\ncriticality: medium\nstatus: active\nruntime: claude-code\n---\n\n\u003C!-- Improvements over source skills:\n- Split from 361-line monolith to SKILL.md + references\u002F (Phase 1: CLASS A)\n- Framework-agnostic (removed React-specific patterns from frontend-development)\n- Integrated with security-rules.md (no `any` types already enforced)\n- Added workflow phase anchoring (Phase 3 Build)\n-->\n\n# TypeScript Expert\n\nStrict TypeScript patterns for type safety, null handling, and modern best practices.\n\n## When to Use\n\n**Auto-activate on:** `.ts`, `.tsx`, `.js`, `.jsx` files, type errors, ESLint issues, \"fix types\", \"add types\", \"TypeScript help\"\n\n**Explicit:** `\u002Fmk:typescript [concern]`\n\n**Do NOT invoke for:** Vue-specific patterns (use mk:vue), visual design (use mk:frontend-design)\n\n## Workflow Integration\n\nOperates in **Phase 3 (Build GREEN)**. Output supports the `developer` agent.\n\n## Process\n\n1. **Detect concern** — type error? new code? refactor? ESLint config?\n2. **Load relevant reference** — strict-null, type-safety, utility-types, or eslint\n3. **Apply patterns** — implement using strict TS patterns from references\n4. **Verify** — `npx tsc --noEmit` must pass with zero errors\n\n## Core Rules (always apply)\n\n- **NEVER** use `any` — use `unknown` + type guards (security-rules.md)\n- **NEVER** use `type assertion` — use `unknown` + type guards (security-rules.md)\n- **NEVER** use implicit truthiness for null checks — use explicit `=== null || === undefined`\n- **ALWAYS** use strict TypeScript config: `strict: true`, `noUncheckedIndexedAccess: true`\n- **ALWAYS** use `type` imports: `import type { X } from 'y'`\n- **PREFER** named exports over default exports\n- **PREFER** discriminated unions over type assertions\n\n## Anti-Patterns\n\n| Don't                         | Do Instead                                   |\n| ----------------------------- | -------------------------------------------- |\n| `as any` or `as unknown as X` | Proper type narrowing with guards            |\n| `if (value)` for null check   | `if (value !== null && value !== undefined)` |\n| `export default`              | `export const X` \u002F `export function X`       |\n| `Object` type                 | `Record\u003Cstring, unknown>`                    |\n| Implicit return types         | Explicit return type annotations             |\n| `enum` (runtime overhead)     | `as const` satisfies or union types          |\n\n## Output Format\n\n```\n## TypeScript: {concern}\n\n**Files:** {list of .ts\u002F.tsx files modified}\n**Config:** {tsconfig changes if any}\n\n### Changes Applied\n{numbered list of type improvements}\n\n### Verification\n{tsc --noEmit output — must show 0 errors}\n```\n\n## References\n\n| Reference                                                 | When to load     | Content                                                         |\n| --------------------------------------------------------- | ---------------- | --------------------------------------------------------------- |\n| **[strict-patterns.md](.\u002Freferences\u002Fstrict-patterns.md)** | Type safety work | Null handling, discriminated unions, type guards, utility types |\n| **[review-checklist.md](.\u002Freferences\u002Freview-checklist.md)** | When reviewing TypeScript code | Prioritized checklist: CRITICAL (security), HIGH (type safety, async, errors), MEDIUM (React, perf) |\n\n## Failure Handling\n\n| Failure                            | Recovery                                                   |\n| ---------------------------------- | ---------------------------------------------------------- |\n| `tsc --noEmit` fails after changes | Fix errors before proceeding — never ship with type errors |\n| No tsconfig.json found             | Suggest creating one with strict config                    |\n| Third-party types missing          | `npm install @types\u002F{package}`                             |\n\n## Gotchas\n\n- **`as` cast silences narrowing errors and hides real bugs** — `value as User` tells TS to trust you, not validate; a malformed API response passes the cast and crashes at runtime; use a type guard or Zod parse at the boundary instead.\n- **`moduleResolution: \"bundler\"` breaks `import type` in non-bundler contexts** — tsconfig `moduleResolution: bundler` (Vite\u002Fesbuild default) allows extensionless imports that Node.js `--esm` rejects at runtime; flip to `nodenext` for backend code or keep dual configs per target.\n- **`noUncheckedIndexedAccess: true` makes every array index `T | undefined`** — enabling this flag (required by strict config) means `arr[0]` is `string | undefined` not `string`; code that was type-correct before will error until every indexed access is null-guarded.\n- **Declaration merging in ambient `.d.ts` files silently adds properties to global types** — a `declare module 'express'` block in any `.d.ts` in the project augments Express's types globally; two libraries doing this with conflicting shapes cause TS2300 duplicate identifier errors that appear far from the source.\n- **Template literal types create unique brands that break assignability** — `type UserId = \\`user_\\${string}\\`` is not assignable from `string`; passing a plain `string` where `UserId` is expected fails even though values look identical at runtime; always brand at the input boundary with a parse function.\n- **`enum` generates runtime JS objects, causing tree-shaking failures** — enums are not erased; a `const enum` inside a library published as `.js` is inlined at compile time but not consumable by projects that don't re-compile the source; use `as const` satisfies patterns for exported enums.\n","\u003C!-- Improvements over source skills:\n- Split from 361-line monolith to SKILL.md + references\u002F (Phase 1: CLASS A)\n- Framework-agnostic (removed React-specific patterns from frontend-development)\n- Integrated with security-rules.md (no `any` types already enforced)\n- Added workflow phase anchoring (Phase 3 Build)\n-->\n\n# TypeScript Expert\n\nStrict TypeScript patterns for type safety, null handling, and modern best practices.\n\n## When to Use\n\n**Auto-activate on:** `.ts`, `.tsx`, `.js`, `.jsx` files, type errors, ESLint issues, \"fix types\", \"add types\", \"TypeScript help\"\n\n**Explicit:** `\u002Fmk:typescript [concern]`\n\n**Do NOT invoke for:** Vue-specific patterns (use mk:vue), visual design (use mk:frontend-design)\n\n## Workflow Integration\n\nOperates in **Phase 3 (Build GREEN)**. Output supports the `developer` agent.\n\n## Process\n\n1. **Detect concern** — type error? new code? refactor? ESLint config?\n2. **Load relevant reference** — strict-null, type-safety, utility-types, or eslint\n3. **Apply patterns** — implement using strict TS patterns from references\n4. **Verify** — `npx tsc --noEmit` must pass with zero errors\n\n## Core Rules (always apply)\n\n- **NEVER** use `any` — use `unknown` + type guards (security-rules.md)\n- **NEVER** use `type assertion` — use `unknown` + type guards (security-rules.md)\n- **NEVER** use implicit truthiness for null checks — use explicit `=== null || === undefined`\n- **ALWAYS** use strict TypeScript config: `strict: true`, `noUncheckedIndexedAccess: true`\n- **ALWAYS** use `type` imports: `import type { X } from 'y'`\n- **PREFER** named exports over default exports\n- **PREFER** discriminated unions over type assertions\n\n## Anti-Patterns\n\n| Don't                         | Do Instead                                   |\n| ----------------------------- | -------------------------------------------- |\n| `as any` or `as unknown as X` | Proper type narrowing with guards            |\n| `if (value)` for null check   | `if (value !== null && value !== undefined)` |\n| `export default`              | `export const X` \u002F `export function X`       |\n| `Object` type                 | `Record\u003Cstring, unknown>`                    |\n| Implicit return types         | Explicit return type annotations             |\n| `enum` (runtime overhead)     | `as const` satisfies or union types          |\n\n## Output Format\n\n```\n## TypeScript: {concern}\n\n**Files:** {list of .ts\u002F.tsx files modified}\n**Config:** {tsconfig changes if any}\n\n### Changes Applied\n{numbered list of type improvements}\n\n### Verification\n{tsc --noEmit output — must show 0 errors}\n```\n\n## References\n\n| Reference                                                 | When to load     | Content                                                         |\n| --------------------------------------------------------- | ---------------- | --------------------------------------------------------------- |\n| **[strict-patterns.md](.\u002Freferences\u002Fstrict-patterns.md)** | Type safety work | Null handling, discriminated unions, type guards, utility types |\n| **[review-checklist.md](.\u002Freferences\u002Freview-checklist.md)** | When reviewing TypeScript code | Prioritized checklist: CRITICAL (security), HIGH (type safety, async, errors), MEDIUM (React, perf) |\n\n## Failure Handling\n\n| Failure                            | Recovery                                                   |\n| ---------------------------------- | ---------------------------------------------------------- |\n| `tsc --noEmit` fails after changes | Fix errors before proceeding — never ship with type errors |\n| No tsconfig.json found             | Suggest creating one with strict config                    |\n| Third-party types missing          | `npm install @types\u002F{package}`                             |\n\n## Gotchas\n\n- **`as` cast silences narrowing errors and hides real bugs** — `value as User` tells TS to trust you, not validate; a malformed API response passes the cast and crashes at runtime; use a type guard or Zod parse at the boundary instead.\n- **`moduleResolution: \"bundler\"` breaks `import type` in non-bundler contexts** — tsconfig `moduleResolution: bundler` (Vite\u002Fesbuild default) allows extensionless imports that Node.js `--esm` rejects at runtime; flip to `nodenext` for backend code or keep dual configs per target.\n- **`noUncheckedIndexedAccess: true` makes every array index `T | undefined`** — enabling this flag (required by strict config) means `arr[0]` is `string | undefined` not `string`; code that was type-correct before will error until every indexed access is null-guarded.\n- **Declaration merging in ambient `.d.ts` files silently adds properties to global types** — a `declare module 'express'` block in any `.d.ts` in the project augments Express's types globally; two libraries doing this with conflicting shapes cause TS2300 duplicate identifier errors that appear far from the source.\n- **Template literal types create unique brands that break assignability** — `type UserId = \\`user_\\${string}\\`` is not assignable from `string`; passing a plain `string` where `UserId` is expected fails even though values look identical at runtime; always brand at the input boundary with a parse function.\n- **`enum` generates runtime JS objects, causing tree-shaking failures** — enums are not erased; a `const enum` inside a library published as `.js` is inlined at compile time but not consumable by projects that don't re-compile the source; use `as const` satisfies patterns for exported enums.\n",{"name":5,"owner":31,"source":45,"status":25,"runtime":46,"keywords":47,"adapted_for":46,"criticality":53,"description":7,"when_to_use":54,"user-invocable":55,"original_skills":56},"aura-frog","claude-code",[19,48,49,50,51,52],"type-errors","strict-types","null-handling","utility-types","ts-eslint","medium","Editing .ts files or clearing type errors outside a UI framework.",true,[57,58],"typescript-expert","frontend-development (TS parts)","main","c2c69c674e8c62fe9634bfb360b5f9f14c70e1a5",".claude\u002Fskills\u002Ftypescript",3,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit","https:\u002F\u002Fdocs.meowkit.dev\u002F","https:\u002F\u002Fgithub.com\u002Fngocsangyem","Keep moving forward","2026-11-15 03:54:21",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":55},[70,73,76],{"tool":71,"command":72},"npx","npx skills add ngocsangyem\u002FMeowKit --skill \"mk:typescript\"",{"tool":74,"command":75},"bunx","bunx skills add ngocsangyem\u002FMeowKit --skill \"mk:typescript\"",{"tool":77,"command":78},"pnpm","pnpm dlx skills add ngocsangyem\u002FMeowKit --skill \"mk:typescript\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftypescript\u002FSKILL.md",[81,87],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Freview-checklist.md","REFERENCE","参考文档",3452,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftypescript\u002Freferences\u002Freview-checklist.md",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fstrict-patterns.md",3132,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftypescript\u002Freferences\u002Fstrict-patterns.md",[92,100,107,114,121,128],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M7DVHF481B4J41T4855KGM50","mk-worktree","Manages git worktrees for parallel agent isolation: creates parallel\u002F{name}-{timestamp} branches, merges with conflict detection. NOT for user feature branches (use git worktree directly).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-worktree\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":99},"01M7DVHAWVKDKPB1EA3F1NC4JC","mk-workflow-orchestrator","Auto-invoked 7-phase workflow for complex-feature intent; fasttrack mode for pre-approved specs. NOT for explicit single tasks (mk:cook), green-field builds (mk:autobuild), or simple fixes (mk:fix).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-workflow-orchestrator\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":99},"01M7DVH6SYBHWW00TRZXCC56JW","mk-web-to-markdown","Fetch a URL and return clean markdown, for arbitrary external pages (blog, RFC, GitHub issue, vendor doc) not covered by mk:docs-finder. Static-only by default; opt-in JS rendering available.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-web-to-markdown\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":99},"01M7DVH3HGW47BX3PEF30JV6EJ","mk-vulnerability-scanner","Vulnerability analysis: OWASP Top 10, current threat landscape, supply chain security, attack surface mapping, risk prioritization. Use for security audits. NOT for STRIDE\u002FCSO infra audits (mk:cso).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vulnerability-scanner\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":99},"01M7DVGZBKMB9WDFH9MFMA99FV","mk-vue","Vue 3 authoring\u002Freview: components, composables, reactivity, Pinia, Pinia Colada, file routing, forms. Composition API + script setup. Auto-activates on .vue files. Deep review: mk:vue-best-practices.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vue\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":99},"01M7DVGSE12AA1M7599HB8HRCT","mk-vue-testing-best-practices","Vue 3 testing best-practices review: Vitest + Vue Test Utils for components, composables, Pinia, Router, async\u002FSuspense, forms, a11y, plus Playwright E2E strategy. Advisory only.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vue-testing-best-practices\u002FSKILL.md",[],[]]