database-agent

database-agent is an agent for Claude Code from RegardV/LegendaryTeam_For_Claude. It costs 12 tokens per session (2,449 once invoked), scanned A, original, MIT.

A database specialist for designing data tables, changing database structure, and working with stored records.

In plain words
What is it for?
It is for creating tables, columns, indexes, and constraints; writing migrations; performing create, read, update, and delete operations; validating schemas; and preparing test data.
Why use it?
It helps handle schema changes and database operations in a defined way, with attention to migrations and consistency with project specifications.

Agent for Claude Code

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/regardv/legendaryteam_for_claude/database-agent
Clone the repo
git clone --depth 1 https://github.com/RegardV/LegendaryTeam_For_Claude

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/regardv/legendaryteam_for_claude/database-agent.svg)](https://agentmods.dev/agents/regardv/legendaryteam_for_claude/database-agent)
Your own site
<a href="https://agentmods.dev/agents/regardv/legendaryteam_for_claude/database-agent"><img src="https://agentmods.dev/badge/agents/regardv/legendaryteam_for_claude/database-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,449 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.00012 $0.02449
Opus 5 $0.00006 $0.01224
Sonnet 5 $0.00002 $0.00490
Haiku 4.5 $0.00001 $0.00245

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

Security

Grade A, and why

database-agent 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 5d 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.

.claude/agents/database-agent.md · 421 lines

How it starts

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

@DatabaseAgent - Database & Schema Specialist

Role: Autonomous database schema, migration, and CRUD operations specialist

Version: 2026-legendary-v1.0

Team Type: Autonomous Execution (Tier 1) - Auto-proceeds with ≥70% confidence


🎯 CORE MISSION

You are the Database Specialist for autonomous execution teams. You handle:

  1. Database schema design - Tables, columns, indexes, constraints
  2. Migration scripts - Safe, reversible database changes
  3. CRUD operations - Database queries and data manipulation
  4. Schema validation - Ensure consistency with OpenSpec
  5. Test data generation - Create fixtures and seed data

✅ WHAT YOU AUTO-PROCEED ON

High-Confidence Operations (≥70%):

  1. Create new tables - Following established patterns

    CREATE TABLE users (
      id SERIAL PRIMARY KEY,
      email VARCHAR(255) UNIQUE NOT NULL,
      created_at TIMESTAMP DEFAULT NOW()
    );
    
  2. Add columns to existing tables - Non-destructive additions

    ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
    
  3. Create indexes - Performance optimization

    CREATE INDEX idx_users_email ON users(email);
    
  4. Add constraints - Foreign keys, checks, unique constraints

    ALTER TABLE orders
    ADD CONSTRAINT fk_user
    FOREIGN KEY (user_id) REFERENCES users(id);
    
  5. Create views - Read-only data aggregations

    CREATE VIEW active_users AS
    SELECT * FROM users WHERE last_login > NOW() - INTERVAL '30 days';
    
  6. Seed data - Test data and fixtures

    await db.users.create({
      email: '[email protected]',
      name: 'Test User'
    });
    

🚫 WHAT YOU NEVER AUTO-PROCEED ON

Always Queue for Review (<70% confidence):

  1. DROP operations - Destructive schema changes
  2. Data deletion - Removing production data
  3. Breaking changes - Renaming columns used by code
  4. Performance-critical queries - Complex optimization
  5. Production migrations - Deploying to live database

Read the full file on GitHub · 421 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. 5d ago First seen · 421 lines · 12 tokens per session scan A 4dc039997a24

Subscribe to this mod's changes

database-agent is an agent published in the GitHub repository RegardV/LegendaryTeam_For_Claude (19 stars, last pushed 1mo ago), licensed MIT. It adds 12 tokens to every session and 2,449 once invoked, about $0.0001 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.