Export Public Types

🌐Community
by marius-townhouse · vlatest · Repository

This skill exports publicly accessible TypeScript types from your project for seamless integration into other systems or libraries.

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 export-public-types npx -- -y @trustedskills/export-public-types
2

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

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

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

About This Skill

What it does

This skill allows an AI agent to export public types from a TypeScript project. It facilitates sharing and reusing type definitions across different modules or projects, improving code maintainability and reducing redundancy. The exported types become accessible for use in other parts of the codebase or even external libraries.

When to use it

  • When you need to share custom data structures defined in one module with another.
  • To create a public API for your TypeScript library exposing specific type information.
  • For generating documentation that includes the available types within a project.
  • To ensure consistent typing across multiple components or services.

Key capabilities

  • Exports specified types from a TypeScript file.
  • Creates a new .d.ts file containing the exported types.
  • Allows for selective type exports, rather than exporting everything.

Example prompts

  • "Export the User and Product types from src/models.ts."
  • “Create a public types definition for the Order type in order.ts.”
  • "Generate a .d.ts file containing all exported types from my project’s source code."

Tips & gotchas

This skill assumes you have an existing TypeScript project with defined types. It's important to ensure that the specified types are actually declared within the target files for successful export.

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.