database-operations

database-operations is a skill for Claude Code, Codex from metaspartan/cybara. It costs 22 tokens per session (210 once invoked), scanned A, original, MIT.

A guide for working with relational databases, which store related information in tables. It covers inspecting database structure, investigating queries, planning schema changes, and checking results.

In plain words
What is it for?
Reading schemas and indexes, diagnosing slow or incorrect queries, testing migrations in isolation, and verifying constraints, rollbacks, and application behaviour.
Why use it?
It reduces the risk of exposing data, damaging production databases, or introducing migrations that existing application versions cannot handle.

Skill for Claude CodeCodex

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

Good fit Reading schemas and indexes, diagnosing slow or incorrect queries, testing migrations in isolation, and verifying constraints, rollbacks, and application behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metaspartan/cybara/database-operations
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 metaspartan/cybara --skill database-operations
Clone the repo
git clone --depth 1 https://github.com/metaspartan/cybara

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-operations

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/metaspartan/cybara/database-operations"><img src="https://agentmods.dev/badge/skills/metaspartan/cybara/database-operations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 210 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 pass 7 Sept 2026
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.00022 $0.00210
Opus 5.5 $0.00009 $0.00084
Sonnet 5.5 $0.00004 $0.00042
Haiku 4.5 $0.00002 $0.00021

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

Security

Grade A, and why

database-operations 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.

plugins/data-workflows/skills/database-operations/SKILL.md · 25 lines

What it actually says

Database operations

Use structured database clients or repository data-access APIs instead of parsing database files as text.

Workflow

  1. Identify the database engine, connection source, migration system, and environment before connecting.
  2. Inspect schemas, indexes, constraints, and representative row counts with read-only queries first.
  3. Reproduce query or migration problems against an isolated local database when possible.
  4. Use query plans and measured timings for performance work.
  5. Make migrations forward-safe, transactional where supported, and compatible with existing application versions.
  6. Verify constraints, rollback behavior, query results, and application tests after changes.

Safety

  • Treat production and unknown databases as read-only unless the user explicitly authorizes writes.
  • Never expose credentials, personal data, or unredacted row contents in chat.
  • Back up data before destructive schema changes.
  • Bound exploratory queries and avoid full-table exports by default.
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 First seen · 25 lines · 22 tokens per session scan A 930efb158d1c

Subscribe to this mod's changes

database-operations is a skill published in the GitHub repository metaspartan/cybara (32 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 210 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-08-30.

Related

Other skills, from other repositories

ecc-database-migrations

Database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prisma, Drizzle, Kysely, Django, TypeORM, golang-migrate). Use when writing a schema or data migration, planning a rollback, or aiming for zero-downtime deployment.

KornLabs/truss · 80 tokens

bigquery-graph

Skill for Graph Query Language (GQL) or SQL/PGQ queries against a property graph. Includes path finding, multi-hop traversal, topological connection, shortest path, node reachability, edge connectivity, and semantic graph queries.

google/adk-python · 52 tokens

bigquery-ai-ml

Leverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity…

google/adk-python · 131 tokens

awesome-ai-agents-curation

Help founders prepare evidence-backed AI agent project submissions and help maintainers triage project issues and pull requests for the Awesome AI Agents list.

slavakurilyak/awesome-ai-agents · 34 tokens

loom-database-design

Database schema and data model design for relational, NoSQL, time-series, and warehouse systems. Not for: event messaging.

cosmix/loom · 30 tokens

loom-sql-optimization

Analyzes and optimizes SQL queries for performance.

cosmix/loom · 16 tokens