sharp-db

sharp-db is a skill for Claude Code, Codex from beginor/agent-skills. It costs 71 tokens per session (1,911 once invoked), scanned C, original, MIT.

A command-line database tool for running SQL queries and inspecting table and view structure in PostgreSQL, MySQL, and SQLite databases.

In plain words
What is it for?
Use it to run SELECT, INSERT, UPDATE, or DELETE statements, list database structure, inspect columns, limit returned rows, or export complete query results when needed.
Why use it?
It provides database results and schema details without requiring an interactive database session, while limiting exploratory results by default.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to run SELECT, INSERT, UPDATE, or DELETE statements, list database structure, inspect columns, limit returned rows, or export complete query results when needed.

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

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 sharp-db

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/beginor/agent-skills/sharp-db"><img src="https://agentmods.dev/badge/skills/beginor/agent-skills/sharp-db.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,911 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. 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.00071 $0.01911
Opus 5.5 $0.00028 $0.00764
Sonnet 5.5 $0.00014 $0.00382
Haiku 4.5 $0.00007 $0.00191

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

Security

Grade C, and why

sharp-db scanned grade C with 2 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/build.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- macOS/Linux: `curl -fsSL https://dot.net/v1/dotnet-install.sh | bash`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- macOS/Linux: `curl -fsSL https://dot.net/v1/dotnet-install.sh | bash`
skills/sharp-db/SKILL.md · 149 lines

How it starts

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

Sharp-DB

A CLI tool for querying databases and inspecting schema metadata. Supports PostgreSQL, MySQL, SQLite, and SQL Server.

Requirements

You should have dotnet sdk 10.0.x installed. if dotnet does not exist on system, please install it first:

  • macOS/Linux: curl -fsSL https://dot.net/v1/dotnet-install.sh | bash
  • Windows: irm https://dot.net/v1/dotnet-install.ps1 | iex

Setup

Build the tool once before first use:

scripts/build.sh

The binary is at bin/sharp-db (or bin/sharp-db.exe on windows).

Commands

query — Execute SQL

Run a SQL statement and return results as a markdown table.

sharp-db query --db-type <postgres|mysql|sqlite|sqlserver> --connection "<conn-string>" --sql "<sql>" [--limit <n>]

For non-SELECT statements (INSERT, UPDATE, DELETE), returns Rows affected: N.

Row limit. --limit caps the number of rows returned (default 100). A capped result appends _Showing first N rows; result truncated._. Pass --limit 0 to remove the cap (use for exports or when you genuinely need every row). Always prefer the default for exploratory queries so a large table doesn't flood the output; raise the limit deliberately when the user asks for more.

Mutating statements. If the user explicitly asked for the change, run it directly and show the SQL in your report — no confirmation round-trip. Only pause for explicit confirmation when a destructive statement (DROP, TRUNCATE, DELETE/UPDATE without WHERE, ALTER) is not clearly implied by the user's request. SELECT and other read-only statements never require confirmation.

tables — List tables and views

List all tables and views with metadata (primary keys, foreign keys, descriptions, related objects).

sharp-db tables --db-type <postgres|mysql|sqlite|sqlserver> --connection "<conn-string>" [--schema <name>]

If --schema is omitted and the database supports schemas, returns tables from all schemas.

columns — Inspect table columns

Read the full file on GitHub · 149 lines

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 Changed · +1 lines · +3 tokens per session 94d084ea4a82
  2. 2mo ago First seen · 148 lines · 68 tokens per session scan C 22b180499694

Subscribe to this mod's changes

sharp-db is a skill published in the GitHub repository beginor/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 71 tokens to every session and 1,911 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

sharp-db compared with skills from other repositories

sharp-db next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sharp-dbbeginor/agent-skillsSkill21mo agoMITC71Claude Code, Codex
create-prprisma/ormSkill48kyesterdayApache-2.0A48Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill31ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.8k2d agoApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
nornicdb-cypher-queriesorneryd/NornicDBSkill924todayMITA79Claude Code, Codex
volcengine-rds-postgresqlbytedance/agentkit-samplesSkill484yesterdayApache-2.0A63Claude Code, Codex