[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7844G60MZGV47XXDM5KBHCD":3,"skill-same:01M7844G60MZGV47XXDM5KBHCD":107},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7844G60MZGV47XXDM5KBHCD","typescript-migration",null,"TypeScript version migration guide (5.x to 6 to 7, tsgo native port). Use for TS 6 tsconfig breaking changes, TS 7 Go rewrite rollout, or TS5xxx deprecation codes.","aibizmod\u002Faibizmod-service-web","aibizmod","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F295315630?v=4","01M7836CB8EQY701YQ7N88M591","01M7836CBVPZGNSJ8BRP2BT398",0,"MIT","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: typescript-migration\ndescription: \"TypeScript version migration guide (5.x to 6 to 7, tsgo native port). Use for TS 6 tsconfig breaking changes, TS 7 Go rewrite rollout, or TS5xxx deprecation codes.\"\nlicense: MIT\n---\n\n# TypeScript Migration\n\nAuthoritative migration guide for TypeScript 5.x → 6 → 7 (native Go port). Sourced from Microsoft's official announcements.\n\n## Status\n\n- **Skill Status**: Production Ready\n- **Last Updated**: 2026-07-09\n- **TS 6.0 Released**: 2026-03-17 (Final) — last JavaScript-based release\n- **TS 7.0 Released**: 2026-07-08 — native Go port (\"Corsa\"), stable\n- **Authoritative Sources**:\n  - TS 7.0 release: https:\u002F\u002Fdevblogs.microsoft.com\u002Ftypescript\u002Fannouncing-typescript-7-0\u002F\n  - TS 6.0 beta: https:\u002F\u002Fdevblogs.microsoft.com\u002Ftypescript\u002Fannouncing-typescript-6-0-beta\u002F\n  - TS 6 → 7 diff tracker: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftypescript-go\u002Fblob\u002Fmain\u002FCHANGES.md\n  - ts5to6 tool: https:\u002F\u002Fgithub.com\u002Fandrewbranch\u002Fts5to6\n\n## The Golden Rule\n\n> NEVER skip TypeScript 6. The only supported paths are **5.x → 6 → 7**.\n>\n> Skipping TS 6 produces a wall of hard errors because TS 7 removes everything TS 6 deprecated. Use `\"ignoreDeprecations\": \"6.0\"` only as a temporary pause inside TS 6; it does NOT work in TS 7.\n\n## Quick Triage (1 Minute)\n\n1. **Detect current version** — run `scripts\u002Fdetect-ts-version.sh` (reads `package.json`).\n2. **Classify the path**:\n   - `5.x` → start with `references\u002Fmigration-playbooks.md` § \"5.x → 6\".\n   - `6.x` → may go directly to TS 7 (see `references\u002Fts7-go-rewrite.md`).\n   - `5.x` wanting TS 7 → must go 5 → 6 → 7 (no shortcuts).\n   - Intra-version strict-flag rollout (no version change) → see `references\u002Fts-migrating-tool-guide.md` for the optional `ts-migrating` tool.\n3. **Audit before changing anything** — run `scripts\u002Faudit-ts7-breakers.sh` to detect tooling that breaks under TS 7 (typescript-eslint, ts-morph, ts-node, Vue\u002FSvelte\u002FAstro\u002FMDX\u002FAngular templates, ts-patch, ttypescript, typia, `baseUrl`, `node10`, `ES5` target).\n\n## Project-Type Decision Matrix\n\n| Project type | Recommendation | Why |\n|---|---|---|\n| Greenfield, no API-dependent tooling | Adopt TS 7 directly | Full speedup, no blockers |\n| Existing TS project, no special tooling | 5 → 6 → 7 sequentially | TS 6 surfaces every deprecation as a warning first |\n| Uses typescript-eslint \u002F ts-morph \u002F API consumers | 5 → 6 → 7 via `@typescript\u002Ftypescript6` side-by-side | TS 7 has no programmatic API until 7.1 |\n| Vue \u002F Svelte \u002F Astro \u002F MDX (Volar-based) | **Stay on TS 6** | Volar needs the programmatic API; not yet supported |\n| Angular with template type-checking | TS 7 for CLI + TS 6 for editor | Microsoft's official split workaround |\n| ts-patch \u002F ttypescript \u002F typia \u002F custom AST transformers | **Stay on TS 6** until migrated to Oxc\u002FSWC | Transformer API gone in TS 7 |\n\n## TS 6 — Top Breaking Changes (Quick View)\n\n| Change | Old default | TS 6 default | Fix |\n|---|---|---|---|\n| `strict` | false | **true** | Set explicitly or fix errors |\n| `module` | CommonJS | **esnext** | Set `commonjs` if needed |\n| `target` | ES3 | **es2025** (floating) | Set explicitly |\n| `moduleResolution` | node10 | **bundler** | Set `nodenext` for Node targets |\n| `rootDir` | inferred | **`.` (tsconfig dir)** | Set `\"rootDir\": \".\u002Fsrc\"` |\n| `types` | all `@types` | **`[]`** | Set `\"types\": [\"node\"]` |\n| `esModuleInterop` | false | **true** | Remove `:false`; fix `import * as` → `import` |\n| `noUncheckedSideEffectImports` | false | **true** | Fix typos or set false for bundler CSS |\n| `libReplacement` | true | **false** | — |\n| `allowSyntheticDefaultImports` | varies | **true** | — |\n\nDeprecated in 6, **HARD ERRORS in 7**: `target: es5`; `downlevelIteration`; `moduleResolution: node | node10 | classic`; `module: amd | umd | systemjs | none`; `baseUrl`; `esModuleInterop: false`; `allowSyntheticDefaultImports: false`; `alwaysStrict: false`; `outFile`; `module Foo {}` keyword; `assert { }` on imports; `\u002F\u002F\u002F \u003Creference no-default-lib=\"true\"\u002F>`; `tsc \u003Cfile>` + tsconfig present (use `--ignoreConfig`).\n\nFor full detail per change including PR citations, examples, and the official `ts5to6` codemod usage, load `references\u002Fts6-breaking-changes.md`.\n\n## TS 7 — What Changed (Quick View)\n\n- Native Go port; the standard `typescript` npm package IS TS 7 (`npm install -D typescript`).\n- All TS 6 deprecations become hard errors (see table above).\n- **No programmatic Compiler API** in 7.0 — TS 7.1 will ship a new one. Affects ts-morph, ts-node, ts-jest, ts-loader, ts-patch, ttypescript, typia, typescript-eslint (use the side-by-side pattern below).\n- `preserveConstEnums` removed — always emits const enums.\n- `stableTypeOrdering` now `true` by default; cannot be turned off.\n- NEW flags: `--checkers N` (default 4), `--builders N`, `--singleThreaded`.\n- NEW breaking change: template literal types preserve Unicode code points (not UTF-16 code units).\n- NEW: JS file handling reworked (Closure-style `@enum`, `@class`, `?`, postfix `!` no longer special).\n- Performance (official, real OSS codebases): 7.7x–11.9x faster builds (up to 16.7x with `--checkers 8`); 6–26% lower memory.\n\nFull install options, compatibility matrix, performance tables, and known issues in `references\u002Fts7-go-rewrite.md`.\n\n## The Official Side-by-Side Pattern (TS 7 + TS 6 API)\n\nMicrosoft's recommended path for projects whose tooling depends on the TS Compiler API. Declare an alias in `package.json`:\n\n```json\n{\n  \"devDependencies\": {\n    \"@typescript\u002Fnative\": \"npm:typescript@^7.0.2\",\n    \"typescript\": \"npm:@typescript\u002Ftypescript6@^6.0.2\"\n  }\n}\n```\n\n- `npx tsc` runs TS 7 (via the `@typescript\u002Fnative` alias).\n- Tools importing `typescript` (typescript-eslint, ts-morph) transparently get TS 6's API via `@typescript\u002Ftypescript6`.\n- A `tsc6` executable is also available if a TS 6 invocation is needed directly.\n- Remove this workaround once TS 7.1 ships the new API.\n\n## The 4-Step Standard Workflow\n\n1. **Detect** — `scripts\u002Fdetect-ts-version.sh` reports the installed version.\n2. **Audit** — `scripts\u002Faudit-ts7-breakers.sh` detects breakers BEFORE any upgrade. `scripts\u002Fts6-deprecation-scan.sh` extracts TS5xxx codes from `tsc` output.\n3. **Migrate** — follow `references\u002Fmigration-playbooks.md` for the appropriate path. Run `ts5to6 --fixBaseUrl` and `ts5to6 --fixRootDir` if the user explicitly approves (these are official Microsoft-endorsed codemods). All other changes are manual.\n4. **Verify** — `scripts\u002Fcompare-tsc7-tsc6.sh` diffs diagnostic codes between TS 7 `tsc` and TS 6 `tsc6`. Match on TSxxxx codes, NOT message text (wording differs between compilers). Delete stale `.tsbuildinfo` files before the first TS 7 run (incompatible between the JS and Go compilers).\n\n## Critical Rules\n\n### Always\n\n- ✅ Migrate through TS 6 — never skip it.\n- ✅ Match on diagnostic codes (TSxxxx), not message wording.\n- ✅ Delete stale `.tsbuildinfo` before the first TS 7 run.\n- ✅ Cite Microsoft's official blog posts as authoritative; treat third-party tutorials as secondary.\n- ✅ Run `audit-ts7-breakers.sh` BEFORE any upgrade.\n\n### Never\n\n- ❌ Never install `@typescript\u002Fnative-preview` for stable use — it's the legacy nightly package; stable is the standard `typescript` package.\n- ❌ Never assert the unverified third-party claims listed in `references\u002Funverified-claims.md` (e.g. \"moduleResolution default is node16\", \"`--ts6-migration` flag exists\", \"ES5 target is removed in 6\", \"`--keyofStringsOnly` was removed\").\n- ❌ Never recommend `ts-migrating` (the tool) for TS version migration — it only helps tighten compilerOptions within a version.\n- ❌ Never assume VS Code needs a setting key to enable TS 7 — install the official extension; it auto-enables.\n- ❌ Never auto-edit user source via custom scripts — only detection\u002Faudit scripts and officially-blessed codemods (`ts5to6`).\n\n## The `ts-migrating` Tool — Conditional Offer\n\nOffer this tool ONLY when the user wants to enable a stricter `compilerOption` (e.g. `noUncheckedIndexedAccess`, `strict`, `erasableSyntaxOnly`) on an existing large codebase — NOT for version migration.\n\nGate conditions (all must hold):\n\n- Existing, non-greenfield TypeScript project.\n- The goal is enabling a `compilerOption` incrementally.\n- This is not a tsgo \u002F TS-7 migration.\n\nWarnings:\n\n- The `annotate` subcommand rewrites source — run on a clean git tree and review the diff.\n- The IDE plugin has ZERO effect on `tsc`; wire `ts-migrating check` into CI for it to matter.\n- `\u002F\u002F @ts-migrating` markers are tech debt needing a cleanup sweep.\n- This is NOT Airbnb's `ts-migrate` (different tool — JS → TS conversion).\n\nFull install, commands, and gate logic in `references\u002Fts-migrating-tool-guide.md`.\n\n## Common Error Codes\n\n| Code | Meaning | Action |\n|---|---|---|\n| TS5011 | rootDir mismatch | Set `\"rootDir\": \".\u002Fsrc\"` |\n| TS5101 | Option deprecated, stops in TS {ver} | Add `\"ignoreDeprecations\": \"6.0\"` (TS 6 only) or fix |\n| TS5102 | Option removed | Remove from tsconfig |\n| TS5107 | Option=value deprecated | Same as TS5101 |\n| TS5108 | Option=value removed | Remove |\n| TS5111 | Migration info (baseUrl, node10) | See `references\u002Fts6-breaking-changes.md` |\n| TS5112 | tsc file-args + tsconfig present | Use `--ignoreConfig` |\n\n## When to Load References\n\nLoad these reference files when the user needs detail beyond the quick-reference above:\n\n| Load This File | When |\n|---|---|\n| `references\u002Fts6-breaking-changes.md` | Migrating to TS 6; need full PR-cited detail on each default change, deprecation, or syntax change |\n| `references\u002Fts7-go-rewrite.md` | Adopting TS 7; need install detail, compat matrix, performance tables, known gaps |\n| `references\u002Fecosystem-compatibility.md` | Checking whether a specific tool (typescript-eslint, ts-morph, ts-node, vite, webpack, vitest, etc.) works under TS 7 |\n| `references\u002Fmigration-playbooks.md` | Need ordered checklists for 5→6, 6→7, or 5→7-via-6 |\n| `references\u002Fts-migrating-tool-guide.md` | User wants to enable a stricter compilerOption incrementally on an existing large codebase |\n| `references\u002Funverified-claims.md` | Encountering a claim that contradicts official sources; verify before asserting |\n\n## Dependencies\n\n- **Required for migration**: `typescript` (target version), `tsconfig.json` in the project root.\n- **Optional helpers**:\n  - `@andrewbranch\u002Fts5to6` — official codemod for `baseUrl` \u002F `rootDir`.\n  - `@typescript\u002Ftypescript6` — side-by-side API compat for TS 7.\n  - `ts-migrating` — incremental strict-flag rollout (see guide).\n\n## Package Versions (Verified 2026-07-09)\n\n```json\n{\n  \"devDependencies\": {\n    \"typescript\": \"^7.0.2\",\n    \"@typescript\u002Ftypescript6\": \"^6.0.2\"\n  },\n  \"optionalHelpers\": {\n    \"@andrewbranch\u002Fts5to6\": \"latest\",\n    \"ts-migrating\": \"latest\"\n  }\n}\n```\n\nAll facts in this skill are cited to Microsoft's official TypeScript blog (devblogs.microsoft.com\u002Ftypescript). Third-party tutorial claims that conflict with official sources are catalogued in `references\u002Funverified-claims.md` and treated as suspect.\n","# TypeScript Migration\n\nAuthoritative migration guide for TypeScript 5.x → 6 → 7 (native Go port). Sourced from Microsoft's official announcements.\n\n## Status\n\n- **Skill Status**: Production Ready\n- **Last Updated**: 2026-07-09\n- **TS 6.0 Released**: 2026-03-17 (Final) — last JavaScript-based release\n- **TS 7.0 Released**: 2026-07-08 — native Go port (\"Corsa\"), stable\n- **Authoritative Sources**:\n  - TS 7.0 release: https:\u002F\u002Fdevblogs.microsoft.com\u002Ftypescript\u002Fannouncing-typescript-7-0\u002F\n  - TS 6.0 beta: https:\u002F\u002Fdevblogs.microsoft.com\u002Ftypescript\u002Fannouncing-typescript-6-0-beta\u002F\n  - TS 6 → 7 diff tracker: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftypescript-go\u002Fblob\u002Fmain\u002FCHANGES.md\n  - ts5to6 tool: https:\u002F\u002Fgithub.com\u002Fandrewbranch\u002Fts5to6\n\n## The Golden Rule\n\n> NEVER skip TypeScript 6. The only supported paths are **5.x → 6 → 7**.\n>\n> Skipping TS 6 produces a wall of hard errors because TS 7 removes everything TS 6 deprecated. Use `\"ignoreDeprecations\": \"6.0\"` only as a temporary pause inside TS 6; it does NOT work in TS 7.\n\n## Quick Triage (1 Minute)\n\n1. **Detect current version** — run `scripts\u002Fdetect-ts-version.sh` (reads `package.json`).\n2. **Classify the path**:\n   - `5.x` → start with `references\u002Fmigration-playbooks.md` § \"5.x → 6\".\n   - `6.x` → may go directly to TS 7 (see `references\u002Fts7-go-rewrite.md`).\n   - `5.x` wanting TS 7 → must go 5 → 6 → 7 (no shortcuts).\n   - Intra-version strict-flag rollout (no version change) → see `references\u002Fts-migrating-tool-guide.md` for the optional `ts-migrating` tool.\n3. **Audit before changing anything** — run `scripts\u002Faudit-ts7-breakers.sh` to detect tooling that breaks under TS 7 (typescript-eslint, ts-morph, ts-node, Vue\u002FSvelte\u002FAstro\u002FMDX\u002FAngular templates, ts-patch, ttypescript, typia, `baseUrl`, `node10`, `ES5` target).\n\n## Project-Type Decision Matrix\n\n| Project type | Recommendation | Why |\n|---|---|---|\n| Greenfield, no API-dependent tooling | Adopt TS 7 directly | Full speedup, no blockers |\n| Existing TS project, no special tooling | 5 → 6 → 7 sequentially | TS 6 surfaces every deprecation as a warning first |\n| Uses typescript-eslint \u002F ts-morph \u002F API consumers | 5 → 6 → 7 via `@typescript\u002Ftypescript6` side-by-side | TS 7 has no programmatic API until 7.1 |\n| Vue \u002F Svelte \u002F Astro \u002F MDX (Volar-based) | **Stay on TS 6** | Volar needs the programmatic API; not yet supported |\n| Angular with template type-checking | TS 7 for CLI + TS 6 for editor | Microsoft's official split workaround |\n| ts-patch \u002F ttypescript \u002F typia \u002F custom AST transformers | **Stay on TS 6** until migrated to Oxc\u002FSWC | Transformer API gone in TS 7 |\n\n## TS 6 — Top Breaking Changes (Quick View)\n\n| Change | Old default | TS 6 default | Fix |\n|---|---|---|---|\n| `strict` | false | **true** | Set explicitly or fix errors |\n| `module` | CommonJS | **esnext** | Set `commonjs` if needed |\n| `target` | ES3 | **es2025** (floating) | Set explicitly |\n| `moduleResolution` | node10 | **bundler** | Set `nodenext` for Node targets |\n| `rootDir` | inferred | **`.` (tsconfig dir)** | Set `\"rootDir\": \".\u002Fsrc\"` |\n| `types` | all `@types` | **`[]`** | Set `\"types\": [\"node\"]` |\n| `esModuleInterop` | false | **true** | Remove `:false`; fix `import * as` → `import` |\n| `noUncheckedSideEffectImports` | false | **true** | Fix typos or set false for bundler CSS |\n| `libReplacement` | true | **false** | — |\n| `allowSyntheticDefaultImports` | varies | **true** | — |\n\nDeprecated in 6, **HARD ERRORS in 7**: `target: es5`; `downlevelIteration`; `moduleResolution: node | node10 | classic`; `module: amd | umd | systemjs | none`; `baseUrl`; `esModuleInterop: false`; `allowSyntheticDefaultImports: false`; `alwaysStrict: false`; `outFile`; `module Foo {}` keyword; `assert { }` on imports; `\u002F\u002F\u002F \u003Creference no-default-lib=\"true\"\u002F>`; `tsc \u003Cfile>` + tsconfig present (use `--ignoreConfig`).\n\nFor full detail per change including PR citations, examples, and the official `ts5to6` codemod usage, load `references\u002Fts6-breaking-changes.md`.\n\n## TS 7 — What Changed (Quick View)\n\n- Native Go port; the standard `typescript` npm package IS TS 7 (`npm install -D typescript`).\n- All TS 6 deprecations become hard errors (see table above).\n- **No programmatic Compiler API** in 7.0 — TS 7.1 will ship a new one. Affects ts-morph, ts-node, ts-jest, ts-loader, ts-patch, ttypescript, typia, typescript-eslint (use the side-by-side pattern below).\n- `preserveConstEnums` removed — always emits const enums.\n- `stableTypeOrdering` now `true` by default; cannot be turned off.\n- NEW flags: `--checkers N` (default 4), `--builders N`, `--singleThreaded`.\n- NEW breaking change: template literal types preserve Unicode code points (not UTF-16 code units).\n- NEW: JS file handling reworked (Closure-style `@enum`, `@class`, `?`, postfix `!` no longer special).\n- Performance (official, real OSS codebases): 7.7x–11.9x faster builds (up to 16.7x with `--checkers 8`); 6–26% lower memory.\n\nFull install options, compatibility matrix, performance tables, and known issues in `references\u002Fts7-go-rewrite.md`.\n\n## The Official Side-by-Side Pattern (TS 7 + TS 6 API)\n\nMicrosoft's recommended path for projects whose tooling depends on the TS Compiler API. Declare an alias in `package.json`:\n\n```json\n{\n  \"devDependencies\": {\n    \"@typescript\u002Fnative\": \"npm:typescript@^7.0.2\",\n    \"typescript\": \"npm:@typescript\u002Ftypescript6@^6.0.2\"\n  }\n}\n```\n\n- `npx tsc` runs TS 7 (via the `@typescript\u002Fnative` alias).\n- Tools importing `typescript` (typescript-eslint, ts-morph) transparently get TS 6's API via `@typescript\u002Ftypescript6`.\n- A `tsc6` executable is also available if a TS 6 invocation is needed directly.\n- Remove this workaround once TS 7.1 ships the new API.\n\n## The 4-Step Standard Workflow\n\n1. **Detect** — `scripts\u002Fdetect-ts-version.sh` reports the installed version.\n2. **Audit** — `scripts\u002Faudit-ts7-breakers.sh` detects breakers BEFORE any upgrade. `scripts\u002Fts6-deprecation-scan.sh` extracts TS5xxx codes from `tsc` output.\n3. **Migrate** — follow `references\u002Fmigration-playbooks.md` for the appropriate path. Run `ts5to6 --fixBaseUrl` and `ts5to6 --fixRootDir` if the user explicitly approves (these are official Microsoft-endorsed codemods). All other changes are manual.\n4. **Verify** — `scripts\u002Fcompare-tsc7-tsc6.sh` diffs diagnostic codes between TS 7 `tsc` and TS 6 `tsc6`. Match on TSxxxx codes, NOT message text (wording differs between compilers). Delete stale `.tsbuildinfo` files before the first TS 7 run (incompatible between the JS and Go compilers).\n\n## Critical Rules\n\n### Always\n\n- ✅ Migrate through TS 6 — never skip it.\n- ✅ Match on diagnostic codes (TSxxxx), not message wording.\n- ✅ Delete stale `.tsbuildinfo` before the first TS 7 run.\n- ✅ Cite Microsoft's official blog posts as authoritative; treat third-party tutorials as secondary.\n- ✅ Run `audit-ts7-breakers.sh` BEFORE any upgrade.\n\n### Never\n\n- ❌ Never install `@typescript\u002Fnative-preview` for stable use — it's the legacy nightly package; stable is the standard `typescript` package.\n- ❌ Never assert the unverified third-party claims listed in `references\u002Funverified-claims.md` (e.g. \"moduleResolution default is node16\", \"`--ts6-migration` flag exists\", \"ES5 target is removed in 6\", \"`--keyofStringsOnly` was removed\").\n- ❌ Never recommend `ts-migrating` (the tool) for TS version migration — it only helps tighten compilerOptions within a version.\n- ❌ Never assume VS Code needs a setting key to enable TS 7 — install the official extension; it auto-enables.\n- ❌ Never auto-edit user source via custom scripts — only detection\u002Faudit scripts and officially-blessed codemods (`ts5to6`).\n\n## The `ts-migrating` Tool — Conditional Offer\n\nOffer this tool ONLY when the user wants to enable a stricter `compilerOption` (e.g. `noUncheckedIndexedAccess`, `strict`, `erasableSyntaxOnly`) on an existing large codebase — NOT for version migration.\n\nGate conditions (all must hold):\n\n- Existing, non-greenfield TypeScript project.\n- The goal is enabling a `compilerOption` incrementally.\n- This is not a tsgo \u002F TS-7 migration.\n\nWarnings:\n\n- The `annotate` subcommand rewrites source — run on a clean git tree and review the diff.\n- The IDE plugin has ZERO effect on `tsc`; wire `ts-migrating check` into CI for it to matter.\n- `\u002F\u002F @ts-migrating` markers are tech debt needing a cleanup sweep.\n- This is NOT Airbnb's `ts-migrate` (different tool — JS → TS conversion).\n\nFull install, commands, and gate logic in `references\u002Fts-migrating-tool-guide.md`.\n\n## Common Error Codes\n\n| Code | Meaning | Action |\n|---|---|---|\n| TS5011 | rootDir mismatch | Set `\"rootDir\": \".\u002Fsrc\"` |\n| TS5101 | Option deprecated, stops in TS {ver} | Add `\"ignoreDeprecations\": \"6.0\"` (TS 6 only) or fix |\n| TS5102 | Option removed | Remove from tsconfig |\n| TS5107 | Option=value deprecated | Same as TS5101 |\n| TS5108 | Option=value removed | Remove |\n| TS5111 | Migration info (baseUrl, node10) | See `references\u002Fts6-breaking-changes.md` |\n| TS5112 | tsc file-args + tsconfig present | Use `--ignoreConfig` |\n\n## When to Load References\n\nLoad these reference files when the user needs detail beyond the quick-reference above:\n\n| Load This File | When |\n|---|---|\n| `references\u002Fts6-breaking-changes.md` | Migrating to TS 6; need full PR-cited detail on each default change, deprecation, or syntax change |\n| `references\u002Fts7-go-rewrite.md` | Adopting TS 7; need install detail, compat matrix, performance tables, known gaps |\n| `references\u002Fecosystem-compatibility.md` | Checking whether a specific tool (typescript-eslint, ts-morph, ts-node, vite, webpack, vitest, etc.) works under TS 7 |\n| `references\u002Fmigration-playbooks.md` | Need ordered checklists for 5→6, 6→7, or 5→7-via-6 |\n| `references\u002Fts-migrating-tool-guide.md` | User wants to enable a stricter compilerOption incrementally on an existing large codebase |\n| `references\u002Funverified-claims.md` | Encountering a claim that contradicts official sources; verify before asserting |\n\n## Dependencies\n\n- **Required for migration**: `typescript` (target version), `tsconfig.json` in the project root.\n- **Optional helpers**:\n  - `@andrewbranch\u002Fts5to6` — official codemod for `baseUrl` \u002F `rootDir`.\n  - `@typescript\u002Ftypescript6` — side-by-side API compat for TS 7.\n  - `ts-migrating` — incremental strict-flag rollout (see guide).\n\n## Package Versions (Verified 2026-07-09)\n\n```json\n{\n  \"devDependencies\": {\n    \"typescript\": \"^7.0.2\",\n    \"@typescript\u002Ftypescript6\": \"^6.0.2\"\n  },\n  \"optionalHelpers\": {\n    \"@andrewbranch\u002Fts5to6\": \"latest\",\n    \"ts-migrating\": \"latest\"\n  }\n}\n```\n\nAll facts in this skill are cited to Microsoft's official TypeScript blog (devblogs.microsoft.com\u002Ftypescript). Third-party tutorial claims that conflict with official sources are catalogued in `references\u002Funverified-claims.md` and treated as suspect.\n",{"name":5,"license":14,"description":7},"main","9f54582c8b485462d402d7e70feaef34801746b9",".opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web","https:\u002F\u002Fgithub.com\u002Faibizmod","2026-09-24 00:48:11",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add aibizmod\u002Faibizmod-service-web --skill typescript-migration",{"tool":35,"command":36},"bunx","bunx skills add aibizmod\u002Faibizmod-service-web --skill typescript-migration",{"tool":38,"command":39},"pnpm","pnpm dlx skills add aibizmod\u002Faibizmod-service-web --skill typescript-migration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002FSKILL.md",true,[43,49,53,57,61,65,69,75,79,83,87,91,95,99,103],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"references\u002Fecosystem-compatibility.md","REFERENCE","参考文档",4905,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Freferences\u002Fecosystem-compatibility.md",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fmigration-playbooks.md",5026,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Freferences\u002Fmigration-playbooks.md",{"path":54,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fts-migrating-tool-guide.md",4862,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Freferences\u002Fts-migrating-tool-guide.md",{"path":58,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fts6-breaking-changes.md",14731,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Freferences\u002Fts6-breaking-changes.md",{"path":62,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fts7-go-rewrite.md",14137,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Freferences\u002Fts7-go-rewrite.md",{"path":66,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Funverified-claims.md",6281,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Freferences\u002Funverified-claims.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Faudit-ts7-breakers.sh","SCRIPT","脚本",10310,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Fscripts\u002Faudit-ts7-breakers.sh",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Fcompare-tsc7-tsc6.sh",3964,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Fscripts\u002Fcompare-tsc7-tsc6.sh",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fdetect-ts-version.sh",6192,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Fscripts\u002Fdetect-ts-version.sh",{"path":84,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002FREADME.md",1262,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Fscripts\u002FREADME.md",{"path":88,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fts6-deprecation-scan.sh",4397,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Fscripts\u002Fts6-deprecation-scan.sh",{"path":92,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":93,"sourceHtmlUrl":94},"templates\u002Fgithub-actions-tsc-tsc6.yml",1814,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Ftemplates\u002Fgithub-actions-tsc-tsc6.yml",{"path":96,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":97,"sourceHtmlUrl":98},"templates\u002Fpackage.side-by-side.json",915,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Ftemplates\u002Fpackage.side-by-side.json",{"path":100,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":101,"sourceHtmlUrl":102},"templates\u002Ftsconfig.ts6.json",1429,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Ftemplates\u002Ftsconfig.ts6.json",{"path":104,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":105,"sourceHtmlUrl":106},"templates\u002Ftsconfig.ts7.json",1120,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Ftypescript-migration\u002Fskills\u002Ftypescript-migration\u002Ftemplates\u002Ftsconfig.ts7.json",[108,115,122,129,136,143],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":18},"01M7846EAPZWCQ8C6G3AAMMR57","{TODO=lowercase-hyphen-case-name}","[TODO: Write comprehensive description in third-person. Start with \"This skill provides...\" or \"This skill should be used when...\"]\n\n[TODO: Add \"Use when\" scenarios - specific situations where Claude should use this skill]\n\n[TODO: Add keywords - technologies, use cases, error messages that should trigger this skill]","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Ftemplates\u002Fskill-skeleton\u002Fskills\u002Fskill-name\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":18},"01M7846A0WGDKJTDPD5QMHQVFV","zustand-state-management","Zustand state management for React with TypeScript. Use for global state, Redux\u002FContext API migration, localStorage persistence, slices pattern, devtools, Next.js SSR, or encountering hydration errors, TypeScript inference issues, persist middleware problems, infinite render loops.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fzustand-state-management\u002Fskills\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":18},"01M78463GGSP9B3JSF146B2MG0","zod","TypeScript-first schema validation and type inference. Use for validating API requests\u002Fresponses, form data, env vars, configs, defining type-safe schemas with runtime validation, transforming data, generating JSON Schema for OpenAPI\u002FAI, or encountering missing validation errors, type inference issues, validation error handling problems. Zero dependencies (2kb gzipped).","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fzod\u002Fskills\u002Fzod\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":18},"01M7845ZX17SVNNY7EDGPJHSBT","xss-prevention","XSS attack prevention with input sanitization, output encoding, Content Security Policy. Use for user-generated content, rich text editors, web application security, or encountering stored XSS, reflected XSS, DOM manipulation, script injection errors.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fxss-prevention\u002Fskills\u002Fxss-prevention\u002FSKILL.md",[],[],{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":18},"01M7845ST1H37YHSXWWQ9N0V0S","wordpress-plugin-core","WordPress plugin development with hooks, security, REST API, custom post types. Use for plugin creation, $wpdb queries, Settings API, or encountering SQL injection, XSS, CSRF, nonce errors.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":18},"01M7845PTWD5HWSTGP35Q8TFNY","woocommerce-dev-cycle","Run tests, linting, and quality checks for WooCommerce development. Use when running tests, fixing code style, or following the development workflow in WooCommerce projects.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fwoocommerce-dev-cycle\u002Fskills\u002Fwoocommerce-dev-cycle\u002FSKILL.md",[],[]]