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 agentmods add skills/deepsqlai/deepsql/index-advisornpx skills add DeepSQLAI/deepsql --skill index-advisorgit clone --depth 1 https://github.com/DeepSQLAI/deepsqlWhat 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 | $0.00032 | $0.00609 |
| Opus 5 | $0.00016 | $0.00304 |
| Sonnet 5 | $0.00006 | $0.00122 |
| Haiku 4.5 | $0.00003 | $0.00061 |
Grade A, and why
index-advisor 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 yesterday.
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 — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Index Advisor
Use when the user asks what indexes to add or drop, or "how do I speed up this workload with indexes?" Indexes are a whole-workload decision — never recommend one off a single query in isolation; that's what this advisor is for.
Procedure
-
Resolve the connection (
list_connections→ UUID). -
Get the workload-weighted recommendations.
get_index_recommendations(connectionId)returns the pre-computed top-N (default 5) ranked by net benefit (Σ calls × mean_exec_time− write cost). Each carries the contributing query fingerprints, the role each column played, and (on Postgres) a HypoPG cost-delta. This covers bothCREATE_INDEXandDROP_INDEX(unused / redundant-prefix) candidates. -
Add catalog context when relevant:
get_index_health(connectionId)for the overall picture,get_unused_indexes/get_duplicate_indexesfor dead weight,get_missing_indexesfor catalog-level suggestions,get_table_index_usage(table)for one hot table. -
Explain each recommendation in terms the user can act on: which queries it helps, expected benefit, and write-cost trade-off. Don't just dump the list.
-
Estimate impact before applying.
apply_index_recommendation(recommendationId, mode="DRY_RUN")(default) uses HypoPG on Postgres to install a virtual index and EXPLAIN the contributing queries — zero writes. Report the planner cost delta. -
Apply only on explicit request, admin only.
mode="APPLY"(realCREATE/DROP INDEX CONCURRENTLY) orAPPLY_AND_MEASURE(also runsEXPLAIN ANALYZEbefore/after) requireconfirm: true. The DDL is server-generated from the recommendation row — you never supply index SQL. Surface what will run and get a human OK first.
Guardrails
- Recommend against an existing covering index/constraint instead of a redundant single-column one —
get_index_health/get_table_index_usagewill show it. - A
DROP_INDEXrecommendation for an "unused" index still deserves a sanity check: confirm with the user it isn't a rarely-used-but-critical path before applying. apply_index_recommendationis the only write-capable MCP tool. Treat everyAPPLYlike a production change.
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.
- yesterday First seen · 35 lines · 32 tokens per session scan A 401a2b9d1090
index-advisor is a skill published in the GitHub repository DeepSQLAI/deepsql (23 stars, last pushed 2d ago), licensed Apache-2.0. It adds 32 tokens to every session and 609 once invoked, about $0.0002 per session on Opus 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-30.
Other skills, from other repositories
configure-nightwatch
Configures Laravel Nightwatch data collection, sampling rates, filtering rules, and redaction policies. Use when setting up Nightwatch, managing data volume, protecting sensitive data (PII), or optimizing event collection for production workloads.
laravel-actions
Build, refactor, and troubleshoot Laravel Actions using lorisleiva/laravel-actions. Use when implementing reusable action classes (object/controller/job/listener/command), converting service classes/controllers/jobs into actions, orchestrating workflows via faked actions, or debugging action entrypoints and wiring.
debugging-output-and-previewing-html-using-ray
Use when user says "send to Ray," "show in Ray," "debug in Ray," "log to Ray," "display in Ray," or wants to visualize data, debug output, or show diagrams in the Ray desktop application.
fortify-development
ACTIVATE when the user works on authentication in Laravel. This includes login, registration, password reset, email verification, two-factor authentication (2FA/TOTP/QR codes/recovery codes), passkeys, profile updates, password confirmation, or any auth-related routes and controllers. Activate when the user mentions…
pest-testing
Use this skill for Pest PHP testing in Laravel projects only. Trigger whenever any test is being written, edited, fixed, or refactored — including fixing tests that broke after a code change, adding assertions, converting PHPUnit to Pest, adding datasets, and TDD workflows. Always activate when the user asks how to…
configuring-horizon
Use this skill whenever the user mentions Horizon by name in a Laravel context. Covers the full Horizon lifecycle: installing Horizon (horizon:install, Sail setup), configuring config/horizon.php (supervisor blocks, queue assignments, balancing strategies, minProcesses/maxProcesses), fixing the dashboard…