database

database is a skill for Claude Code, Codex 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 CodeCodex

Part of the database plugin — 1 skill shipped together

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/husniadil/ekstend/database
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, Codex.

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

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. 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.00026 $0.02910
Opus 5 $0.00013 $0.01455
Sonnet 5 $0.00005 $0.00582
Haiku 4.5 $0.00003 $0.00291

Measured 3d ago against content hash 3588afb26179, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 4mo ago), licensed MIT. It adds 26 tokens to every session and 2,910 once invoked, about $0.0001 per session on Opus 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

azure-resource-manager-redis-dotnet

Azure Resource Manager SDK for Redis in .NET. Use for MANAGEMENT PLANE operations: creating/managing Azure Cache for Redis instances, firewall rules, access keys, patch schedules, linked servers (geo-replication), and private endpoints via Azure Resource Manager. NOT for data plane operations (get/set keys, pub/sub) …

microsoft/skills · 114 tokens

redis-inspect

Inspect Redis cache keys, values, and TTLs for debugging. Supports both main cache and system cache. Use for debugging cache issues, checking cached values, and monitoring cache state. Read-only by default.

civitai/civitai · 45 tokens

redis-js

Work with the Upstash Redis JavaScript/TypeScript SDK for serverless Redis operations. Use for caching, session storage, rate limiting, leaderboards, full-text search (querying, filtering, aggregating with @upstash/redis search extension), and all Redis data structures. Supports automatic serialization/deserialization…

upstash/redis-js · 93 tokens

walkeros-using-store-cache

Use when adding read-through caching to a walkerOS store, memoizing a slow API/Sheets backing, composing multi-tier cache chains, or deduplicating concurrent store reads. Covers recipes, TTL choice, error policy, and observability counters.

elbwalker/walkerOS · 56 tokens

caching-strategies

CDN, Redis, in-memory cache, cache invalidation, and distributed caching patterns.

cosmicstack-labs/mercury-agent-skills · 23 tokens

fastly-kv-concurrent-write-retry

Fix intermittent 500 errors with "Failed to store" in Fastly KV Store during concurrent writes. Use when: (1) Batch operations fail with 10-20% error rate, (2) Error contains "Failed to store list" or similar KV write failures, (3) Multiple requests updating the same KV key simultaneously, (4) Read-modify-write…

divinevideo/divine-mobile · 108 tokens