agentic-sql SKILL.md skillA

agentic-sql from 23blocks-os/ai-maestro-plugins is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add 23blocks-os/ai-maestro-plugins/agentic-sql@v1.4.0

Pins v1.4.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
23blocks-os/ai-maestro-plugins
Path
plugins/ai-maestro/skills/agentic-sql/SKILL.md
Versions recorded
7
Latest version
v1.4.0, committed Oct 14, 2026
First version recorded
Oct 10, 2026
Size
11,652 bytes
Repository stars
11
License
MIT

Run SQL against a production or staging database safely. Check the saved query library first, run only read-only queries (read-only role, SQL check, LIMIT added), and save findings worth keeping back to the library. Use when a task needs data from a real database, such as a customer lookup, a support-ticket investigation or a data audit. Not for sandbox databases or for code that merely builds queries. Changing data is a separate step that needs a person's approval.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

## First-Time Setup

On first invocation in a project, the skill auto-extracts these from `CLAUDE.md` if present, then asks for any missing values. Persist them to `.claude/agentic-sql.yml` for the session.

| Variable | Purpose | Example |
|---|---|---|
| `{QUERY_DIR}` | Where saved queries live | `sql_library/queries/` |
| `{INDEX_PATH}` | Markdown index of the library | `sql_library/INDEX.md` |
| `{SCHEMA_DOC_PATH}` | Schema reference doc | `sql_library/SCHEMA.md` |
| `{DB_ENVS}` | Named environments + connection variables | `acme (ACME_DATABASE_URL), files (FILES_DATABASE_URL), …` |
| `{READ_ONLY_ROLE}` | Postgres role with SELECT-only grants the agent connects as | `agentic_sql_ro` |
| `{SAFE_PSQL_WRAPPER}` | The wrapper that applies the SQL gate. It ships with this skill as `scripts/safe_psql.py`; point this at your own only if you replace it | `safe-psql` |
| `{MAX_ROWS}` | Default LIMIT injected when query has none | `1000` |
| `{STATEMENT_TIMEOUT}` | `statement_timeout` set on the read-only role | `30s` |
| `{DISPLAY_ROWS}` | Rows shown to the user before offering more | `50` |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add 23blocks-os/ai-maestro-plugins/agentic-sql@sha256:29cadf02eb6fcce5

The line at the top of this page pins the label v1.4.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_p6drl6l64alrx2v7.svg)](https://markdownregistry.com/a/art_p6drl6l64alrx2v7)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Oct 10, 2026 and Oct 14, 2026, more than one a day.

versioncommittedcommitsizeaudit
v1.4.0 latest2026-10-14 2eae73f 11,652 BA view · diff
v1.3.02026-10-12 7414e28 11,086 BA view · diff
v1.2.12026-10-12 cfb61c7 9,894 BA view · diff
v1.2.02026-10-11 5e86173 9,604 BA view · diff
v1.1.02026-10-10 e0f3e81 9,251 BA view · diff
v1.0.12026-10-10 18ff867 8,169 BA view · diff
v1.0.02026-10-10 eabb9ee 8,245 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (11652 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

23blocks-os/ai-maestro-plugins · 11 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_p6drl6l64alrx2v7
GET https://markdownregistry.com/api/v1/resolve?ref=23blocks-os/ai-maestro-plugins/agentic-sql
GET https://markdownregistry.com/api/v1/blob/29cadf02eb6fcce565a451ad89e9c072fa4515fc85eb07f0658310a4686fcdd1

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from 23blocks-os/ai-maestro-plugins

agent-files SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/agent-files/SKILL.md · Share files between agents, hosts and people through an AFP space (S3-compatible storage such as Garage). Store a file…
v0.1.0 · audit A · 11 stars
agent-identity SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/agent-identity/SKILL.md · Authenticate an AI agent with an auth server using the Agent Identity (AID) protocol, with Ed25519 identity documents…
v0.4.0 · audit A · 11 stars
agent-messaging SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/agent-messaging/SKILL.md · Send, read and reply to signed messages between AI agents with the Agent Messaging Protocol (AMP). Use when the user…
v0.5.0 · audit A · 11 stars
agent-tasks SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/agent-tasks/SKILL.md · Keep your own task board and Eisenhower matrix in AI Maestro current, so the operator can see what you are doing, where…
v1.5.0 · audit A · 11 stars
agentic-seo SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/agentic-seo/SKILL.md · Audit and implement SEO for a website: meta tags, canonical URLs, Open Graph, X/Twitter cards, JSON-LD structured data…
v2.2.0 · audit A · 11 stars
agentic-support SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/agentic-support/SKILL.md · Manage customer support cases with a written trail. Open a numbered case per customer report, record what was found…
v1.1.1 · audit A · 11 stars
ai-maestro-agents-management SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/ai-maestro-agents-management/SKILL.md · Creates, manages, and orchestrates AI agents using the AI Maestro CLI. Use when the user asks to "create agent", "list…
v2.1.0 · audit A · 11 stars
aim-secret-management SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/aim-secret-management/SKILL.md · Use credentials such as API keys, tokens and passwords without ever seeing them, and ask the user to store one without…
v1.0.0 · audit B · 11 stars
canvas-actions SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/canvas-actions/SKILL.md · Create and update interactive HTML pages (canvases) that the user sees in the AI Maestro dashboard, and handle what…
v1.3.0 · audit B · 11 stars
docs-search SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/docs-search/SKILL.md · Look up a function, class or API in this codebase's generated documentation: its signature, arguments, parameters…
v1.1.0 · audit A · 11 stars
graph-query SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/graph-query/SKILL.md · Query the code graph for callers, dependencies and the blast radius of a change. Use before changing the signature or…
v1.1.0 · audit A · 11 stars
memory-search SKILL.md skill
23blocks-os/ai-maestro-plugins · plugins/ai-maestro/skills/memory-search/SKILL.md · Search this agent's long-term memory of past sessions: decisions, facts, corrections, and what depends on an entity…
v1.2.0 · audit A · 11 stars

Every file in 23blocks-os/ai-maestro-plugins

Browse by kind, by grade A, or by owner.