sql-revision SKILL.md skillA

sql-revision from stringnlplab/flexsql is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add stringnlplab/flexsql/sql-revision@git:20260504.f1763a1

Pins git:20260504.f1763a1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
stringnlplab/flexsql
Path
claude_harness/.claude/skills/sql-revision/SKILL.md
Versions recorded
1
Latest version
git:20260504.f1763a1, committed May 4, 2026
Size
1,849 bytes
Repository stars
12
License
none declared

Verify that a SQL query's actual output faithfully answers the natural-language question.

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

# SQL Revision

A query that runs is not the same as a query that is right. The goal of revision is to catch the gap — the cases where the SQL executes cleanly but produces an answer that doesn't match what the question literally asks for. Treat your own SQL skeptically: the agent that wrote it has already convinced itself it's correct, and that agent is you.

## Principles

- **The literal text of the question is the arbiter.** Not your memory of it, not the plan you wrote, not your reasoning about it. Quote the parts of the question that describe the output and the constraints so you have something concrete to diff against.
- **Check the shape before the values.** If the question asks for specific columns in a specific order and your output has different ones, that is a real mistake — do not rationalize it as a naming convention or "extra context." Compare column lists directly.
- **Check the constraints individually.** Walk through every filter, grouping, scope, and condition in the question and find where your SQL implements it. If you cannot point to the implementation, the constraint is silently missing.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add stringnlplab/flexsql/sql-revision@sha256:4f44a91d7c387ef6

The line at the top of this page pins the label git:20260504.f1763a1, 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_dihm5e6wbplja2sv.svg)](https://markdownregistry.com/a/art_dihm5e6wbplja2sv)

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

Versions

The registry has recorded 1 version of this file, committed on May 4, 2026.

versioncommittedcommitsizeaudit
git:20260504.f1763a1 latest2026-05-04 f1763a1 1,849 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 (1849 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

stringnlplab/flexsql · 12 stars · license none declared · pushed 2026-09-12 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_dihm5e6wbplja2sv
GET https://markdownregistry.com/api/v1/resolve?ref=stringnlplab/flexsql/sql-revision
GET https://markdownregistry.com/api/v1/blob/4f44a91d7c387ef623609ac083339406be6aef9baab046023b362c4d3e75a47c

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 stringnlplab/flexsql

sql-writing SKILL.md skill
stringnlplab/flexsql · claude_harness/.claude/skills/sql-writing/SKILL.md · Construct a SQL query that correctly answers a natural-language question grounded in the actual database.
git:20260504.f1763a1 · audit A · 12 stars
CLAUDE.md@claude_harness CLAUDE.md file
stringnlplab/flexsql · claude_harness/CLAUDE.md
git:20260504.f1763a1 · audit A · 12 stars

Every file in stringnlplab/flexsql

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