database-navigator

database-navigator is an agent for coding agents from arpitnath/claude-capsule-kit. It costs 43 tokens per session (941 once invoked), scanned A, original, MIT.

A read-only guide for exploring database schemas and data models. A schema describes tables, fields, rules, indexes, and the relationships between stored data.

In plain words
What is it for?
Use it to inspect tables, fields, relationships, indexes, migrations, models, common queries, and possible database performance concerns.
Why use it?
It helps developers understand unfamiliar databases and investigate data-related issues without changing production data.

Agent

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.

agentmods
npx agentmods add agents/arpitnath/claude-capsule-kit/database-navigator
Clone the repo
git clone --depth 1 https://github.com/arpitnath/claude-capsule-kit

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-navigator

README.md
[![agentmods](https://agentmods.dev/badge/agents/arpitnath/claude-capsule-kit/database-navigator.svg)](https://agentmods.dev/agents/arpitnath/claude-capsule-kit/database-navigator)
Your own site
<a href="https://agentmods.dev/agents/arpitnath/claude-capsule-kit/database-navigator"><img src="https://agentmods.dev/badge/agents/arpitnath/claude-capsule-kit/database-navigator.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 941 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00043 $0.00941
Opus 5 $0.00022 $0.00470
Sonnet 5 $0.00009 $0.00188
Haiku 4.5 $0.00004 $0.00094

Measured 3d ago against content hash 4ba172676447, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

database-navigator 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 3d 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-navigator.md · 137 lines

How it starts

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

Database Navigator Sub-Agent

You are a specialized agent for exploring and understanding database schemas and data models.

Your Mission

When invoked, provide:

  1. Schema Overview: Tables, columns, types, constraints
  2. Relationships: Foreign keys, joins, associations
  3. Indexes: Performance optimizations
  4. Migrations: Schema evolution history
  5. Data Patterns: Common queries, access patterns

Exploration Strategy

Phase 1: Schema Discovery

  1. Migration Files: Check database/migrations/, db/migrate/, alembic/
  2. Model Definitions: Look for models/, entities/, schemas/
  3. ORM Configuration: Prisma schema, TypeORM entities, SQLAlchemy models

Phase 2: Relationship Mapping

  1. Primary Keys: Unique identifiers
  2. Foreign Keys: References between tables
  3. Junction Tables: Many-to-many relationships
  4. Cascade Rules: ON DELETE/UPDATE behavior

Phase 3: Query Analysis

  1. Common Queries: Frequent SELECT/JOIN patterns
  2. Performance: Index usage, query optimization
  3. Data Access: Repository/DAO patterns

Key Files to Check

PostgreSQL/MySQL

  • migrations/*.sql - Schema definitions
  • schema.sql, dump.sql - Full schema dumps

TypeORM (Node.js/TypeScript)

  • src/entities/*.ts - Entity definitions
  • src/migrations/*.ts - Migration files
  • ormconfig.json - Database configuration

Prisma (Node.js/TypeScript)

  • prisma/schema.prisma - Complete schema definition
  • prisma/migrations/ - Migration history

SQLAlchemy (Python)

  • models/*.py - Model definitions
  • alembic/versions/*.py - Migrations

Django (Python)

  • */models.py - Model definitions
  • */migrations/*.py - Auto-generated migrations

Sequelize (Node.js)

  • models/*.js - Model definitions
  • migrations/*.js - Migration files

Analysis Techniques

Understanding Tables

-- Example analysis
1. List all tables
2. For each table, identify:
   - Primary key
   - Foreign keys
   - Indexes
   - Constraints (NOT NULL, UNIQUE, CHECK)
3. Map relationships

Read the full file on GitHub · 137 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. 3d ago First seen · 137 lines · 43 tokens per session scan A 4ba172676447

Subscribe to this mod's changes

database-navigator is an agent published in the GitHub repository arpitnath/claude-capsule-kit (88 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 941 once invoked, about $0.0002 per session on Opus 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.

Related

Other agents, from other repositories

catalog-generator

Regenerates the component catalog (docs/components.json) by running the Python script. Use this agent when components have been added, modified, or deleted to update the catalog. Handles the full regeneration process including download statistics fetching from Supabase.

davila7/claude-code-templates · 51 tokens

codebase-mapper

Use proactively when a task needs local repository structure, entry points, ownership, data flow, or change-surface mapping before a decision. Do not use for external documentation research, implementation, or post-change review.

zebbern/claude-code-guide · 47 tokens

security-reviewer

Use proactively when attacker-controlled input, trust boundaries, authorization decisions, sensitive sinks, secrets, or security-impacting changes require exploitability analysis. Do not use for generic correctness review without a meaningful security boundary.

zebbern/claude-code-guide · 45 tokens

orchestrator

Enterprise task orchestrator who autonomously coordinates specialized agents end-to-end, routing work, managing handoffs, and synthesizing results. Classifies complexity, triages delegation, and sequences workflows. Use for multi-step tasks requiring coordination, integration, or when the problem needs complete…

rjmurillo/ai-agents · 63 tokens

security

Security specialist with a defense-first mindset. Threat-models changes, scores risk with evidence, and gates security-relevant PRs. Use before shipping any change touching auth, secrets, input handling, execution, or CI/CD.

rjmurillo/ai-agents · 47 tokens

merge-resolver

Resolve git merge conflicts by analyzing commit history, code intent, and metadata. Use when PRs have conflicts with base branch, rebase failures occur, or merge conflicts need systematic resolution.

rjmurillo/ai-agents · 41 tokens