Typescript Detector

🌐Community
by alex-popov-tech · vlatest · Repository

Identifies TypeScript code blocks within files, extracting relevant information for automated analysis and refactoring.

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

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

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

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

About This Skill

What it does

The typescript-detector skill identifies whether a given file contains TypeScript code. It can analyze files based on their content to determine if they utilize TypeScript syntax and features, rather than relying solely on file extensions. This allows for accurate detection even when files have incorrect or missing extensions.

When to use it

  • Code analysis pipelines: Integrate into build processes to conditionally execute TypeScript-specific tasks (e.g., compilation).
  • File type identification: Determine the programming language of a file without relying on its extension, useful for automated tooling.
  • Refactoring tools: Identify TypeScript files that need conversion or modification during code refactoring efforts.
  • Content filtering: Filter files based on whether they contain TypeScript code for specific operations.

Key capabilities

  • Content-based TypeScript detection
  • Accurate identification regardless of file extension
  • Integration into automated workflows

Example prompts

  • "Is this file a Typescript file? [file content]"
  • "Analyze the following code and tell me if it's written in TypeScript: [code snippet]"
  • "Detect if the provided text contains TypeScript syntax: [text block]"

Tips & gotchas

The skill relies on analyzing the content of a file. Very short or incomplete files might lead to inaccurate results. Ensure sufficient code is provided for reliable detection.

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
alex-popov-tech
Installs
2

🌐 Community

Passed automated security scans.