Borrowing it
Nothing to install: this file belongs to zexion7873/copilot-setting. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/zexion7873/copilot-setting/main/.github/instructions/sql.instructions.mdgit clone --depth 1 https://github.com/zexion7873/copilot-settingWrote 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/instructions/zexion7873/copilot-setting/sql)<a href="https://agentmods.dev/instructions/zexion7873/copilot-setting/sql"><img src="https://agentmods.dev/badge/instructions/zexion7873/copilot-setting/sql/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/instructions/zexion7873/copilot-setting/sql"><img src="https://agentmods.dev/badge/instructions/zexion7873/copilot-setting/sql.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.00539 | $0.00539 |
| Opus 5.5 | $0.00216 | $0.00216 |
| Sonnet 5.5 | $0.00108 | $0.00108 |
| Haiku 4.5 | $0.00054 | $0.00054 |
Grade A, and why
copilot-setting sql.instructions.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 1mo 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 Conventions
Non-negotiable rules for all SQL — raw JDBC, HQL, native queries. Hibernate query patterns: instructions/spring-hibernate.instructions.md. DDL / migration rules: instructions/sql-ddl.instructions.md.
Security
- JDBC: all user input via
PreparedStatementwith?— zero tolerance for string concatenation - HQL / Criteria: use named parameters (
:paramName) only — never concatenate into query strings - Escape
%,_, and the escape char itself in any user input bound toLIKE, and declare it —... LIKE ? ESCAPE '\\'; never silently strip user-supplied wildcards (that changes query semantics) - No
SELECT *on tables with sensitive columns - Never log SQL containing credentials or PII
Performance
- No
SELECT *— list columns explicitly - No functions on indexed columns in
WHERE— use range conditions - No
OFFSETpagination on large tables — cursor:WHERE id > ? ORDER BY id LIMIT N - N+1 = SQL inside a loop — batch with
INor JOIN INvsEXISTSsubqueries: MySQL 8.0 optimizes both with the same semijoin transforms (EXISTSsince 8.0.16) — pick the clearer form and checkEXPLAIN; bewareNOT INmatching nothing when the subquery returns aNULL- Batch INSERT/UPDATE/DELETE — never row-by-row; chunk and commit per chunk to bound lock time, transaction size, and redo/binlog volume (low thousands of rows is a typical starting point, not a fixed limit — tune to row width, index count, and lock/replication pressure)
JDBC Resources
try-with-resourcesforConnection,PreparedStatement,ResultSetWHEREclause mandatory on everyUPDATEandDELETE- Transactions (raw JDBC only — Spring-managed
<tx:advice>handles this automatically): commit or rollback on every code path
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.
- 1mo ago Changed · -11 lines · -193 tokens per session f3f1f2e4aaef
- 2mo ago First seen · 43 lines · 732 tokens per session scan A aeee0da4269a
copilot-setting sql.instructions.md is an instructions file published in the GitHub repository zexion7873/copilot-setting (1 stars, last pushed 1mo ago), licensed MIT. It adds 539 tokens to every session, about $0.0022 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-08-31.
copilot-setting sql.instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| copilot-setting sql.instructions.mdzexion7873/copilot-setting | Instructions file | 1 | 1mo ago | MIT | A | 539 | GitHub Copilot |
| ai-agent-rules-generator copilot.instructions.mdsavedpixel/ai-agent-rules-generator | Instructions file | 8 | 6mo ago | MIT | A | 3,431 | GitHub Copilot |
| ai-agent-rules-generator agent-observations.instructions.mdsavedpixel/ai-agent-rules-generator | Instructions file | 8 | 6mo ago | MIT | A | 1,787 | GitHub Copilot |
| ai-agent-rules-generator task.instructions.mdsavedpixel/ai-agent-rules-generator | Instructions file | 8 | 6mo ago | MIT | A | 1,703 | GitHub Copilot |
| ai-agent-rules-generator doc-sync.instructions.mdsavedpixel/ai-agent-rules-generator | Instructions file | 8 | 6mo ago | MIT | A | 1,652 | GitHub Copilot |
| ai-agent-rules-generator browsetools.instructions.mdsavedpixel/ai-agent-rules-generator | Instructions file | 8 | 6mo ago | MIT | A | 490 | GitHub Copilot |
| ai-agent-rules-generator devtools.instructions.mdsavedpixel/ai-agent-rules-generator | Instructions file | 8 | 6mo ago | MIT | A | 399 | GitHub Copilot |