framework:make:entity

framework:make:entity is a skill for Claude Code from atournayre/claude-marketplace. It costs 19 tokens per session (1,180 once invoked), scanned A, original, MIT.

A generator for a Doctrine entity and its repository files. Doctrine is a PHP library that maps application objects to database records; a repository contains code for retrieving them.

In plain words
What is it for?
Use it to define an entity's name and typed properties, then generate the entity, repository, and repository interface under src/.
Why use it?
It creates the related model and data-access files together while following the project's coding principles.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the framework plugin — 4 skills shipped together

Good fit Use it to define an entity's name and typed properties, then generate the entity, repository, and repository interface under src/.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atournayre/claude-marketplace/make-entity
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add atournayre/claude-marketplace --skill make-entity
Clone the repo
git clone --depth 1 https://github.com/atournayre/claude-marketplace

Made for: Claude Code.

Or install framework, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for framework:make:entity

README.md
[![agentmods](https://agentmods.dev/badge/skills/atournayre/claude-marketplace/make-entity/github.svg)](https://agentmods.dev/skills/atournayre/claude-marketplace/make-entity)
Your own site
<a href="https://agentmods.dev/skills/atournayre/claude-marketplace/make-entity"><img src="https://agentmods.dev/badge/skills/atournayre/claude-marketplace/make-entity/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for framework:make:entity

Your own site · 80×15
<a href="https://agentmods.dev/skills/atournayre/claude-marketplace/make-entity"><img src="https://agentmods.dev/badge/skills/atournayre/claude-marketplace/make-entity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,180 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.01180
Opus 5 $0.00010 $0.00590
Sonnet 5 $0.00004 $0.00236
Haiku 4.5 $0.00002 $0.00118

Measured 10d ago against content hash d7c41b3bb3d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

framework:make:entity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

framework/skills/make-entity/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Framework Make Entity Skill

Génère une entité Doctrine complète avec son repository selon les principes Elegant Objects.

Variables

  • {EntityName} - Nom de l'entité en PascalCase (ex: Product)
  • {entityName} - Nom de l'entité en camelCase (ex: product)
  • {namespace} - Namespace du projet (défaut: App)
  • {properties} - Liste des propriétés avec types (name:string, price:float)

Outputs

  • src/Entity/{EntityName}.php
  • src/Repository/{EntityName}Repository.php
  • src/Repository/{EntityName}RepositoryInterface.php

Instructions à Exécuter

IMPORTANT : Exécute ce workflow étape par étape :

1. Demander le nom de l'entité

  • Utilise AskUserQuestion pour demander :
    Question: "Quel est le nom de l'entité à créer ?"
    Header: "Entité"
    
  • Valide que le nom est en PascalCase (première lettre majuscule)
  • Stocke dans EntityName
  • Génère entityName = EntityName en camelCase (première lettre minuscule)

2. Demander les propriétés de l'entité

  • Utilise AskUserQuestion pour demander :
    Question: "Quelles sont les propriétés de l'entité ? Format: name:type,email:string,age:int"
    Header: "Propriétés"
    
  • Parse la liste des propriétés
  • Pour chaque propriété, extrais le nom et le type

3. Vérifier les contracts

  • Exécute ls src/Contracts/ avec Bash
  • Si le répertoire n'existe pas :
    • Affiche : ⚠️ Contracts manquants - Génération automatique
    • Utilise Skill pour appeler framework:make:contracts

4. Détecter le namespace du projet

  • Lis composer.json avec Read
  • Extrais le namespace depuis autoload.psr-4
  • Si non trouvé, utilise App par défaut

5. Générer l'entité

  • Créé le fichier src/Entity/{EntityName}.php avec Write
  • Structure de classe :
    namespace {namespace}\Entity;
    
    use Doctrine\ORM\Mapping as ORM;
    use {namespace}\Repository\{EntityName}Repository;
    
    #[ORM\Entity(repositoryClass: {EntityName}Repository::class)]
    final class {EntityName}
    {
        #[ORM\Id]
        #[ORM\Column(type: 'uuid', unique: true)]
        private string $id;
    
        // Propriétés générées depuis la liste
    
        private function __construct() {}
    
        public static function create({params}): self
        {
            $self = new self();
            $self->id = Uuid::v7();
            // Affectations des propriétés
            return $self;
        }
    
        // Getters pour chaque propriété
    }
    

Read the full file on GitHub · 168 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 168 lines · 19 tokens per session scan A d7c41b3bb3d6

Subscribe to this mod's changes

framework:make:entity is a skill published in the GitHub repository atournayre/claude-marketplace (9 stars, last pushed 6mo ago), licensed MIT. It adds 19 tokens to every session and 1,180 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

truss-schema

Ground a database schema change in this application's real structure using Laravel Truss. Use when adding or altering tables, columns, indexes, or foreign keys, when a migration needs to match what is already there, or when you need to know what a migration actually changed. Structure only, never data.

albertoarena/laravel-truss · 63 tokens

laravel-database-optimization

Laravel database optimization patterns. Use when writing Eloquent queries, creating migrations, configuring caching, debugging slow queries, or optimizing database performance. Triggers on tasks involving N+1 queries, indexing, Redis caching, pagination, or database transactions.

AsyrafHussin/agent-skills · 55 tokens

check-batch-processing

Analyzes PHP code for batch processing issues. Detects single-item vs bulk operations, missing batch inserts, individual API calls in loops, transaction overhead.

dykyi-roman/awesome-claude-code · 35 tokens

eloquent-patterns

Eloquent ORM best practices: query builders, scopes, relations, N+1 prevention, batch operations, soft deletes, model events, raw queries when needed. Apply when: writing or reviewing Eloquent queries and model interactions. Activated automatically by laravel-plugin/stack.md as a convention skill for the development…

AratKruglik/claude-sdlc · 68 tokens

laravel-migrations

Use when designing a database schema or managing Laravel 13 migrations — Schema Builder, columns, indexes, foreign keys, or seeders.

fusengine/agents · 32 tokens

laravel-eloquent

Eloquent and query-layer engineering rules for Laravel — eliminating N+1, choosing a pagination strategy, short atomic transactions, casts and scopes on the model, where raw SQL is allowed, and how migrations declare the schema those queries depend on. Use when writing or reviewing Eloquent models, migrations, query…

Foysal50x/skills · 93 tokens