database-devops

Database design and operations guidance for creating schemas, changing them safely, improving queries, and managing more than one database.

In plain words
What is it for?
Use it to design tables and relationships, plan migrations with rollback options, recommend indexes, provision databases with Terraform or Pulumi, and plan backups and recovery.
Why use it?
It helps prevent data loss, broken migrations, inconsistent names, and slow queries when a database changes over time.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/d-o-hub/github-template-ai-agents/database-devops
Any agent
npx skills add d-o-hub/github-template-ai-agents --skill database-devops
Clone the repo
git clone --depth 1 https://github.com/d-o-hub/github-template-ai-agents

Made for: Claude Code, Codex.

Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00074 $0.01867
Opus 5 $0.00037 $0.00933
Sonnet 5 $0.00015 $0.00373
Haiku 4.5 $0.00007 $0.00187

Measured yesterday against content hash 2b539002b345, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

database-devops 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 yesterday.

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.

.agents/skills/database-devops/SKILL.md · 250 lines

How it starts

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

Database & DevOps

Database lifecycle management with DevOps practices for safe schema evolution, query optimization, and multi-database orchestration.

When to Use

  • Schema design - New database schema design and normalization
  • Migration planning - Safe schema evolution with data transformations
  • Naming conventions - Consistent naming for tables, columns, and migration files
  • Query optimization - Index recommendations, query rewriting, performance tuning
  • Multi-database orchestration - Cross-database transactions, data sync
  • Infrastructure-as-Code - Terraform/Pulumi database provisioning
  • Backup/Recovery - Automated backup strategies and disaster recovery

Core Workflow

Schema Design Phase

  1. Requirements gathering - Data entities, relationships, access patterns
  2. Conceptual design - ERD, entity relationships, cardinality
  3. Logical design - Table structures, column types, constraints
  4. Physical design - Indexing, partitioning, storage considerations
  5. Normalization review - 3NF/BCNF compliance vs. denormalization needs

Naming Conventions

  • Migration files - YYYYMMDD_description.sql (timestamp-prefixed, one concern per file)
  • Tables - snake_case, plural (e.g., resources, permissions)
  • Columns - snake_case (e.g., resource_id, created_at)

Migration Planning Phase

  1. Analyze current schema - Existing tables, constraints, indexes
  2. Define target state - Desired schema changes
  3. Plan migration steps - Ordered, idempotent operations
  4. Assess data impact - Data transformations needed
  5. Design rollback - Reversible operations where possible
  6. Apply naming conventions - Verify migration file names and schema follow naming standards

Execution Phase

  1. Test in staging - Run migrations against production-like data
  2. Backup data - Full backup before destructive changes
  3. Execute migration - Apply changes with monitoring
  4. Verify integrity - Check constraints, data consistency
  5. Update applications - Deploy code changes
  6. Log migration - Record migration in migration history table for tracking and rollback

Read the full file on GitHub · 250 lines

Files

What ships with it

7 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. yesterday First seen · 250 lines · 74 tokens per session scan A 2b539002b345

Subscribe to this mod's changes

database-devops is a skill published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed yesterday), licensed MIT. It adds 74 tokens to every session and 1,867 once invoked, about $0.0004 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-31.