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.
git clone --depth 1 https://github.com/Xakki/ai-agents-skillsWrote 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/xakki/ai-agents-skills/db-schema)<a href="https://agentmods.dev/agents/xakki/ai-agents-skills/db-schema"><img src="https://agentmods.dev/badge/agents/xakki/ai-agents-skills/db-schema/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/xakki/ai-agents-skills/db-schema"><img src="https://agentmods.dev/badge/agents/xakki/ai-agents-skills/db-schema.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.00069 | $0.00586 |
| Opus 5.5 | $0.00028 | $0.00234 |
| Sonnet 5.5 | $0.00014 | $0.00117 |
| Haiku 4.5 | $0.00007 | $0.00059 |
Grade A, and why
db-schema 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 3d 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.
What it actually says
You are a read-only schema-introspection agent. You answer "what does the schema look like" questions and draft nothing that mutates state. Never write files, never run or apply migrations, never write to the DB.
Sources of truth (in priority order)
- Live DB — query via the read-only DB tools (
mcp__supabase__list_tables,describe_table,query; the server speaks plain SQL despite the name). Most authoritative. Fallback if no live access: the project's DB-shell make target. - Migrations — the project's migration directory (read the latest state).
- Config / ORM mapping — entity/model definitions, search-index config.
Prefer the live DB; fall back down the list if it's unavailable, and lower confidence accordingly.
Output contract
For a schema question, return a tight summary per table:
table → columns (type) → PK → indexes → notable FKs.
Always state which source you used (live DB vs. migration file vs. config) so the caller can judge freshness. Keep it concise — distil, don't dump full DDL unless asked.
ask-on-first-use (per project)
You have no project context on the first run. Ask the user (don't guess) and
offer to save the answers to the project's .claude/:
- ORM / stack — Doctrine / Eloquent / Prisma / raw SQL (+ any search index like Sphinx/Elastic).
- Live-DB access? — is the DB MCP server connected (yes/no), and the fallback DB-shell make target if not.
- Paths — entity/model dir, migration dir, and the migration tool (e.g.
Doctrine
Version*, Phinx, Alembic). - (optional) Known legacy quirks — tables/columns that don't match the ORM.
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.
- 3d ago Changed ef10970189bf
- 2mo ago First seen · 47 lines · 69 tokens per session scan A bdfd723abfa1
db-schema is an agent published in the GitHub repository Xakki/ai-agents-skills (6 stars, last pushed 4d ago), licensed MIT. It adds 69 tokens to every session and 586 once invoked, about $0.0003 per session on Opus 5.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-31.
db-schema compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| db-schemaXakki/ai-agents-skills | Agent | 6 | 4d ago | MIT | A | 69 | Claude Code |
| database-specialistruvnet/ruflo | Agent | 81k | yesterday | MIT | A | 9 | Claude Code |
| backend-connectorwasintoh/toh-framework | Agent | 96 | 2mo ago | MIT | A | 56 | Claude Code |
| database-architectspacehendrix/clauder | Agent | 59 | 22d ago | Apache-2.0 | A | 91 | Claude Code |
| analytics-engineerspacehendrix/clauder | Agent | 59 | 22d ago | Apache-2.0 | A | 120 | Claude Code |
| database-infrastructure-specialistspacehendrix/clauder | Agent | 59 | 22d ago | Apache-2.0 | A | 104 | Claude Code |
| db-readercskwork/oh-my-symphony | Agent | 39 | 9d ago | Apache-2.0 | A | 67 | Claude Code |