Export Public Types
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.
Run in terminal (recommended)
claude mcp add export-public-types npx -- -y @trustedskills/export-public-types
Or manually add to ~/.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.tsfile containing the exported types. - Allows for selective type exports, rather than exporting everything.
Example prompts
- "Export the
UserandProducttypes fromsrc/models.ts." - “Create a public types definition for the
Ordertype inorder.ts.” - "Generate a
.d.tsfile 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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.