database

database is a skill for Claude Code from husniadil/ekstend. It costs 26 tokens per session (2,910 once invoked), scanned B, original, MIT.

A command-line guide for safely accessing MySQL, PostgreSQL, SQLite, and Redis databases. It requires checking the database structure before querying unfamiliar data.

In plain words
What is it for?
Use it to inspect database tables and columns, run verified queries, and manage data through the appropriate database command-line client.
Why use it?
It helps prevent mistakes caused by guessing table or column names and by querying a database without understanding its schema.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the database plugin — 1 skill shipped together

Good fit Use it to inspect database tables and columns, run verified queries, and manage data through the appropriate database command-line client.

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

Made for: Claude Code.

Or install database, the plugin that ships this one along with the rest of its 1 skill.

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/husniadil/ekstend/database/github.svg)](https://agentmods.dev/skills/husniadil/ekstend/database)
Your own site
<a href="https://agentmods.dev/skills/husniadil/ekstend/database"><img src="https://agentmods.dev/badge/skills/husniadil/ekstend/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/husniadil/ekstend/database"><img src="https://agentmods.dev/badge/skills/husniadil/ekstend/database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,910 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00026 $0.02910
Opus 5.5 $0.00010 $0.01164
Sonnet 5.5 $0.00005 $0.00582
Haiku 4.5 $0.00003 $0.00291

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

Security

Grade B, and why

database scanned grade B with 1 finding 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 2mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| MySQL | `brew install mysql-client` | `sudo apt install mysql-client` | `sudo pacman -S mysql` |
plugins/database/skills/database/SKILL.md · 322 lines

How it starts

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

Database CLI

Access and manage MySQL, PostgreSQL, SQLite databases, and Redis key-value stores using their respective command-line clients.

Critical Rules

NEVER do the following:

  • NEVER guess or assume table names - always list tables first with SHOW TABLES, \dt, or .tables
  • NEVER guess or assume column names - always describe the table first with DESCRIBE, \d, or PRAGMA table_info
  • NEVER run SELECT queries on an unfamiliar database without exploring the schema first
  • NEVER assume ORM naming conventions (e.g., Order vs orders, userId vs user_id) - verify with schema

ALWAYS follow the Query Workflow below when querying data the user asks for.

Database Type Detection

Determine the database type from context:

Signal Database Type
User says "MySQL", "mysql" MySQL
User says "PostgreSQL", "Postgres", "psql" PostgreSQL
User says "SQLite", "sqlite3" SQLite
File path ends in .db, .sqlite, .sqlite3 SQLite
Connection string starts with mysql:// MySQL
Connection string starts with postgresql:// PostgreSQL
Connection string starts with postgres:// PostgreSQL
Connection string starts with sqlite:/// SQLite
Config has MYSQL_* variables MySQL
Config has PG* or POSTGRES_* variables PostgreSQL
Config has SQLITE_* or DATABASE_PATH SQLite
User says "Redis", "redis-cli" Redis
Connection string starts with redis:// Redis
Connection string starts with rediss:// Redis
Config has REDIS_* variables Redis
Port 3306 mentioned MySQL
Port 5432 mentioned PostgreSQL
Port 6379 mentioned Redis

Read the full file on GitHub · 322 lines

Files

What ships with it

4 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. 2mo ago First seen · 322 lines · 26 tokens per session scan B 3588afb26179

Subscribe to this mod's changes

database is a skill published in the GitHub repository husniadil/ekstend (1 stars, last pushed 7d ago), licensed MIT. It adds 26 tokens to every session and 2,910 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

bun-redis

Use when working with Redis in Bun (ioredis, Upstash), caching, pub/sub, session storage, or key-value operations.

secondsky/claude-skills · 32 tokens

caching

This skill should be used when the user asks about a "caching strategy", "cache invalidation", "what to cache", "read-through vs write-through vs write-back", "cache eviction" (LRU/LFU/TTL), "Redis vs Memcached", "stale reads", or hits "thundering herd", "cache stampede", "cache penetration", or "hot key" problems, or…

proyecto26/system-design-skills · 146 tokens

Atuin Shell History Database and Sync

Atuin replaces your existing shell history with a SQLite database that records additional context like exit codes, session IDs, working directories, and command durations. It provides encrypted cross-machine sync and a full-screen fuzzy search UI bound to Ctrl-R.

agentskillexchange/skills · 55 tokens

ts-db-perf

Optimize TypeScript code that interacts with databases. Use this skill when the user wants to fix N+1 queries, add caching, improve transaction safety, prevent race conditions, simplify async flows, or generally speed up a TypeScript backend. Triggers on phrases like "optimize", "slow query", "N+1", "race condition"…

widnyana/eyay-toolkits · 107 tokens

Cache Strategy Consistency Guard

Detect undefined or inconsistent cache strategies (layers, consistency, invalidation, TTL, failure handling) in design documents.

s977043/river-review · 29 tokens

caching

HybridCache (.NET 9+), output caching, cache-aside pattern, and IMemoryCache — registration, usage, invalidation, and key strategy.

zdanovichnick/dotnet-pilot · 35 tokens