[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DVG2F2W0NEW4AYEA5DCSY5":3,"skill-same:01M7DVG2F2W0NEW4AYEA5DCSY5":57},{"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":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7DVG2F2W0NEW4AYEA5DCSY5","mk-typescript",null,"Use when writing TypeScript code, fixing type errors, or configuring strict type safety. Auto-activates on .ts\u002F.tsx files. Covers null handling, utility types, and ESLint.","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\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-typescript\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"mk-typescript\"\ndescription: \"Use when writing TypeScript code, fixing type errors, or configuring strict type safety. Auto-activates on .ts\u002F.tsx files. Covers null handling, utility types, and ESLint.\"\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:** `the typescript skill [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.","\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:** `the typescript skill [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.",{"name":5,"description":7},"main","c7ff0a9e672de2c0590b03f6459385c2d7a63c1a","kit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-typescript",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":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ngocsangyem\u002FMeowKit --skill mk-typescript",{"tool":39,"command":40},"bunx","bunx skills add ngocsangyem\u002FMeowKit --skill mk-typescript",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ngocsangyem\u002FMeowKit --skill mk-typescript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-typescript\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Freview-checklist.md","REFERENCE","参考文档",3452,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-typescript\u002Freferences\u002Freview-checklist.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fstrict-patterns.md",3132,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-typescript\u002Freferences\u002Fstrict-patterns.md",[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"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",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"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":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"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":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":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"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":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"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",[],[]]