database

database is an agent for Claude Code from thomascasali/claude-kb-workflow. It costs 0 tokens per session (3,766 once invoked), scanned A, original, no licence file.

A database engineering agent covering MySQL, MongoDB, PostgreSQL, and Firestore, including data structures, migrations, indexes, queries, transactions, and backups.

In plain words
What is it for?
Use it to design schemas, write or optimize queries, create migrations and indexes, manage relationships or document data, handle PostgreSQL JSONB, and back up or restore databases.
Why use it?
It helps with database work across different application stacks, from designing how data is stored to investigating slow queries and restoring saved data.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to design schemas, write or optimize queries, create migrations and indexes, manage relationships or document data, handle PostgreSQL JSONB, and back up or restore databases.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/thomascasali/claude-kb-workflow/database
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.

Clone the repo
git clone --depth 1 https://github.com/thomascasali/claude-kb-workflow

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/thomascasali/claude-kb-workflow/database"><img src="https://agentmods.dev/badge/agents/thomascasali/claude-kb-workflow/database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,766 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.00000 $0.03766
Opus 5.5 $0.00000 $0.01506
Sonnet 5.5 $0.00000 $0.00753
Haiku 4.5 $0.00000 $0.00377

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

Security

Grade A, and why

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

agents/database.md · 516 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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 · 516 lines · 0 tokens per session scan A 569bc929d504

Subscribe to this mod's changes

database is an agent published in the GitHub repository thomascasali/claude-kb-workflow (2 stars, last pushed 8d ago), with no licence file. It costs nothing until one of its globs matches a file; then it loads 3,766 tokens. 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

Other agents, from other repositories

db-migration-engineer

Use when planning or executing a destructive change against a production database — schema migrations with backfills, periodic data imports, one-shot RPCs, drop-constraint operations, anything that mutates prod tables and cannot be trivially undone. Sister agent to db-schema-architect (schemas) and…

nonlinear-xyz/factory-kit · 155 tokens

db-schema-architect

Use when designing or modifying database schemas, migrations, multi-tenant data models, or polymorphic table structures. Carries the factory's data-layer conventions — Drizzle with domain-partitioned schema modules, shared.ts with timestamps helper and pgTableCreator, org-keyed FKs with cascade delete, JSONB envelope…

nonlinear-xyz/factory-kit · 126 tokens

data-modeler

Data Modeler. Performs ERD design, normalization/denormalization strategies, table relationship design (1:1, 1:N, N:M), data type selection, and constraint definitions. Proficient in both RDBMS (PostgreSQL, MySQL) and NoSQL (MongoDB, DynamoDB).

revfactory/harness-100 · 69 tokens

data-manager

Data manager. Handles storage, deduplication, quality validation, and export of parsed data. Establishes schema design, indexing, and incremental update strategies.

revfactory/harness-100 · 34 tokens

database-engineer

Use when creating or modifying database schemas, migrations, or SQL scripts. Follows PostgreSQL conventions: NOT NULL for required fields, plural table naming, and TEXT with CHECK constraints over VARCHAR/CHAR.

CodelyTV/agentic_programming-course · 44 tokens

wiki-dev-eng-schema

Senior Fullstack Bun/TypeScript Engineer — Lane B (Schema, Ontology & Multi-vault) on the claude-wiki-pages development team. Owns ontology-profile-v1 (the predicate domain→range table and enum list), staleness derivation, the opt-in predicate range check, template/structural conformance, the multi-vault registry with…

odere-pro/claude-wiki-pages-plugin · 161 tokens