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

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/metaspartan/cybara/database-operations
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.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.svg" alt="Measured on agentmods" 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. 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.00022 $0.00210
Opus 5 $0.00011 $0.00105
Sonnet 5 $0.00004 $0.00042
Haiku 4.5 $0.00002 $0.00021

Measured 4d ago against content hash 930efb158d1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (25 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. 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

data-analysis

Use this skill when the user uploads Excel (.xlsx/.xls) or CSV files and wants to perform data analysis, generate statistics, create summaries, pivot tables, SQL queries, or any form of structured data exploration. Supports multi-sheet Excel workbooks, aggregation, filtering, joins, and exporting results to…

bytedance/deer-flow · 69 tokens

notion

Notion API for creating and managing pages, databases, and blocks. Use when the user wants to create a Notion page, query a Notion database, update Notion properties, search Notion, add content to Notion, manage Notion blocks, or interact with Notion data sources and workspaces via the API.

elizaOS/eliza · 69 tokens

things-mac

Manage Things 3 via the things CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database). Use when a user asks Otto to add a task to Things, list inbox/today/upcoming, search tasks, or inspect projects/areas/tags.

elizaOS/eliza · 67 tokens

sql-analysis

Answer a quantitative business question by writing a SQL query against the data warehouse, validating it, and presenting the result. Use when the user asks "how many...", "what's the trend of...", "compare X vs Y over...", "what's our top N...", or anything that resolves to a query against tabular data. Produces a…

agentscope-ai/agentscope-java · 79 tokens

sql-analysis

读取 SQL 指标说明并执行汇总脚本,输出结构化分析结论。.

OWWZO/ai-agent · 22 tokens

ecc-database-migrations

Skill "ecc-database-migrations" from KornLabs/truss, covering database migration patterns, when to activate, core principles, migration safety checklist and postgresql patterns.

KornLabs/truss · 0 tokens