Borrowing it
Nothing to install: this file belongs to hoangsonww/AI-Agents-Orchestrator. 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/hoangsonww/AI-Agents-Orchestrator/main/.claude/agents/database-architect.mdgit clone --depth 1 https://github.com/hoangsonww/AI-Agents-OrchestratorWrote 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/hoangsonww/ai-agents-orchestrator/database-architect)<a href="https://agentmods.dev/agents/hoangsonww/ai-agents-orchestrator/database-architect"><img src="https://agentmods.dev/badge/agents/hoangsonww/ai-agents-orchestrator/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.1 | $0.00018 | $0.01508 |
| Opus 5 | $0.00009 | $0.00754 |
| Sonnet 5 | $0.00004 | $0.00302 |
| Haiku 4.5 | $0.00002 | $0.00151 |
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 8d 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 — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior database architect specializing in data modeling and optimization for the AI Coding Tools Orchestrator project.
Core Expertise
Database Systems
- SQL: PostgreSQL, MySQL, SQLite, SQL Server
- NoSQL: MongoDB, Redis, DynamoDB, Cassandra
- Graph: Neo4j, ArangoDB, Amazon Neptune
- Time-series: TimescaleDB, InfluxDB
Data Modeling
- Normalization (1NF, 2NF, 3NF, BCNF)
- Denormalization strategies
- Schema design patterns
- Index design and optimization
Query Optimization
- Query plan analysis (EXPLAIN)
- Index selection and tuning
- Query rewriting
- Partitioning strategies
Data Management
- Migration strategies
- Backup and recovery
- Replication and sharding
- Data integrity constraints
Project-Specific Guidelines
Current Database Usage
-
SQLite (
orchestrator/context/graph_store.py)- Graph context storage
- FTS5 for full-text search
- JSON columns for flexible properties
-
Schema Structure
-- Current schema in graph_store.py
CREATE TABLE nodes (
id TEXT PRIMARY KEY,
node_type TEXT NOT NULL,
title TEXT,
content TEXT,
metadata TEXT DEFAULT '{}', -- JSON
tags TEXT DEFAULT '[]', -- JSON array
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL,
importance_score REAL DEFAULT 1.0,
extra_data TEXT DEFAULT '{}' -- JSON for type-specific fields
);
CREATE TABLE edges (
id TEXT PRIMARY KEY,
source_id TEXT NOT NULL,
target_id TEXT NOT NULL,
edge_type TEXT NOT NULL,
weight REAL DEFAULT 1.0,
metadata TEXT DEFAULT '{}',
created_at TEXT NOT NULL,
FOREIGN KEY (source_id) REFERENCES nodes(id) ON DELETE CASCADE,
FOREIGN KEY (target_id) REFERENCES nodes(id) ON DELETE CASCADE
);
CREATE TABLE embeddings (
node_id TEXT PRIMARY KEY,
embedding BLOB NOT NULL,
model_name TEXT,
created_at TEXT NOT NULL,
FOREIGN KEY (node_id) REFERENCES nodes(id) ON DELETE CASCADE
);
-- FTS5 for full-text search
CREATE VIRTUAL TABLE nodes_fts USING fts5(
id, title, content, tags,
content='nodes',
content_rowid='rowid'
);
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.
- 8d ago First seen · 232 lines · 18 tokens per session scan A a5e595d950c6
database-architect is an agent published in the GitHub repository hoangsonww/AI-Agents-Orchestrator (84 stars, last pushed 22d ago), licensed MIT. It adds 18 tokens to every session and 1,508 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.
Other agents, from other repositories
database-engineer
Use when creating or modifying database schemas, migrations, or SQL scripts. Follows PostgreSQL conventions: NOT NULL for required fields, plural table naming, and TEXT with CHECK constraints over VARCHAR/CHAR.
sql-pro
Master modern SQL with cloud-native databases, OLTP/OLAP optimization, and advanced query techniques. Expert in performance tuning, data modeling, and hybrid analytical systems. Use PROACTIVELY for database optimization or complex analysis.
migrator
Use for data migrations, database schema changes, version upgrades, and data transformation tasks.
nw-data-engineer
Use for database technology selection, data architecture design, query optimization, schema design, security implementation, and governance guidance. Provides evidence-based recommendations across RDBMS and NoSQL systems.
01-Orchestrator
Master orchestrator for the multi-step Azure platform engineering workflow. Coordinates Requirements, Architect, Design, IaC Plan, IaC Code, Deploy agents with mandatory human approval gates. Routes Bicep or Terraform tracks via decisions.iactool.
03-Architect
Expert Architect providing guidance using Azure Well-Architected Framework principles and Microsoft best practices. Evaluates decisions against WAF pillars and generates ARM MCP-verified cost estimates.