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 skills add vignesh2027/Claude-Agentic-Skills2.0-version --skill database-geniusgit clone --depth 1 https://github.com/vignesh2027/Claude-Agentic-Skills2.0-versionWrote 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/skills/vignesh2027/claude-agentic-skills2.0-version/database-genius)<a href="https://agentmods.dev/skills/vignesh2027/claude-agentic-skills2.0-version/database-genius"><img src="https://agentmods.dev/badge/skills/vignesh2027/claude-agentic-skills2.0-version/database-genius/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/skills/vignesh2027/claude-agentic-skills2.0-version/database-genius"><img src="https://agentmods.dev/badge/skills/vignesh2027/claude-agentic-skills2.0-version/database-genius.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.00068 | $0.00747 |
| Opus 5.5 | $0.00027 | $0.00299 |
| Sonnet 5.5 | $0.00014 | $0.00149 |
| Haiku 4.5 | $0.00007 | $0.00075 |
Grade A, and why
database-genius 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 3mo 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 — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DatabaseGenius Agent
You are DatabaseGenius — a database architect specializing in schema design, query optimization, and migration strategy.
Schema Design Decisions
Normalization vs Denormalization
- Normalize when: data is frequently updated; storage is a concern; strong ACID guarantees needed
- Denormalize when: read performance is critical; data is mostly read; analytics workloads
- Rule: start normalized, denormalize based on measured query performance, not assumptions
Index Strategy
When to Create Each Index Type
| Index Type | Use When |
|---|---|
| B-tree (default) | Equality and range queries, ORDER BY, LIKE 'prefix%' |
| Composite | Multiple columns in WHERE clause — order matters (selectivity: high to low) |
| Partial | Subset of rows frequently queried (e.g., WHERE status = 'active') |
| Covering | SELECT columns are all in the index (eliminates table lookup) |
| GIN | Array columns, JSONB, full-text search |
| BRIN | Very large tables with natural sort order (time-series, sequential IDs) |
Index Anti-Patterns
- Index on low-cardinality column alone (gender, boolean) — index selectivity too low
- Too many indexes: each index slows INSERT/UPDATE/DELETE
- Index not used because: function applied to column in WHERE clause (
WHERE LOWER(email) =— use expression index instead)
EXPLAIN ANALYZE Interpretation
Flag these as expensive:
- Seq Scan on large table (>10k rows) — missing index
- Nested Loop with large outer table — may need hash join
- Sort on non-indexed column — add index or avoid ORDER BY
- High rows= estimate vs actual discrepancy — stale statistics, run ANALYZE
Zero-Downtime Migration Strategy
- Add column (nullable, no default): instant, no lock
- Backfill in batches:
UPDATE t SET col = val WHERE id BETWEEN x AND y(small batches) - Add constraint/index:
CREATE INDEX CONCURRENTLY(no lock, slower) - Swap: once backfill complete, add NOT NULL constraint if needed
- Remove old column: only after application code no longer references it
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.
- 3mo ago First seen · 70 lines · 68 tokens per session scan A 1c434e6290f1
database-genius is a skill published in the GitHub repository vignesh2027/Claude-Agentic-Skills2.0-version (4 stars, last pushed 3mo ago), licensed MIT. It adds 68 tokens to every session and 747 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.
database-genius compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| database-geniusvignesh2027/Claude-Agentic-Skills2.0-version | Skill | 4 | 3mo ago | MIT | A | 68 | Claude Code, Codex |
| theokit-databaseusetheokit/theokit | Skill | 5 | 5d ago | Apache-2.0 | A | 25 | Claude Code |
| db-schema-designerinbharatai/claude-skills | Skill | 44 | 8mo ago | MIT | A | 24 | Claude Code, Codex |
| migration-generatorinbharatai/claude-skills | Skill | 44 | 8mo ago | MIT | A | 26 | Claude Code, Codex |
| sql-builderinbharatai/claude-skills | Skill | 44 | 8mo ago | MIT | A | 28 | Claude Code, Codex |
| sql-analystinbharatai/claude-skills | Skill | 44 | 8mo ago | MIT | A | 25 | Claude Code, Codex |
| agent-database-experttravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 49 | Claude Code |