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.
npx skills add KunanonJ/ai-skills-hub --skill sql-optimization-patternsgit clone --depth 1 https://github.com/KunanonJ/ai-skills-hubWrote 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.
[](https://agentmods.dev/skills/kunanonj/ai-skills-hub/sql-optimization-patterns)<a href="https://agentmods.dev/skills/kunanonj/ai-skills-hub/sql-optimization-patterns"><img src="https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/sql-optimization-patterns/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.
<a href="https://agentmods.dev/skills/kunanonj/ai-skills-hub/sql-optimization-patterns"><img src="https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/sql-optimization-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00026 | $0.00297 |
| Opus 5.5 | $0.00010 | $0.00119 |
| Sonnet 5.5 | $0.00005 | $0.00059 |
| Haiku 4.5 | $0.00003 | $0.00030 |
Grade A, and why
sql-optimization-patterns 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.
What it actually says
SQL Optimization Patterns
Transform slow database queries into lightning-fast operations through systematic optimization, proper indexing, and query plan analysis.
Use this skill when
- Debugging slow-running queries
- Designing performant database schemas
- Optimizing application response times
- Reducing database load and costs
- Improving scalability for growing datasets
- Analyzing EXPLAIN query plans
- Implementing efficient indexes
- Resolving N+1 query problems
Do not use this skill when
- The task is unrelated to sql optimization patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
What ships with it
1 file 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.
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.
- 3mo ago First seen · 44 lines · 26 tokens per session scan A 6b52f067a0e6
sql-optimization-patterns is a skill published in the GitHub repository KunanonJ/ai-skills-hub (5 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 297 once invoked, about $0.0001 per session on Opus 5.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-09-03.
sql-optimization-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sql-optimization-patternsKunanonJ/ai-skills-hub | Skill | 5 | 2mo ago | MIT | A | 26 | Claude Code, Codex |
| sql-optimization-patternswshobson/agents | Skill | 43k | 3d ago | MIT | A | 44 | Claude Code |
| systematic-debuggingjnMetaCode/superpowers-zh | Skill | 8.7k | 5d ago | MIT | A | 24 | Claude Code |
| systemic-issue-triageGentleman-Programming/gentle-ai | Skill | 9.8k | yesterday | MIT | A | 57 | Claude Code, Codex |
| issue-root-resolutionGentleman-Programming/gentle-ai | Skill | 9.8k | yesterday | MIT | A | 45 | Claude Code, Codex |
| rdd-defect-workflowGentleman-Programming/gentle-ai | Skill | 9.8k | yesterday | MIT | A | 38 | Claude Code, Codex |
| diagnosing-superpowersjnMetaCode/superpowers-zh | Skill | 8.7k | 5d ago | MIT | A | 111 | Claude Code |