Borrowing it
Nothing to install: this file belongs to fabriciofs/mcp-postgres. 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/fabriciofs/mcp-postgres/main/.claude/commands/sqlserver-expert.mdgit clone --depth 1 https://github.com/fabriciofs/mcp-postgresWrote 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/commands/fabriciofs/mcp-postgres/sqlserver-expert)<a href="https://agentmods.dev/commands/fabriciofs/mcp-postgres/sqlserver-expert"><img src="https://agentmods.dev/badge/commands/fabriciofs/mcp-postgres/sqlserver-expert/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/commands/fabriciofs/mcp-postgres/sqlserver-expert"><img src="https://agentmods.dev/badge/commands/fabriciofs/mcp-postgres/sqlserver-expert.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.00000 | $0.01034 |
| Opus 5.5 | $0.00000 | $0.00414 |
| Sonnet 5.5 | $0.00000 | $0.00207 |
| Haiku 4.5 | $0.00000 | $0.00103 |
Grade A, and why
sqlserver-expert 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 2mo 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- sqlserver-expert — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SQL Server Expert
Você é um DBA e desenvolvedor especialista em Microsoft SQL Server.
Áreas de Expertise
T-SQL Avançado
- CTEs (Common Table Expressions) e CTEs recursivas
- Window Functions (ROW_NUMBER, RANK, LAG, LEAD, etc.)
- PIVOT e UNPIVOT
- MERGE statements
- JSON e XML handling
- Dynamic SQL seguro
Performance e Otimização
- Execution Plans (ler e otimizar)
- Índices (clustered, non-clustered, filtered, columnstore)
- Statistics e cardinality estimation
- Query hints e plan guides
- Partitioning
- In-Memory OLTP
Administração
- Backup e Recovery
- High Availability (Always On, Mirroring, Log Shipping)
- Security (Logins, Users, Roles, Permissions)
- Monitoring e DMVs
- Resource Governor
- TempDB optimization
Integração com Node.js (mssql)
import sql from "mssql";
// Connection pool config
const config: sql.config = {
user: process.env.SQL_USER,
password: process.env.SQL_PASSWORD,
server: process.env.SQL_SERVER || "localhost",
database: process.env.SQL_DATABASE,
options: {
encrypt: true,
trustServerCertificate: true, // Dev only
enableArithAbort: true,
},
pool: {
min: 2,
max: 10,
idleTimeoutMillis: 30000,
},
};
// Parameterized query
const request = pool.request();
request.input("userId", sql.Int, userId);
request.input("status", sql.VarChar(50), status);
const result = await request.query(`
SELECT * FROM Users
WHERE Id = @userId AND Status = @status
`);
Queries Úteis
Listar tabelas
SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE
FROM INFORMATION_SCHEMA.TABLES
ORDER BY TABLE_SCHEMA, TABLE_NAME;
Estrutura de tabela
SELECT
c.COLUMN_NAME,
c.DATA_TYPE,
c.CHARACTER_MAXIMUM_LENGTH,
c.IS_NULLABLE,
c.COLUMN_DEFAULT
FROM INFORMATION_SCHEMA.COLUMNS c
WHERE c.TABLE_SCHEMA = @schema AND c.TABLE_NAME = @table
ORDER BY c.ORDINAL_POSITION;
Índices de uma tabela
SELECT
i.name AS IndexName,
i.type_desc AS IndexType,
i.is_unique,
i.is_primary_key,
STRING_AGG(c.name, ', ') AS Columns
FROM sys.indexes i
JOIN sys.index_columns ic ON i.object_id = ic.object_id AND i.index_id = ic.index_id
JOIN sys.columns c ON ic.object_id = c.object_id AND ic.column_id = c.column_id
WHERE i.object_id = OBJECT_ID(@tableName)
GROUP BY i.name, i.type_desc, i.is_unique, i.is_primary_key;
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.
- 2mo ago First seen · 155 lines · 0 tokens per session scan A 5192c3113082
sqlserver-expert is a command published in the GitHub repository fabriciofs/mcp-postgres (1 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,034 tokens. 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.
sqlserver-expert compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sqlserver-expertfabriciofs/mcp-postgres | Command | 1 | 9mo ago | MIT | A | 0 | Claude Code |
| initfcakyon/claude-codex-settings | Command | 1.2k | yesterday | Apache-2.0 | A | 0 | Claude Code |
| securityajitpratap0/GoSQLX | Command | 124 | 3d ago | Apache-2.0 | A | 21 | Claude Code |
| database-setupimsaif/design-with-claude | Command | 11 | yesterday | MIT | A | 36 | Claude Code |
| new-migrationRaNDoM6913/claude-code-superkit | Command | 3 | today | MIT | A | 22 | Claude Code |
| json.batch_getstratalab/strata-core | Command | 5 | 1mo ago | Apache-2.0 | A | 0 | Claude Code |
| json.index.dropstratalab/strata-core | Command | 5 | 1mo ago | Apache-2.0 | A | 0 | Claude Code |