framework:make:entity

Generate immutable Doctrine entities with repositories for Symfony projects.

9|2|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/atournayre/claude-marketplace --skill framework-make-entity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framework:make:entity
Source: https://github.com/atournayre/claude-marketplace/tree/main/framework/skills/make-entity
Command: npx skills add https://github.com/atournayre/claude-marketplace --skill framework-make-entity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the repetitive boilerplate coding required to create Doctrine entities and repositories, automatically implementing best practices and design patterns so you can focus on business logic.

Core Features & Use Cases

  • Complete Entity Generation: Creates Doctrine entities with proper ORM attributes, UUID IDs, and repository classes.
  • Elegant Objects Compliance: Enforces immutability, private constructors, static factories, and interface implementations.
  • Use Case: When starting a new Symfony project, use this Skill to generate a Product entity with name, price, and stock properties - automatically creating all necessary files with proper architecture patterns.

Quick Start

Use skill framework:make:entity to create a new Product entity with properties name:string, price:float, and stock:int.

Frequently Asked Questions about framework:make:entity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Doctrine entity with repository in Symfony?

Generate a Doctrine entity with repository using this Skill to automatically create immutable domain entities with UUID IDs, private constructors, static factories, final classes, and integrated repository interfaces—scaffolding complete ORM-mapped files under src/Entity and src/Repository without manual boilerplate.

What is Elegant Objects and how does it apply to Doctrine entities?

Elegant Objects is a design philosophy enforcing immutability and object purity. This Skill applies it to Doctrine entities by generating private properties with getters only (no setters), private constructors, static factory methods, and final classes—ensuring entities remain immutable and testable.

Can I use this Skill to scaffold multiple entities with different properties?

Yes. Specify entity name and properties—name:string, price:float, stock:int—and the Skill generates complete entities with ORM attributes, UUID handling, repository classes, and interfaces for each, following Elegant Objects principles automatically.

Do I need to manually write repository interfaces and classes?

No. The Skill automatically generates both repository classes and interfaces as final implementations, fully integrated with Doctrine ORM mappings and UUID ID handling, eliminating manual scaffolding work.

What's the advantage of using this Skill over manual entity creation?

This Skill eliminates repetitive boilerplate by enforcing best practices—immutability, design patterns, ORM compliance—automatically across all generated entities, letting you focus on business logic instead of structural code.