sql-best-practice

sql-best-practice is a skill for Codex from klh/speedy-claude. It costs 60 tokens per session (674 once invoked), scanned A, a copy of csharp-best-practice, MIT.

A workflow for reviewing and improving SQL using common conventions for the relevant database system and runtime. SQL is the language used to query and modify databases.

In plain words
What is it for?
It helps review SQL structure, naming, testing, formatting, tooling, and high-impact refactors for a particular database environment.
Why use it?
Ad hoc SQL habits can reduce readability, safety, and maintainability. The workflow first identifies the SQL dialect and project conventions before suggesting focused changes.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It helps review SQL structure, naming, testing, formatting, tooling, and high-impact refactors for a particular database environment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/klh/speedy-claude/sql-best-practice
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 klh/speedy-claude --skill sql-best-practice
Clone the repo
git clone --depth 1 https://github.com/klh/speedy-claude

Made for: 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 sql-best-practice

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/klh/speedy-claude/sql-best-practice"><img src="https://agentmods.dev/badge/skills/klh/speedy-claude/sql-best-practice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 674 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 88% copy Near-identical to another mod 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.00060 $0.00674
Opus 5.5 $0.00024 $0.00270
Sonnet 5.5 $0.00012 $0.00135
Haiku 4.5 $0.00006 $0.00067

Measured 3mo ago against content hash 2ba38d4f7d9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sql-best-practice 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 3mo 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.

Origin

This is a copy

88% identical to csharp-best-practice — 18 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/sql-best-practice/SKILL.md · 75 lines

How it starts

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

SQL Best Practice

Use this skill to review or improve SQL work using common ecosystem conventions instead of ad hoc local habits.

Intent Router

Need Load
core conventions, tooling defaults, and review checklist for SQL references/best-practices.md

Quick Start

  1. Confirm the target version, dialect, runtime, framework, or vendor before recommending changes.
  2. Prefer existing project conventions when they are already enforced and internally consistent.
  3. Apply the default guidance in references/best-practices.md for naming, structure, testing, and tooling.
  4. Recommend the smallest change set that improves clarity, safety, and maintainability.

Workflow

  • Identify the runtime, dialect, or host environment before making specific recommendations.
  • Separate language-level guidance from framework-, vendor-, or platform-specific conventions.
  • Prioritize correctness, readability, changeability, and operability before micro-optimizations.
  • Note the automation path: formatter, linter, type checker, compiler flags, or test runner.
  • Call out the highest-leverage refactors first instead of producing style-only churn.

Typical Focus Areas

  • naming, layout, and public API clarity
  • boundary handling, state management, and error paths
  • dependency direction, module structure, and test seams
  • tooling, CI checks, and repeatable local verification
  • performance, portability, or safety constraints only when they materially affect the design

Outputs to Prefer

  • summarize the governing constraints before detailed recommendations
  • group findings by severity, maintenance impact, or migration effort
  • recommend concrete edits, checks, or follow-up tests
  • preserve externally visible behavior unless the request explicitly allows semantic changes

Common Requests

Read the full file on GitHub · 75 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 75 lines · 60 tokens per session scan A 2ba38d4f7d9a

Subscribe to this mod's changes

sql-best-practice is a skill published in the GitHub repository klh/speedy-claude (11 stars, last pushed 2mo ago), licensed MIT. It adds 60 tokens to every session and 674 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to csharp-best-practice, differing in 18 lines, and is treated as a copy.

Related

sql-best-practice compared with skills from other repositories

sql-best-practice next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sql-best-practiceklh/speedy-claudeSkill112mo agoMITA60Codex
create-prprisma/ormSkill48ktodayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill32ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.9k2d agoApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
bex-keyvaluebex-co/bexSkill1.6ktodayApache-2.0A117Claude Code, Codex
pentesting-mysqlxalgorix/xalgorixSkill1.6ktodayApache-2.0A65Claude Code, Codex