agentleFS
XData-siXData-si/xdata-agenthub/skills/sql-review/SKILL.md

sql-review

Skill1 starsChanged 33 days agoMITView on GitHub

Review SQL for correctness, security and performance — injection, transactions, NULL handling, indexes and query plans. Use when writing or reviewing queries, views or stored procedures.

13 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check joins, null semantics and aggregation.

    line 17
  2. Distinctive:

    Verify parameter binding and transaction boundaries.

    line 18
  3. Distinctive:

    Test edge cases and concurrency.

    line 20
  4. Distinctive:

    Read-only by default. Do not expose credentials, execute untrusted code, access unrelated data or make production changes without explicit …

    line 36

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SQL Review

Purpose

Review SQL correctness, security and performance. Follow project conventions and explicitly state assumptions.

Inputs

Relevant source and configuration, desired behavior, supported versions, operating environment, ownership and constraints.

Procedure

  1. Identify dialect and schema.
  2. Check joins, null semantics and aggregation.
  3. Verify parameter binding and transaction boundaries.
  4. Inspect pagination and index assumptions.
  5. Test edge cases and concurrency.
  6. Validate execution plans only in authorized environments.

Example judgment

A LEFT JOIN with a right-table predicate in WHERE can silently filter unmatched rows.

Required output

Summarize scope, prioritized findings, affected artifacts, observed evidence, recommendations, verification steps and residual risks. Mark tests as PASS, FAIL, NOT RUN or BLOCKED; never infer a passing test from a proposed command.

Acceptance checks

  • Findings cite a concrete artifact or a clearly labeled assumption.
  • At least one negative or boundary case is covered when relevant.
  • Recommendations consider compatibility and operational cost.
  • Unverified behavior is not represented as an observed fact.

Safety

Read-only by default. Do not expose credentials, execute untrusted code, access unrelated data or make production changes without explicit authorization. Prefer disposable fixtures.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.