Clean Typescript

🌐Community
by academind · vlatest · Repository

Automatically refactors and cleans messy TypeScript codebases, improving readability and maintainability using Academind's proven techniques.

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 clean-typescript npx -- -y @trustedskills/clean-typescript
2

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

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

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

About This Skill

What it does

The clean-typescript skill helps to automatically format and lint TypeScript code, ensuring consistency and adherence to best practices. It leverages tools like ESLint and Prettier to identify and correct common coding errors, style violations, and formatting inconsistencies within a TypeScript project. This results in cleaner, more readable, and maintainable codebase.

When to use it

  • Code Review Automation: Automatically clean up code before submitting pull requests, reducing review time and ensuring consistent styling across the team.
  • New Project Setup: Quickly establish coding standards for new TypeScript projects by applying pre-configured linting and formatting rules.
  • Refactoring Existing Codebases: Apply a consistent style to legacy or poorly formatted TypeScript codebases, improving readability and maintainability.
  • Enforcing Coding Standards: Ensure all developers adhere to the project's established coding standards automatically.

Key capabilities

  • TypeScript linting with ESLint
  • Code formatting with Prettier
  • Automated error detection and correction
  • Consistent code styling across projects

Example prompts

  • "Clean up this TypeScript file: [file content]"
  • "Format the following TypeScript code according to our project’s style guide: [code snippet]"
  • "Run ESLint on this codebase and report any errors."

Tips & gotchas

The skill assumes a basic understanding of TypeScript. To get the best results, ensure your project has a .eslintrc.js and/or .prettierrc.js file configured with your desired rulesets.

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
academind
Installs
23

🌐 Community

Passed automated security scans.