CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

generate-entity

When a user requests an entity, aggregate, or persistence model, the skill guides aggregate-boundary and schema checks, JPA package placement, and modeling choices for roots, value objects, and DTOs. It requires pairing the entity sketch with a Flyway migration note, repository-query impact flags, and test ideas for invariants.

Quality

84%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Role: Skill — entity/aggregate sketch generator

Skill: generate-entity

Trigger: user asks for an entity, aggregate, or persistence model.

Method

  1. Confirm aggregate root and invariants with DDD rules (/.claude/rules/ddd.md) and schema ownership (/.claude/rules/schema.md). Prefer skill schema-design when table boundaries are unclear.
  2. Place JPA types under com.orbit.entity (package-by-layer — never hexagonal packages).
  3. Prefer domain model clarity over anemic getters/setters. On aggregate roots, use the explicit major Lombok set (@Getter/@Setter/@Builder/@NoArgsConstructor/@AllArgsConstructor/id @EqualsAndHashCode — not @Data). Value objects and API DTOs use @Data+@Builder+args ctors (lombok.md / ADR-0004). Do not introduce new VO/API records.
  4. Persist single-field VOs as @Embeddable with @Embedded/@EmbeddedId + @AttributeOverride on the aggregate — no AttributeConverter classes (ADR-0005).
  5. Pair with Flyway migration via generate-flyway — never rely on ddl-auto.
  6. Flag repository query impacts.
  7. Output: entity sketch in entity/ + migration note + test ideas for invariants.
Repository

chandrakanthbalaraman/spring-boot-microservices

Path

.cursor/skills/generate-entity/SKILL.md

Last updated
First committed
Purpose
DevelopmentTesting and QADatabase management
Form
Workflow

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.