Skip to content
Back to skills

Db Query

ASecurity

Consultar la base de datos PostgreSQL de PROSEGUIT, explorar schema, correr migraciones Prisma, y verificar datos. Usa para cualquier operacion de base de datos.

  • 2 stars
  • 0 votes
  • 1 copy
  • 5 views
  • Added September 9, 2026
databasesbashsqldockerdatabasebackend

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add ramiroquesada/PROSEGUIT --skill db-query --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Db Query?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Db Query
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ramiroquesada-db-query/badge)](https://www.skillsdirectory.com/skills/ramiroquesada-db-query)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: db-query
description: Consultar la base de datos PostgreSQL de PROSEGUIT, explorar schema, correr migraciones Prisma, y verificar datos. Usa para cualquier operacion de base de datos.
allowed-tools: Bash(npx prisma *), Bash(docker exec *)
argument-hint: "[consulta SQL o comando prisma]"
---

# DB Query - PROSEGUIT

Interactua con la base de datos PostgreSQL del proyecto.

## Conexion
- **Host**: localhost:5432
- **Database**: proseguit
- **User**: proseguit
- **Password**: proseguit

## Consultas SQL directas
```bash
docker exec -i proseguit-postgres psql -U proseguit -d proseguit -c "$ARGUMENTS"
```

## Explorar schema actual
```bash
cd backend && npx prisma db pull && npx prisma format
```

## Ver schema Prisma
Lee el archivo `backend/prisma/schema.prisma`

## Crear migracion
```bash
cd backend && npx prisma migrate dev --name "$ARGUMENTS"
```

## Resetear base de datos (CUIDADO)
```bash
cd backend && npx prisma migrate reset --force
```

## Generar Prisma Client despues de cambios al schema
```bash
cd backend && npx prisma generate
```

## Abrir Prisma Studio (UI visual de la DB)
```bash
cd backend && npx prisma studio
```

## Ver estado de migraciones
```bash
cd backend && npx prisma migrate status
```

## Contar registros por tabla
```bash
docker exec -i proseguit-postgres psql -U proseguit -d proseguit -c "
SELECT schemaname, relname AS table, n_live_tup AS row_count
FROM pg_stat_user_tables ORDER BY n_live_tup DESC;
"
```

## Reglas
- Siempre usar LIMIT en consultas de exploracion
- Nunca hacer DROP o DELETE sin confirmacion del usuario
- Preferir Prisma para migraciones, SQL directo solo para consultas

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.