From sc-js
Scans JavaScript/TypeScript code for outdated patterns and deprecated APIs, then proposes a migration plan. Handles ES5 remnants (var, callbacks, prototype patterns), CommonJS→ESM migration, Vue 2→3 (Options API → Composition API, Vuex → Pinia), Svelte 4→5 (runes: $state/$derived/$effect/$props, slots→snippets, on: directives → DOM attributes), SvelteKit 1→2 (redirect throws, $app/state), TypeScript strictness evolution, and framework version migrations (Nuxt 2→3). Use when the user says "modernize", "upgrade to Vue 3", "migrate to ESM", "this uses old JS", "remove Vuex", "this is Vue 2 code", "migrate to runes", "upgrade to Svelte 5", or when deprecated patterns appear in the codebase. Do NOT use for dependency management (npm/pnpm), performance optimization (web-optimize), or general refactoring unrelated to version compatibility.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sc-js:legacysonnetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Detects version-specific and deprecated patterns in the JS/TS codebase, then produces a migration plan and applies changes file by file.
Detects version-specific and deprecated patterns in the JS/TS codebase, then produces a migration plan and applies changes file by file.
| # | Action | Role | Input |
|---|---|---|---|
| 01 | scan | Detect legacy patterns and version gaps | path, target version/framework |
| 02 | migrate | Apply upgrade transformations | scan manifest, direction |
Always sequential: scan → migrate.
scan reads package.json, tsconfig.json, and source files; detects current and target versions; finds deprecated/missing patterns; emits a structured manifestmigrate reads the manifest and applies transformations file by filereferences/js-versions.md — ES version change tables (ES5→ES2024, CommonJS→ESM)references/vue-migration.md — Vue 2→3, Vuex→Pinia, Nuxt 2→3 breaking changesreferences/svelte-migration.md — Svelte 4→5 runes, SvelteKit 1→2 breaking changesreferences/typescript-strictness.md — TS strict flags and version-specific featurespackage.json before scanning.node_modules/ or .nuxt/."type": "module" in package.json before converting require().Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub rebellioussmile/my-claude-marketplace --plugin sc-js