Skip to content
Skill

db

by majiayu000

AI Summary

A Prisma/PostgreSQL database management skill that helps developers modify Motivia's schema, add tables/fields/relations, and execute migrations. Essential for anyone working on the Motivia project's data layer.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "db" skill in my project.

Please run this command in my terminal:
# Install skill into your project (2 files)
mkdir -p .claude/skills/db && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/db/SKILL.md "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/db/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/db/metadata.json "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/db/metadata.json"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Gère le schéma Prisma et les migrations de Motivia. Utilise ce skill quand l'utilisateur demande de modifier la base de données, ajouter une table, un champ, une relation, ou effectuer une migration. PostgreSQL avec Prisma ORM.

Stack technique

• ORM: Prisma • BDD: PostgreSQL (Neon) • Fichier schema: prisma/schema.prisma

Développement

pnpm prisma generate # Générer le client Prisma pnpm prisma migrate dev # Créer et appliquer une migration pnpm prisma migrate dev --name add_feature # Migration nommée pnpm prisma db push # Push direct (dev seulement)

Production

pnpm prisma migrate deploy # Appliquer les migrations

Utilitaires

pnpm prisma studio # Interface graphique pnpm prisma db seed # Exécuter le seed pnpm prisma format # Formater le schema `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
Adoption100+ stars on GitHub
118 ★ · Growing
DocsREADME + description
Well-documented

GitHub Signals

Stars118
Forks19
Issues1
Updated1mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code