database

database is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 36 tokens per session (1,630 once invoked), scanned A, original, MIT.

A database engineering skill covers schema design, query performance, indexes, MariaDB and MySQL tuning, and applications using more than one database connection.

In plain words
What is it for?
It helps design databases, optimize queries, add indexes, troubleshoot performance, inspect configuration, and use EXPLAIN to verify the result.
Why use it?
It helps identify why queries are slow and choose changes that can be checked against the database’s actual execution plan.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps design databases, optimize queries, add indexes, troubleshoot performance, inspect configuration, and use EXPLAIN to verify the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/event4u-app/agent-config/database
Install

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.

Any agent
npx skills add event4u-app/agent-config --skill database
Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for database

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/database/github.svg)](https://agentmods.dev/skills/event4u-app/agent-config/database)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/database"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/database/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.

agentmods 80×15 button for database

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/database"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,630 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 73
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Excessive Agency · line 132
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01630
Opus 5.5 $0.00014 $0.00652
Sonnet 5.5 $0.00007 $0.00326
Haiku 4.5 $0.00004 $0.00163

Measured 1mo ago against content hash f6896db39156, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database 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 1mo 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.

src/skills/database/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

database

Grounded corpus (Tier-1 consultation): symptom → index/strategy decisions come grounded — node <skills-root>/corpus-grounding/scripts/ground.mjs search --manifest <skills-root>/database/data/manifest.json "<symptom>" returns root cause, strategy, good-code sketch, anti-pattern, and the verification probe (EXPLAIN expectation). Corpus: data/query-tuning.csv; its engine versions and their date live in data/manifest.json upstream. Repeating them here is how this line fell two majors behind.

When to use

Use when designing schemas, optimizing queries, adding indexes, or troubleshooting database performance.

This skill owns relational modeling — invariants, cardinality, keys, junction tables, index method, enum representation, referential actions. Designing or extending a schema → references/relational-modeling.md. Dropping or renaming anything → references/consumer-census.md first.

Do NOT use when:

  • Writing framework-specific ORM models (use the matching skill — e.g. eloquent for Laravel, symfony-workflow for Doctrine, framework-native skill for Prisma / TypeORM / SQLAlchemy / GORM / Diesel)
  • Creating migrations only — use the framework-specific migration skill (laravel-migration for Laravel, framework-native for others)
  • Reviewing a migration diff → schema-review; sequencing a multi-deploy rollout → migration-architect

Procedure: Optimize a query

Step 0: Inspect

  1. Read project docs in agents/reference/docs/ for database architecture.
  2. Check config/database.php for connection definitions.
  3. Detect engine: check .env driver and docker-compose.yml.
  4. Detect hosting per environment: a docker-compose.yml service describes local/dev only; an RDS, Cloud SQL, Azure, PlanetScale or Neon host or Terraform resource marks production as managed and wins; no production marker → production hosting is unknown, never assumed self-hosted. Managed guardrail: no ALTER SYSTEM, no postgresql.conf / my.cnf edit, no OS access — server settings go through the provider's parameter group or control-plane CLI.

Read the full file on GitHub · 158 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 1mo ago Changed · +14 lines · -3 tokens per session f6896db39156
  2. 1mo ago Changed · +1 lines c0f2230f2b3b
  3. 1mo ago Changed eeac02d10e66
  4. 3mo ago First seen · 143 lines · 39 tokens per session scan A 14e93995da29

Subscribe to this mod's changes

database is a skill published in the GitHub repository event4u-app/agent-config (20 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 1,630 once invoked, about $0.0001 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-09-03.

Related

database compared with skills from other repositories

database next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
databaseevent4u-app/agent-configSkill20todayMITA36Claude Code, Codex
mongodb-schema-designfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A127Claude Code
mongodbmongodb/agent-skillsSkill211yesterdayApache-2.0A218Claude Code, Codex
qdrant-managed-cloud-quickstartqdrant/skillsSkill271yesterdayApache-2.0A161Claude Code
qdrant-multitenancyqdrant/skillsSkill271yesterdayApache-2.0A109Claude Code
qdrant-deployment-optionsqdrant/skillsSkill271yesterdayApache-2.0A79Claude Code
qdrant-monitoring-debuggingqdrant/skillsSkill271yesterdayApache-2.0A75Claude Code