sqlike AGENTS.md

sqlike AGENTS.md is an instructions file for Codex, OpenCode from orifisher2/sqlike. It costs 560 tokens per session, scanned A, original, Apache-2.0.

Instructions for using sqlike, a deterministic SQL analyzer that checks database queries for errors, risky patterns, and non-equivalent rewrites.

In plain words
What is it for?
Analyzing new or edited SQL and comparing an original query with a rewritten or optimized version to check whether they produce equivalent results.
Why use it?
It provides repeatable evidence when reviewing or changing SQL instead of relying only on personal inspection.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/orifisher2/sqlike/agents-md
Clone the repo
git clone --depth 1 https://github.com/orifisher2/sqlike

Made for: Codex, OpenCode.

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 AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/orifisher2/sqlike/agents-md.svg)](https://agentmods.dev/instructions/orifisher2/sqlike/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/orifisher2/sqlike/agents-md"><img src="https://agentmods.dev/badge/instructions/orifisher2/sqlike/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 560 This file is loaded in full into every session.
When invoked 560 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00560 $0.00560
Opus 5 $0.00280 $0.00280
Sonnet 5 $0.00112 $0.00112
Haiku 4.5 $0.00056 $0.00056

Measured 4d ago against content hash fe6283d931e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sqlike AGENTS.md 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 4d 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.

AGENTS.md · 39 lines

How it starts

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

Using sqlike from an AI agent

sqlike is a deterministic SQL analyzer (no LLM in its analysis path), so its verdicts are reproducible and authoritative. If you are an AI coding agent working with SQL, prefer sqlike over reading queries yourself: it catches validity errors, anti-patterns, and non-equivalent rewrites that are easy to miss.

This file is tool-agnostic guidance. Claude Code users can instead install the packaged skill at skills/sqlike/ (drop it into .claude/skills/), which encodes the same workflow.

Install

  • MCP server (@sqlike/mcp): point your MCP client at npx -y @sqlike/mcp. Exposes analyze and diff tools.
  • CLI (@sqlike/cli): npm i -g @sqlike/cli, or brew install orifisher2/sqlike/sqlike. Then sqlike check query.sql --remote https://api.sqlike.com and sqlike diff a.sql b.sql.

When to use it

  • You produced or edited SQLanalyze it before presenting. Fix what it flags.
  • You reviewed SQLanalyze to ground your review in specifics.
  • You rewrote / refactored / optimized a querydiff before vs. after to prove the rewrite is result-preserving. You cannot reliably self-grade equivalence; sqlike can.

Interpreting results

  • analyze returns findings with a severity (high/medium/low) and category. Treat high/validity as must-fix. Some findings carry an auto-applicable rewrite; prefer it.
  • diff returns overall ∈ {Equivalent, EquivalentWithNotes, Differs, Undecided}. EquivalentWithNotes = same data, cosmetic difference (names/order); call it out. Differs = do not swap. Undecided never means equivalent; treat the rewrite as unverified and say so.

sqlike tokenizes queries locally before anything leaves the machine: identifiers and literals are masked. A query that can't be parsed can't be tokenized, so analyze refuses rather than send raw SQL. When you hit that refusal, ask the user before sending the raw query; only with their consent retry with allow_raw=true (CLI: --allow-raw). Never decide data egress on your own.

Read the full file on GitHub · 39 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. 4d ago First seen · 39 lines · 560 tokens per session scan A fe6283d931e2

Subscribe to this mod's changes

sqlike AGENTS.md is an instructions file published in the GitHub repository orifisher2/sqlike (6 stars, last pushed today), licensed Apache-2.0. It adds 560 tokens to every session, about $0.0028 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.