database-cli

database-cli is a skill for Claude Code from itsnex1s/awesome-claude-skills. It costs 23 tokens per session (2,008 once invoked), scanned A, original, MIT.

A command-line guide for managing databases with Prisma, a tool that connects application code to a database through a defined schema.

In plain words
What is it for?
Use it to create or apply migrations, update schemas, generate database code, seed data, inspect records, and query the database.
Why use it?
It organizes database structure changes and common tasks such as migrations, test data, and queries.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to create or apply migrations, update schemas, generate database code, seed data, inspect records, and query the database.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/itsnex1s/awesome-claude-skills/database-cli
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 itsnex1s/awesome-claude-skills --skill database-cli
Clone the repo
git clone --depth 1 https://github.com/itsnex1s/awesome-claude-skills

Made for: Claude Code.

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 database-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/itsnex1s/awesome-claude-skills/database-cli/github.svg)](https://agentmods.dev/skills/itsnex1s/awesome-claude-skills/database-cli)
Your own site
<a href="https://agentmods.dev/skills/itsnex1s/awesome-claude-skills/database-cli"><img src="https://agentmods.dev/badge/skills/itsnex1s/awesome-claude-skills/database-cli/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 database-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/itsnex1s/awesome-claude-skills/database-cli"><img src="https://agentmods.dev/badge/skills/itsnex1s/awesome-claude-skills/database-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,008 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.00023 $0.02008
Opus 5.5 $0.00009 $0.00803
Sonnet 5.5 $0.00005 $0.00402
Haiku 4.5 $0.00002 $0.00201

Measured 2mo ago against content hash 6ed9c4c926ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-cli 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 2mo 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.

skills/database-cli/SKILL.md · 402 lines

How it starts

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

database-cli

Database management with Prisma ORM - migrations, schema management, seeding, and database operations.

Installation

npm install prisma --save-dev
npm install @prisma/client
npx prisma init

Quick Reference

npx prisma generate          # Generate Prisma Client
npx prisma db push           # Push schema to DB (dev)
npx prisma migrate dev       # Create and apply migration
npx prisma migrate deploy    # Apply migrations (prod)
npx prisma studio            # Open GUI browser
npx prisma db seed           # Run seed script
npx prisma format            # Format schema file

Schema Management

prisma/schema.prisma

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model User {
  id        String   @id @default(cuid())
  email     String   @unique
  name      String?
  password  String
  role      Role     @default(USER)
  posts     Post[]
  profile   Profile?
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  @@index([email])
}

model Post {
  id        String   @id @default(cuid())
  title     String
  content   String?
  published Boolean  @default(false)
  author    User     @relation(fields: [authorId], references: [id], onDelete: Cascade)
  authorId  String
  tags      Tag[]
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  @@index([authorId])
}

model Profile {
  id     String  @id @default(cuid())
  bio    String?
  avatar String?
  user   User    @relation(fields: [userId], references: [id], onDelete: Cascade)
  userId String  @unique
}

model Tag {
  id    String @id @default(cuid())
  name  String @unique
  posts Post[]
}

enum Role {
  USER
  ADMIN
}

Migrations

Development

# Create migration from schema changes
npx prisma migrate dev --name init
npx prisma migrate dev --name add_user_role

# Apply without creating migration (prototyping)
npx prisma db push

# Reset database (drops all data!)
npx prisma migrate reset

Read the full file on GitHub · 402 lines

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. 2mo ago First seen · 402 lines · 23 tokens per session scan A 6ed9c4c926ba

Subscribe to this mod's changes

database-cli is a skill published in the GitHub repository itsnex1s/awesome-claude-skills (5 stars, last pushed 8mo ago), licensed MIT. It adds 23 tokens to every session and 2,008 once invoked, about $0.0001 per session on Opus 5.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

database-cli compared with skills from other repositories

database-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-cliitsnex1s/awesome-claude-skillsSkill58mo agoMITA23Claude Code
obsidian-baseskepano/obsidian-skillsSkill51k1mo agoMITA63Claude Code
x-osvx-cmd/x-cmdSkill4.7k9d agoApache-2.0A72Claude Code, Codex
sql-explainermergisi/awesome-openclaw-agentsSkill4.1k4d agoMITA20Claude Code, Codex
building-agentsericrisco/rsc-harnessSkill5554d agoMITA85Claude Code, Codex
postgresdbericrisco/rsc-harnessSkill5554d agoMITA91Claude Code, Codex
db-migrationsericrisco/rsc-harnessSkill5554d agoMITA90Claude Code, Codex