text-to-sql SKILL.md skillA
text-to-sql from nicholyx/ai-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add nicholyx/ai-skills/text-to-sql@git:20260516.dd241a9Pins git:20260516.dd241a9 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- nicholyx/ai-skills
- Path
.agents/skills/text-to-sql/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260516.dd241a9, committed May 16, 2026
- First version recorded
- May 16, 2026
- Size
- 5,490 bytes
- Repository stars
- 6
- License
- Apache-2.0
Setup and use text-to-SQL capabilities for SQL databases (SQLite, PostgreSQL, MySQL, MariaDB, etc.). Use when: (1) User wants to query databases using natural language, (2) User asks to setup text-to-sql project, (3) User mentions extracting data from database, (4) User has .sqlite/.db file or database credentials and wants to work with data. This skill sets up project structure, extracts database schema, and enables natural language to SQL conversion.
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
# Text-to-SQL Skill Convert natural language questions into SQL queries and execute them against SQL databases. ## Phase 1: Project Setup ### Step 1: Ask about database connection Ask user which database type they want to use: **Option A: SQLite** (file-based, no credentials needed) - User provides path to `.sqlite` or `.db` file - Or places file in `database/` folder **Option B: Server database** (PostgreSQL, MySQL, MariaDB, etc.) - User creates `.env` file with connection details - Supported: PostgreSQL, MySQL, MariaDB, and other SQL databases ### Step 2: Initialize project structure Run the init script OR manually create structure: **Option A: Use init script** ```bash python scripts/init_project.py --target /path/to/project ``` **Option B: Manual setup** ```bash mkdir -p database output/queries output/reports ``` Copy from skill folders to project root: - `scripts/*.py` → project root (db_extractor.py, query_runner.py, list_databases.py, sql_helper.py) - `assets/example.env` → project root - `assets/requirements.txt` → project root - `assets/.gitignore` → project root Install dependencies: ```bash pip install -r requirements.txt ``` …
Read the whole file at its exact version.
How to install
mdr add nicholyx/ai-skills/text-to-sql@sha256:2014a5eb331606edThe line at the top of this page pins the label git:20260516.dd241a9, 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.
[](https://markdownregistry.com/a/art_3tjjhanrhwtf46fe)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, all committed on May 16, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260516.dd241a9 latest | 2026-05-16 | dd241a9 | 5,490 B | A | view · diff |
| git:20260516.4d9ab13 | 2026-05-16 | 4d9ab13 | 5,121 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5490 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
nicholyx/ai-skills · 6 stars · license Apache-2.0 · pushed 2026-10-18 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_3tjjhanrhwtf46fe GET https://markdownregistry.com/api/v1/resolve?ref=nicholyx/ai-skills/text-to-sql GET https://markdownregistry.com/api/v1/blob/2014a5eb331606ed8811c3b0c11a316f319299dd3ba45af170abf71785c87e91
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.