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.
curl -O https://raw.githubusercontent.com/tott/laravel-tall-claude-ai-configs/main/.claude/agents/database-architect.mdgit clone --depth 1 https://github.com/tott/laravel-tall-claude-ai-configsWrote 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.
[](https://agentmods.dev/agents/tott/laravel-tall-claude-ai-configs/database-architect)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 explorationmcp__zen__analyze- Database performance analysismcp__zen__secaudit- Database security assessmentmcp__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
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.
- 11d ago First seen · 599 lines · 0 tokens per session scan A 2e4ab18a9c5e
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.
Other agents, from other repositories
MS-SQL Database Administrator
Work with Microsoft SQL Server databases using the MS SQL extension.
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…
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".
ecto-schema-designer
Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.
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…
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…