laravel-tall-claude-ai-configs: Agent for Claude Code

.claude/agents/database-architect.md

database-architect is an agent for Claude Code from tott/laravel-tall-claude-ai-configs. It costs 0 tokens per session (4,151 once invoked), scanned A, original, MIT.

An agent focused on designing and maintaining databases: organized stores of application data and the rules connecting that data.

In plain words
What is it for?
It supports schema design, migration management, query and indexing improvements, model relationships, constraints, validation, factories, and seed data.
Why use it?
It helps address problems such as poorly structured tables, unsafe database changes, slow queries, and inconsistent data.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is tott/laravel-tall-claude-ai-configs's own configuration. It tells Claude Code how to work on laravel-tall-claude-ai-configs itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything laravel-tall-claude-ai-configs configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./vendor/bin/sail artisan make:migration create_table_name.

Reuse

Borrowing it

Nothing to install: this file belongs to tott/laravel-tall-claude-ai-configs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tott/laravel-tall-claude-ai-configs/main/.claude/agents/database-architect.md
Clone the repo
git clone --depth 1 https://github.com/tott/laravel-tall-claude-ai-configs

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/tott/laravel-tall-claude-ai-configs/database-architect"><img src="https://agentmods.dev/badge/agents/tott/laravel-tall-claude-ai-configs/database-architect.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 4,151 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.04151
Opus 5 $0.00000 $0.02076
Sonnet 5 $0.00000 $0.00830
Haiku 4.5 $0.00000 $0.00415

Measured 11d ago against content hash 2e4ab18a9c5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

database-architect 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 11d 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-architect.md · 599 lines

How it starts

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

Database Architecture Expert

Domain: Schema design, migrations, performance optimization, model relationships

Responsibilities

Core Expertise

  • Database Schema Design: Optimal table structure and relationship design
  • Migration Management: Version control and deployment of database changes
  • Performance Optimization: Query optimization, indexing strategies, caching
  • Model Relationships: Eloquent relationship design and optimization
  • Data Integrity: Constraints, validation, and consistency enforcement

System Knowledge Areas

Database Schema Architecture
  • Migration Files (database/migrations/)
  • Model Definitions (app/Models/)
  • Factory Patterns (database/factories/)
  • Seeder Logic (database/seeders/)
  • Database Configuration (config/database.php)
Key Model Relationships
// Core entity relationships
User -> Agent (has many)
User -> ChatSession (has many)
User -> KnowledgeDocument (has many)

Agent -> KnowledgeDocument (many to many)
Agent -> AgentExecution (has many)

ChatSession -> ChatInteraction (has many)
ChatSession -> User (belongs to)

KnowledgeDocument -> User (belongs to)
KnowledgeDocument -> ChatInteractionKnowledgeSource (has many)

AgentExecution -> Agent (belongs to)
AgentExecution -> ChatSession (belongs to)
AgentExecution -> User (belongs to)
Performance Considerations
  • UUID Primary Keys - User-facing entities use UUIDs
  • Soft Deletes - User data preservation with soft deletion
  • Indexing Strategy - Composite indexes for common query patterns
  • Caching Layers - Model caching and query result caching

Specialized Tools & Capabilities

MCP Server Tools

  • Primary Tools:
    • mcp__serena__* - Database code analysis and model exploration
    • mcp__zen__analyze - Database performance analysis
    • mcp__zen__secaudit - Database security assessment
    • mcp__zen__debug - Query performance troubleshooting

Database-Specific Commands

# Migration Management
./vendor/bin/sail artisan make:migration create_table_name
./vendor/bin/sail artisan migrate
./vendor/bin/sail artisan migrate:rollback --step=1
./vendor/bin/sail artisan migrate:fresh --seed
./vendor/bin/sail artisan migrate:status

# Model & Factory Generation
./vendor/bin/sail artisan make:model ModelName --migration --factory
./vendor/bin/sail artisan make:factory ModelFactory
./vendor/bin/sail artisan make:seeder ModelSeeder

# Database Debugging
./vendor/bin/sail artisan db:show
./vendor/bin/sail artisan db:table table_name
./vendor/bin/sail artisan db:monitor

Read the full file on GitHub · 599 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. 11d ago First seen · 599 lines · 0 tokens per session scan A 2e4ab18a9c5e

Subscribe to this mod's changes

database-architect is an agent published in the GitHub repository tott/laravel-tall-claude-ai-configs (41 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,151 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-30.

Related

Other agents, from other repositories

MS-SQL Database Administrator

Work with Microsoft SQL Server databases using the MS SQL extension.

github/awesome-copilot · 18 tokens

core-data-auditor

Use this agent when the user mentions Core Data review, schema migration, production crashes, or data safety checking. Automatically scans Core Data code for the 5 most critical safety violations - schema migration risks, thread-confinement errors, N+1 query patterns, production data loss risks, and performance issues…

CharlesWiltgen/Axiom · 261 tokens

lens

Turns raw data into actionable decisions — dashboards, metric definitions, SQL analytics, funnel and cohort analysis across BI platforms. Use when designing a dashboard, defining KPIs, or running funnel analysis. Trigger with "design a dashboard", "analyze our funnel".

jeremylongshore/tons-of-skills-marketplace · 53 tokens

ecto-schema-designer

Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.

oliver-kriska/claude-elixir-phoenix · 30 tokens

django-migrations-specialist

Database specialist for Django, runs in the "database" extra phase after development. Finalizes model field types and Meta indexes/constraints, runs makemigrations, reviews generated SQL with sqlmigrate, runs migrate, verifies with migrate --check. Do NOT use for: application logic (django-architect), tests…

AratKruglik/claude-sdlc · 85 tokens

database-architect

Use this agent for database design and change work: schema design, indexing strategy, query optimization, migration safety, and engine selection. Trigger on "design a schema for", "this query is slow", "is this migration safe", "add an index", "Postgres or Mongo for this", or N+1 complaints. Returns schema/DDL with…

aayushostwal/nexus · 96 tokens