schema-gen
Skill2 starsChanged 6 months agoMITView on GitHub
Génère un schéma de base de données complet avec migrations, types et repository de base.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- powerczuk/seo-machinetheir own version, first seen Sep 3, 2026
- sharozdawa/schema-gentheir own version, first seen Mar 21, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- sharozdawa/schema-gen★ 1same name
- powerczuk/seo-machine★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- apexSkill
- api-genSkill
- assets-pipelineSkill
- brainstormSkill
- debugSkill
- deep-updateSkill
- deploy-checkSkill
- depsSkill
- docs-genSkill
- e2e-testsSkill
- env-setupSkill
- featureSkill
- fixSkill
- forkSkill
- meta-promptSkill
- migrateSkill
- onboardSkill
- oneshotSkill
- perfSkill
- prdSkill
- qualitySkill
- refactorSkill
- reviewSkill
- saas-initSkill
- scope-taskSkill
- session-startSkill
- stripeSkill
- ui-auditSkill
- uiSkill
- variationsSkill
The file
Files
Arguments
entity: Nom de l'entité (ex: "Invoice", "Project")fields: Description des champs en langage naturel
Instructions
1. Détection ORM
Lire .claude/memory/stack.md ou détecter :
drizzle.config.ts→ Drizzle ORMschema.prisma→ Prismaalembic/→ SQLAlchemy- Sinon → demander à l'utilisateur
2. Génération du Schema
Créer le fichier de schema avec :
- Tous les champs demandés avec types appropriés
id: UUID v7 par défaut (ordonné chronologiquement)organizationId: FK pour multi-tenancy (sauf si explicitement exclu)createdAt: timestamp, default nowupdatedAt: timestamp, auto-updatedeletedAt: timestamp nullable (soft delete)- Index sur les FK et champs fréquemment recherchés
- Relations définies explicitement
3. Fichiers Générés
- Schema/Migration : Dans le dossier de l'ORM
- Entity type dans
core/entities/{entity}.ts:- Type TypeScript pur (pas d'import ORM)
- Validation via Zod schema
- Port dans
core/ports/i-{entity}-repo.ts:- Interface du repository avec CRUD de base
- Adapter dans
adapters/db/{entity}-repo.ts:- Implémentation du port avec l'ORM choisi
- Inclut soft delete, pagination, filtres de base
4. Validation
- Générer et exécuter la migration
tsc --noEmit- Mettre à jour
.claude/memory/domains.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

