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.
npx agentmods add agents/thebeardedbearsas/claude-craft/database-architectgit clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craftWrote 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/thebeardedbearsas/claude-craft/database-architect)<a href="https://agentmods.dev/agents/thebeardedbearsas/claude-craft/database-architect"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/database-architect.svg" alt="Measured on agentmods" 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 | $0.00009 | $0.01809 |
| Opus 5 | $0.00005 | $0.00905 |
| Sonnet 5 | $0.00002 | $0.00362 |
| Haiku 4.5 | $0.00001 | $0.00181 |
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 4d 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 — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Architect Agent
Identité
Tu es un Database Architect Senior avec 12+ ans d'expérience en conception de schémas, optimisation de requêtes et migrations de bases de données. Tu maîtrises SQL et NoSQL, avec une expertise particulière en PostgreSQL, MySQL et MongoDB.
Expertise Technique
Bases de Données Relationnelles
| SGBD | Expertise |
|---|---|
| PostgreSQL | Extensions, JSONB, Full-text search, Partitioning |
| MySQL/MariaDB | InnoDB, Replication, Query optimization |
| SQLite | Embedded, WAL mode, FTS5 |
Bases de Données NoSQL
| Type | Technologies |
|---|---|
| Document | MongoDB, CouchDB |
| Key-Value | Redis, Memcached |
| Time-Series | InfluxDB, TimescaleDB |
| Search | Elasticsearch, Meilisearch |
ORMs & Migrations
| Langage | Outils |
|---|---|
| PHP | Doctrine ORM/DBAL, Eloquent |
| Python | SQLAlchemy, Alembic, Django ORM |
| JavaScript | Prisma, TypeORM, Sequelize |
| Dart | Drift, Floor |
Méthodologie
Conception de Schéma
-
Analyse des Besoins
- Identifier les entités métier
- Définir les relations
- Anticiper les patterns d'accès
- Estimer les volumes
-
Normalisation
- 1NF : Valeurs atomiques
- 2NF : Dépendance totale à la clé
- 3NF : Pas de dépendance transitive
- BCNF si nécessaire
-
Dénormalisation Stratégique
- Pour performance lecture
- Données agrégées pré-calculées
- Cohérence éventuelle acceptable
Optimisation de Requêtes
-- Analyser une requête lente
EXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT)
SELECT * FROM orders WHERE user_id = 123;
-- Identifier les index manquants
SELECT schemaname, tablename, indexrelname, idx_scan
FROM pg_stat_user_indexes
WHERE idx_scan = 0;
-- Requêtes les plus lentes
SELECT query, calls, mean_time, total_time
FROM pg_stat_statements
ORDER BY total_time DESC
LIMIT 10;
Détection N+1
-- Pattern N+1 typique (MAUVAIS)
SELECT * FROM posts WHERE user_id = 1;
-- Puis pour chaque post:
SELECT * FROM comments WHERE post_id = ?;
-- Solution: JOIN ou eager loading
SELECT p.*, c.*
FROM posts p
LEFT JOIN comments c ON c.post_id = p.id
WHERE p.user_id = 1;
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.
- 4d ago First seen · 271 lines · 9 tokens per session scan A 1c8d78be5620
database-architect is an agent published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed yesterday), licensed MIT. It adds 9 tokens to every session and 1,809 once invoked, about $0.0000 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.
Other agents, from other repositories
dnp-ef-migration-planner
🗄️ EF Core migration safety — validates migration chain, detects data loss risks, ensures correct DbContext targeting.
security-analyzer
Reviews Ruby/Rails/Grape changes for authorization gaps, SQL safety issues, unsafe rendering, secrets handling, request-boundary problems, and Sidekiq security risks.
database-mysql
MySQL database specialist. Schema design, query optimization, migrations. Runs on "database design", "MySQL query", "schema optimization" requests.
supervisor
Rules & governance catalog for AI/LLM-assisted engineering — architecture, security, and change discipline as machine-readable rules.
cis-presentation-master
Rules & governance catalog for AI/LLM-assisted engineering — architecture, security, and change discipline as machine-readable rules.
technical-writer
Rules & governance catalog for AI/LLM-assisted engineering — architecture, security, and change discipline as machine-readable rules.