Unify Types
Unifies similar type definitions across your project, reducing redundancy and improving code consistency for cleaner development.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add unify-types npx -- -y @trustedskills/unify-types
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"unify-types": {
"command": "npx",
"args": [
"-y",
"@trustedskills/unify-types"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The unify-types skill helps resolve type mismatches in TypeScript code. It intelligently infers and combines types from disparate sources, allowing for smoother integration of different data structures or function return values. This reduces the need for manual type annotations and improves code clarity by automatically aligning types where possible.
When to use it
- When integrating components with differing type definitions.
- To simplify complex union types in function signatures.
- When dealing with legacy JavaScript code that lacks explicit TypeScript typing.
- To reduce boilerplate when combining data from multiple APIs with different response formats.
Key capabilities
- Type inference and combination
- Automatic alignment of disparate type definitions
- Reduction of manual type annotations
- Improved code clarity
Example prompts
- "Unify the types returned by these two functions:
functionAandfunctionB." - "Combine the types of
dataType1anddataType2into a single unified type." - "Resolve the type conflict between this variable and this function's return value."
Tips & gotchas
This skill requires a basic understanding of TypeScript types and syntax. While it automates much of the process, reviewing the inferred types is recommended to ensure accuracy and prevent unexpected behavior.
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.