Avoid Unnecessary Type Params

🌐Community
by marius-townhouse · vlatest · Repository

This skill automatically removes redundant `type` parameters from TypeScript code, improving readability and reducing verbosity.

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 avoid-unnecessary-type-params npx -- -y @trustedskills/avoid-unnecessary-type-params
2

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

~/.claude/settings.json
{
  "mcpServers": {
    "avoid-unnecessary-type-params": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/avoid-unnecessary-type-params"
      ]
    }
  }
}

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

About This Skill

What it does

This skill helps AI agents avoid specifying unnecessary type parameters when calling functions in TypeScript. It identifies situations where the compiler can infer types and suggests removing explicit type arguments, leading to cleaner and more readable code. The skill promotes concise function calls while maintaining type safety.

When to use it

  • When refactoring existing TypeScript codebases to improve readability.
  • During code reviews to identify overly verbose function calls.
  • While writing new TypeScript code to establish a consistent coding style.
  • To simplify complex function signatures and reduce visual clutter.

Key capabilities

  • Identifies unnecessary type arguments in function calls.
  • Suggests removing explicit type parameters where inference is possible.
  • Promotes cleaner, more readable TypeScript code.

Example prompts

  • "Review this TypeScript code for unnecessary type parameters."
  • "Can you simplify these function calls by removing redundant type information?"
  • "Analyze the following code snippet and suggest improvements related to type parameter usage."

Tips & gotchas

This skill is most effective when working with well-typed TypeScript projects. It relies on the compiler's ability to infer types, so complex or poorly defined types may limit its effectiveness.

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
marius-townhouse
Installs
4

🌐 Community

Passed automated security scans.