databases

databases is a skill for Claude Code from DojoCodingLabs/code-sensei. It costs 35 tokens per session (703 once invoked), scanned A, original, MIT.

A teaching guide to databases, SQL, data models, and database libraries. It explains how permanent stored data works and covers common systems such as PostgreSQL and SQLite.

In plain words
What is it for?
Use it when working with database tables, SQL queries, schemas, ORMs, migrations, or application code that reads and writes stored data.
Why use it?
It helps developers understand database concepts and choose or change data storage without relying on unexplained terminology.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the code-sensei plugin — 10 skills, 10 commands, 1 agent, 3 hooks shipped together

Good fit Use it when working with database tables, SQL queries, schemas, ORMs, migrations, or application code that reads and writes stored data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dojocodinglabs/code-sensei/databases
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 DojoCodingLabs/code-sensei --skill databases
Clone the repo
git clone --depth 1 https://github.com/DojoCodingLabs/code-sensei

Made for: Claude Code.

Or install code-sensei, the plugin that ships this one along with the rest of its 10 skills, 10 commands, 1 agent, 3 hooks.

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 databases

README.md
[![agentmods](https://agentmods.dev/badge/skills/dojocodinglabs/code-sensei/databases/github.svg)](https://agentmods.dev/skills/dojocodinglabs/code-sensei/databases)
Your own site
<a href="https://agentmods.dev/skills/dojocodinglabs/code-sensei/databases"><img src="https://agentmods.dev/badge/skills/dojocodinglabs/code-sensei/databases/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 databases

Your own site · 80×15
<a href="https://agentmods.dev/skills/dojocodinglabs/code-sensei/databases"><img src="https://agentmods.dev/badge/skills/dojocodinglabs/code-sensei/databases.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 703 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.00035 $0.00703
Opus 5.5 $0.00014 $0.00281
Sonnet 5.5 $0.00007 $0.00141
Haiku 4.5 $0.00003 $0.00070

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

Security

Grade A, and why

databases 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 1mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • databases — 100% identical, 0 lines differ
skills/databases/SKILL.md · 45 lines

How it starts

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

Databases — CodeSensei Teaching Module

What is a Database?

  • Analogy: A super-powered spreadsheet that your app can read and write to automatically. Each "table" is like a sheet, each "row" is an entry, each "column" is a field.
  • Key insight: Without a database, your app forgets everything when it restarts. Databases make data PERMANENT.

SQL (Structured Query Language)

  • Analogy: SQL is the language you use to talk to the database. Like asking a librarian: "Find me all books by this author, sorted by year."
  • Essential operations:
    • SELECT — "Show me data" → SELECT * FROM users (show all users)
    • INSERT — "Add new data" → INSERT INTO users (name, email) VALUES ('Juan', '[email protected]')
    • UPDATE — "Change existing data" → UPDATE users SET name = 'Juan C' WHERE id = 1
    • DELETE — "Remove data" → DELETE FROM users WHERE id = 1
    • WHERE — "But only the ones that match this condition"
  • Quiz: "Which SQL word would you use to find all users who signed up today?"

Types of Databases

  • PostgreSQL — the reliable all-rounder. Most vibecoded apps use this. Think of it as Excel but 1000x more powerful.
  • SQLite — a lightweight database stored in a single file. Good for small projects. Like a notepad vs a full filing system.
  • MongoDB — stores data as flexible documents (JSON-like) instead of rigid tables. Like storing folders of papers vs a spreadsheet.

ORMs (Object-Relational Mappers)

  • Analogy: An ORM is a translator between your code and the database. Instead of writing SQL directly, you write code in your programming language and the ORM converts it to SQL.
  • Prisma (most common in vibecoded projects):
    • prisma.user.findMany() → becomes SELECT * FROM users
    • prisma.user.create({ data: { name: "Juan" } }) → becomes INSERT INTO users...
  • Key insight: ORMs make databases easier to work with, but the SQL is still happening underneath.

Schemas & Migrations

  • Schema — the blueprint of your database. Defines what tables exist and what columns each has.
  • Migration — a change to the blueprint. Like remodeling a room — you write instructions for the change, then apply them.
  • Analogy: The schema is your building's floor plan. A migration is the renovation permit that says "add a new room here."

Read the full file on GitHub · 45 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. 1mo ago First seen · 45 lines · 35 tokens per session scan A 39fa5dbec91f

Subscribe to this mod's changes

databases is a skill published in the GitHub repository DojoCodingLabs/code-sensei (14 stars, last pushed 22d ago), licensed MIT. It adds 35 tokens to every session and 703 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-30.