Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkitnpx agentmods add skills/morningstar202604/awesome-skillkit/sql-database-assistantWrote 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.
[](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/sql-database-assistant)<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/sql-database-assistant"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/sql-database-assistant/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.
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/sql-database-assistant"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/sql-database-assistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.04497 |
| Opus 5.5 | $0.00028 | $0.01799 |
| Sonnet 5.5 | $0.00014 | $0.00899 |
| Haiku 4.5 | $0.00007 | $0.00450 |
Grade A, and why
sql-database-assistant 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 28d 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.
How it starts
The opening of the file, as written. The whole thing — 417 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SQL Database Assistant
The day-to-day companion to database-designer. database-designer focuses on schema architecture, ERD modeling, and multi-tenancy patterns; this skill covers the everyday: writing queries, optimizing performance, generating migrations, and bridging app code with the database engine.
Workflow
This skill proceeds through the following main flow; detailed rules for each stage are in the corresponding sections below:
- Take the request: distinguish whether it's "write as SQL", "optimize existing SQL", or "design/migrate a schema" (see Natural-language-to-SQL / Query optimization / Migration generation)
- Feel out the schema: confirm the table structure and column types, don't guess (see Schema exploration)
- Produce: hand over the SQL or migration script, and state the assumptions (see Delivery criteria)
- Optimize and validate: when there's a performance problem, run index and execution-plan analysis (see Query optimization)
- Self-check: run it against the safety red lines and failure table before delivering
When the target database differs, first confirm dialect differences in the Multi-database support section to avoid syntax incompatibility.
Core Capabilities
- Natural-language to SQL — translate a request into a correct and efficient query
- Schema exploration — introspect live PostgreSQL, MySQL, SQLite, and SQL Server databases
- Query optimization — EXPLAIN analysis, index recommendations, rewrite patterns
- Migration generation — up/down scripts, zero-downtime strategies, rollback plans
- ORM integration — Prisma, Drizzle, TypeORM, SQLAlchemy patterns and escape hatches
Tools
| Script | Purpose |
|---|---|
scripts/query_optimizer.py |
Statically analyze SQL queries for performance problems |
scripts/migration_generator.py |
Generate migration-file templates from a change description |
scripts/schema_explorer.py |
Turn introspection results (or a SQLite file) into schema docs |
What ships with it
5 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.
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.
- 28d ago Changed · -2 lines · -7 tokens per session 4795ef0f4986
- 1mo ago Changed · -2 lines ab180115ffe5
- 1mo ago Changed · -42 lines · +31 tokens per session 1eae40979fba
- 1mo ago First seen · 463 lines · 45 tokens per session scan A 145df2dbde77
sql-database-assistant is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 23d ago), licensed Apache-2.0. It adds 69 tokens to every session and 4,497 once invoked, about $0.0003 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-31.
Other skills, from other repositories
backend-patterns
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes. Use when building or reviewing Node.js, Express, or Next.js API routes and their data access.
chroma
Embedding database for RAG and semantic search.
pinecone
Managed vector DB for production RAG and search.
postgres-patterns
PostgreSQL database patterns for query optimization, schema design, indexing, and security. Quick reference for common patterns, index types, data types, and anti-pattern detection. Based on Supabase best practices.
review-prs
Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…
stale-sweep
Sweep the googleapis/mcp-toolbox repo for issues and PRs with no real activity in N days (default 60), sort each by whose silence it is (the author's, ours, or nobody's), and draft the nudge or close comment. Use whenever a maintainer asks for a stale sweep, backlog cleanup, or an SLO check, e.g. "stale sweep", "find…