Typeorm Entity Generator
Generates TypeScript entities from database schemas using TypeORM, streamlining development and reducing boilerplate code for ORM projects.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add typeorm-entity-generator npx -- -y @trustedskills/typeorm-entity-generator
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"typeorm-entity-generator": {
"command": "npx",
"args": [
"-y",
"@trustedskills/typeorm-entity-generator"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill generates TypeORM entities based on a provided schema or description. It can create the necessary TypeScript files with properties, relationships, and basic methods for interacting with your database. The generated code is intended to accelerate development by automating repetitive boilerplate tasks related to data models.
When to use it
- You're starting a new project using TypeORM and need to quickly generate entity definitions.
- Your existing database schema changes, and you want to update your entity classes automatically.
- You have a complex data model with many relationships and properties that would be tedious to define manually.
- You are refactoring an existing codebase and want to standardize on TypeORM entities.
Key capabilities
- Generates TypeScript files for TypeORM entities.
- Creates entity definitions based on provided schema or description.
- Automates the creation of properties, relationships, and basic methods.
Example prompts
- "Generate a TypeORM entity for a 'User' with fields: id (integer, primary key), name (string), email (string)."
- "Create a TypeORM entity based on this JSON schema: { 'name': 'Product', 'fields': [ { 'type': 'number', 'key': true, 'name': 'id' }, { 'type': 'string', 'name': 'description' } ] }"
- “Generate an entity for ‘Order’ that has a one-to-many relationship with ‘OrderItem’.”
Tips & gotchas
- The quality of the generated entities depends heavily on the clarity and completeness of the provided schema or description. Ensure your input is accurate to avoid errors.
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.