mcpbeat Sign in

Typescript Project Setup Agent Skill

How to set up a new TypeScript project

300 tokens
context cost
SKILL.md, read when the skill is used
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
0
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/microsoft/typescript-skills --skill typescript-project-setup

The instruction itself

as written by the author

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)
  • Run npx tsc --init to create a tsconfig.json file
  • Read the tsconfig.json it generates and make the edits suggested in that file:
  • If running server-side or local scripts, add node to types and npm install --save-dev @types/node
  • Set rootDir to src and outDir to dist
  • If using vite, esbuild, or similar bundlers, set moduleResolution to bundler
  • If you have more specific info from the bundler info, defer to it instead
  • Create a src directory and add your TypeScript files there
  • Add a build script to your package.json that runs tsc
  • If using a bundler, add the appropriate build script for it as well

If 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.

How to use it

Copy the folder

Take microsoft/typescript-project-setup from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

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.

Install what it needs

The instructions reference npm, npx. Without those the skill loads but fails at the first command.