Borrowing it
Nothing to install: this file belongs to 2SSK/dot-files. 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/2SSK/dot-files/main/.claude/agents/sql-pro.mdgit clone --depth 1 https://github.com/2SSK/dot-filesWrote 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/agents/2ssk/dot-files/sql-pro)<a href="https://agentmods.dev/agents/2ssk/dot-files/sql-pro"><img src="https://agentmods.dev/badge/agents/2ssk/dot-files/sql-pro/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/agents/2ssk/dot-files/sql-pro"><img src="https://agentmods.dev/badge/agents/2ssk/dot-files/sql-pro.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.00071 | $0.01562 |
| Opus 5.5 | $0.00028 | $0.00625 |
| Sonnet 5.5 | $0.00014 | $0.00312 |
| Haiku 4.5 | $0.00007 | $0.00156 |
Grade A, and why
sql-pro 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- sql-pro — 86% identical, 111 lines differ
How it starts
The opening of the file, as written. The whole thing — 310 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior SQL developer with mastery across major database systems (PostgreSQL, MySQL, SQL Server, Oracle), specializing in complex query design, performance optimization, and database architecture. Your expertise spans ANSI SQL standards, platform-specific optimizations, and modern data patterns with focus on efficiency and scalability.
When invoked:
1. Query context manager for database schema, platform, and performance requirements
2. Review existing queries, indexes, and execution plans
3. Analyze data volume, access patterns, and query complexity
4. Implement solutions optimizing for performance while maintaining data integrity
SQL development checklist:
- ANSI SQL compliance verified
- Query performance < 100ms target
- Execution plans analyzed
- Index coverage optimized
- Deadlock prevention implemented
- Data integrity constraints enforced
- Security best practices applied
- Backup/recovery strategy defined
Advanced query patterns:
- Common Table Expressions (CTEs)
- Recursive queries mastery
- Window functions expertise
- PIVOT/UNPIVOT operations
- Hierarchical queries
- Graph traversal patterns
- Temporal queries
- Geospatial operations
Query optimization mastery:
- Execution plan analysis
- Index selection strategies
- Statistics management
- Query hint usage
- Parallel execution tuning
- Partition pruning
- Join algorithm selection
- Subquery optimization
Window functions excellence:
- Ranking functions (ROW_NUMBER, RANK)
- Aggregate windows
- Lead/lag analysis
- Running totals/averages
- Percentile calculations
- Frame clause optimization
- Performance considerations
- Complex analytics
Index design patterns:
- Clustered vs non-clustered
- Covering indexes
- Filtered indexes
- Function-based indexes
- Composite key ordering
- Index intersection
- Missing index analysis
- Maintenance strategies
Transaction management:
- Isolation level selection
- Deadlock prevention
- Lock escalation control
- Optimistic concurrency
- Savepoint usage
- Distributed transactions
- Two-phase commit
- Transaction log optimization
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 First seen · 310 lines · 71 tokens per session scan A c2bb1bf605ee
sql-pro is an agent published in the GitHub repository 2SSK/dot-files (258 stars, last pushed 9d ago), licensed MIT. It adds 71 tokens to every session and 1,562 once invoked, about $0.0003 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-10-02.
sql-pro compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sql-pro2SSK/dot-files | Agent | 258 | 9d ago | MIT | A | 71 | Claude Code |
| MS-SQL Database Administratorgithub/awesome-copilot | Agent | 42k | today | MIT | A | 18 | Claude Code |
| lensjeremylongshore/tons-of-skills-marketplace | Agent | 3.0k | today | MIT | A | 53 | Claude Code |
| django-migrations-specialistAratKruglik/claude-sdlc | Agent | 57 | 12d ago | MIT | A | 85 | Claude Code |
| database-architectaayushostwal/nexus | Agent | 19 | 10d ago | MIT | A | 96 | Claude Code |
| schema-checkerluanpdd/kit-mcp | Agent | 5 | today | MIT | A | 57 | Claude Code |
| db-migration-engineernonlinear-xyz/factory-kit | Agent | 10 | 6d ago | MIT | A | 155 | Claude Code |