Ts Morph Analyzer

🌐Community
by ratacat · vlatest · Repository

Analyzes text to identify and replace specific words or phrases with synonyms, enhancing clarity and stylistic variation.

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 ts-morph-analyzer npx -- -y @trustedskills/ts-morph-analyzer
2

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

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

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

About This Skill

What it does

The ts-morph-analyzer skill analyzes TypeScript code and extracts information about its structure. It can identify classes, interfaces, functions, variables, and their relationships within a codebase. This allows agents to understand the composition of TypeScript projects beyond just reading the text content.

When to use it

  • Code Understanding: When you need an AI agent to reason about the components of a TypeScript project, such as identifying dependencies or potential refactoring opportunities.
  • Automated Documentation Generation: To automatically generate documentation from TypeScript code by extracting class and function descriptions.
  • Static Analysis Tasks: When performing automated checks for code quality, style consistency, or security vulnerabilities within a TypeScript codebase.
  • Code Migration/Refactoring: To assist in migrating or refactoring large TypeScript projects by providing insights into the existing structure.

Key capabilities

  • Analyzes TypeScript source code.
  • Identifies classes and interfaces.
  • Extracts function definitions and variables.
  • Determines relationships between code elements.

Example prompts

  • "Analyze this TypeScript file: [file content] and tell me what classes are defined."
  • "What functions are used in this codebase? [codebase content]"
  • “Describe the structure of this TypeScript project, including all interfaces and their properties.”

Tips & gotchas

The skill requires valid TypeScript code as input. Incorrect or incomplete code may lead to inaccurate analysis results.

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
ratacat
Installs
20

🌐 Community

Passed automated security scans.