How to set up a new TypeScript project
npx skills add https://github.com/microsoft/typescript-skills --skill typescript-project-setup
To set up a new repo with TypeScript, follow these steps unless you have reason to deviate from them:
npm install --save-dev typescript@latest (or use the user's package manager of choice)npx tsc --init to create a tsconfig.json filenode to types and npm install --save-dev @types/noderootDir to src and outDir to distmoduleResolution to bundlersrc directory and add your TypeScript files therepackage.json that runs tscIf you're running TypeScript code on the commandline, tsx is no longer necessary or recommended if node 22.18.0 or later is installed.
Enable erasableSyntaxOnly and rewriteRelativeImportExtensions in the tsconfig and run e.g. node src/index.ts directly.
Take microsoft/typescript-project-setup from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npm, npx.
Without those the skill loads but fails at the first command.