sqlike

sqlike is a skill for Claude Code, Codex from orifisher2/sqlike. It costs 81 tokens per session (772 once invoked), scanned A, original, Apache-2.0.

A deterministic checker for SQL, the language used to read and change data in databases. It checks validity, common problems, suggested rewrites, indexes, and whether two queries produce equivalent results.

In plain words
What is it for?
Use it to analyze new or edited SQL, review queries, and compare an original query with a refactored or optimized version across supported database dialects.
Why use it?
It catches SQL mistakes and can verify rewrites instead of relying only on manual review or an agent’s judgment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to analyze new or edited SQL, review queries, and compare an original query with a refactored or optimized version across supported database dialects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orifisher2/sqlike/sqlike
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add orifisher2/sqlike --skill sqlike
Clone the repo
git clone --depth 1 https://github.com/orifisher2/sqlike

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for sqlike

README.md
[![agentmods](https://agentmods.dev/badge/skills/orifisher2/sqlike/sqlike/github.svg)](https://agentmods.dev/skills/orifisher2/sqlike/sqlike)
Your own site
<a href="https://agentmods.dev/skills/orifisher2/sqlike/sqlike"><img src="https://agentmods.dev/badge/skills/orifisher2/sqlike/sqlike/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.

agentmods 80×15 button for sqlike

Your own site · 80×15
<a href="https://agentmods.dev/skills/orifisher2/sqlike/sqlike"><img src="https://agentmods.dev/badge/skills/orifisher2/sqlike/sqlike.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 772 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.00772
Opus 5 $0.00041 $0.00386
Sonnet 5 $0.00016 $0.00154
Haiku 4.5 $0.00008 $0.00077

Measured 8d ago against content hash 33d3f5a7d338, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

sqlike 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 8d 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.

skills/sqlike/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sqlike

sqlike is a deterministic SQL analyzer (no LLM in its analysis path — its verdicts are reproducible and authoritative). Prefer it over eyeballing SQL yourself: it catches validity errors, anti-patterns, and non-equivalent rewrites that are easy to miss by reading.

When to reach for it

  • You produced or edited SQL → run analyze before presenting it. Fix what it flags.
  • You reviewed someone's SQL → run analyze to back your review with specifics.
  • You rewrote, refactored, or optimized a query → run diff on the before/after to prove the rewrite is result-preserving. An LLM cannot reliably self-grade equivalence; sqlike can.

How to call it

Via the MCP server (@sqlike/mcp), two tools:

  • analyze(sql, schema?, dialect?) — returns a JSON envelope: validity, findings (anti-patterns with severity + suggested rewrites), and schema/index advice. Pass schema (CREATE TABLE / CREATE INDEX DDL) for column- and type-aware checks. dialect is postgres (default), mysql, sqlite, or mssql.
  • diff(sql_a, sql_b, schema?, dialect?) — returns a JSON verdict: overall is one of Equivalent, EquivalentWithNotes, Differs, Undecided, plus a confidence and a per-property report (columns, rows, cardinality, order).

Or via the CLI (@sqlike/cli): sqlike check query.sql --remote https://api.sqlike.com and sqlike diff before.sql after.sql.

Reading the results

  • analyze findings have a severity (high/medium/low) and category (validity, correctness, performance, maintainability, portability). Treat high/validity as must-fix; report the rest with the query. Some findings carry an auto-applicable rewrite — prefer it.
  • diff verdicts: Equivalent = safe to swap. EquivalentWithNotes = same rows/data but a cosmetic difference (column names, ordering) — call it out. Differs = do NOT swap; the results change. Undecided never means equivalent — sqlike couldn't prove it either way, so treat the rewrite as unverified and say so; don't claim the queries are equivalent.

Read the full file on GitHub · 53 lines

Changes

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.

  1. 8d ago First seen · 53 lines · 81 tokens per session scan A 33d3f5a7d338

Subscribe to this mod's changes

sqlike is a skill published in the GitHub repository orifisher2/sqlike (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 81 tokens to every session and 772 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories

database

This skill should be used when reviewing database queries, migrations, indexes, or schema changes.

dean0x/devflow · 20 tokens

patterns

This skill should be used when the user asks to "create an API endpoint", "add CRUD operations", "implement event handlers", "set up logging", "add configuration", or builds features involving database operations, REST/GraphQL APIs, pub/sub patterns, or service configuration. Provides implementation patterns that…

dean0x/devflow · 68 tokens

migration-audit

Stack-aware migration safety audit: data loss risks, destructive ops without rollback, NOT NULL without DEFAULT, unsafe ALTER TYPE, lock-heavy DDL, constraint sequencing. Supports Prisma, Drizzle, Supabase CLI, raw SQL.

marcoguillermaz/Tierward · 0 tokens

databases

Work with PostgreSQL, MongoDB, and Redis for schema design, query optimization, migrations, and data modeling. Use when designing or optimizing data layers.

ihatesea69/kiro-kit · 34 tokens

israeli-postgres-toolkit

Best practices for PostgreSQL in Israeli apps, covering Supabase patterns, Hebrew text indexing with ICU collation, shekel/NIS currency handling, Israeli date formats, and Asia/Jerusalem timezone gotchas. Use when user asks to "set up Hebrew full-text search", "handle NIS currency in Postgres", "tipul b'ivrit…

squadcodercom/squadcoder · 199 tokens

ponytail-review

Code review focused exclusively on over-engineering. Finds what to delete: reinvented standard library, unneeded dependencies, speculative abstractions, dead flexibility. One line per finding: location, what to cut, what replaces it. Use when the user says "review for over-engineering", "what can we delete", "is this…

dmae97/omk · 100 tokens