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 sgaunet/claude-plugins --skill analyze-db-performancegit clone --depth 1 https://github.com/sgaunet/claude-pluginsWrote 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/sgaunet/claude-plugins/analyze-db-performance)<a href="https://agentmods.dev/skills/sgaunet/claude-plugins/analyze-db-performance"><img src="https://agentmods.dev/badge/skills/sgaunet/claude-plugins/analyze-db-performance/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/sgaunet/claude-plugins/analyze-db-performance"><img src="https://agentmods.dev/badge/skills/sgaunet/claude-plugins/analyze-db-performance.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.00014 | $0.01672 |
| Opus 5.5 | $0.00006 | $0.00669 |
| Sonnet 5.5 | $0.00003 | $0.00334 |
| Haiku 4.5 | $0.00001 | $0.00167 |
Grade A, and why
analyze-db-performance 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.
How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Analyze Database Performance
Analyze PostgreSQL database performance using pg_stat_statements, slow query logs, and system metrics.
Process
-
Validate Input: Check if argument is:
- Database connection string (postgres://...)
- Path to slow query log file
- None (will look for local log files)
-
Gather Performance Data: Launch 3 parallel Haiku agents to collect database metrics concurrently:
Agent #1: Slow Query Analyzer
- If connection string: Execute query against pg_stat_statements
SELECT query, calls, total_exec_time, mean_exec_time, max_exec_time FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 20; - If log file: Parse slow query log and extract patterns
- Return: list of top 20 slowest queries with execution stats
Agent #2: Table Size Analyzer
- If connection string: Execute table size query
SELECT schemaname, tablename, pg_size_pretty(pg_total_relation_size(schemaname||'.'||tablename)) FROM pg_tables ORDER BY pg_total_relation_size(schemaname||'.'||tablename) DESC; - Return: list of tables sorted by size
Agent #3: Index Usage Analyzer
- If connection string: Execute index usage query
SELECT schemaname, tablename, indexname, idx_scan FROM pg_stat_user_indexes WHERE idx_scan = 0 ORDER BY pg_relation_size(indexrelid) DESC; - Return: list of unused indexes (candidates for removal)
- If connection string: Execute query against pg_stat_statements
-
Launch 2 parallel Sonnet agents to analyze performance data:
Agent #4: PostgreSQL Specialist (
postgresql-specialistagent)- Analyze slow queries from Agent #1
- Review table sizes from Agent #2
- Evaluate index usage from Agent #3
- Generate optimization recommendations specific to PostgreSQL
- Return: PostgreSQL-specific findings (indexes, query rewrites, config tuning)
Agent #5: General Database Specialist (
database-specialistagent)- Perform cross-platform analysis of performance patterns
- Identify anti-patterns (N+1 queries, missing indexes, bloat)
- Suggest architectural improvements
- Return: general database optimization recommendations
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 · 191 lines · 14 tokens per session scan A 2f6daf9d6bc3
analyze-db-performance is a skill published in the GitHub repository sgaunet/claude-plugins (19 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 1,672 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-25.
analyze-db-performance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| analyze-db-performancesgaunet/claude-plugins | Skill | 19 | 1mo ago | MIT | A | 14 | Claude Code |
| sql-queriesphuryn/pm-skills | Skill | 28k | 21d ago | MIT | A | 55 | Claude Code |
| cloudflare-hyperdrivesecondsky/claude-skills | Skill | 257 | 8d ago | MIT | A | 45 | Claude Code |
| postgres-operator-best-practicesair-gapped/skills | Skill | 8 | 5d ago | MIT | A | 166 | Claude Code |
| migration-checkatretyak1985/swarmery | Skill | 9 | 2d ago | Apache-2.0 | A | 45 | Claude Code |
| postgres-operator-cloudnative-pg-migrationair-gapped/skills | Skill | 8 | 5d ago | MIT | A | 224 | Claude Code |
| explain-interpretersigistry/marketplace | Skill | 3 | 3d ago | MIT | A | 95 | Claude Code |