Typescript Strict Migrator

🌐Community
by patricio0312rev · vlatest · Repository

Automatically migrates TypeScript codebases to stricter compiler options, improving type safety and reducing potential errors.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add typescript-strict-migrator npx -- -y @trustedskills/typescript-strict-migrator
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "typescript-strict-migrator": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/typescript-strict-migrator"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The TypeScript Strict Migrator skill enables AI agents to incrementally migrate TypeScript codebases to stricter compiler options, ultimately improving type safety and reducing potential runtime errors. It follows a phased approach, enabling flags one at a time and providing guidance on fixing resulting errors. The skill helps teams systematically adopt best practices for more robust and maintainable TypeScript projects.

When to use it

  • When you want to improve the type safety of an existing TypeScript codebase.
  • For teams looking to gradually adopt stricter compiler options without breaking changes.
  • To automate parts of the process of migrating a project towards full tsconfig.json strict mode.

Key capabilities

  • Incremental Migration: Enables TypeScript compiler flags one at a time, minimizing disruption and allowing for focused error correction.
  • Error Correction Guidance: Provides examples and strategies for addressing type errors introduced by stricter compiler options.
  • TypeScript Configuration Management: Works with tsconfig.json files to manage the migration process.
  • Type Guard Implementation: Encourages the use of runtime type checking through type guards.
  • Utility Type Usage: Promotes leveraging TypeScript utility types for safe and effective type transformations.

Example prompts

  • "Migrate this file to Phase 1 strict mode settings."
  • "Enable strictNullChecks in my project and suggest fixes for any errors."
  • "What are the next steps after enabling noImplicitAny?"

Tips & gotchas

  • The skill requires a TypeScript project with an existing tsconfig.json file.
  • Migration should be performed incrementally, as enabling all strict flags at once can introduce many errors simultaneously.
  • Understanding of basic TypeScript concepts and type annotations is helpful for interpreting error messages and implementing suggested fixes.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
patricio0312rev
Installs
31

🌐 Community

Passed automated security scans.