agentsclimarketplace

Sql optimize

Skill NSBen/skillfoundry/src/skillfoundry/data/starter_skills/sql-optimize

Use when a SQL query or migration is slow and you need to find the bottleneck and propose indexes or rewrites that make it fast.From its SKILL.md

Install
npx -y skills add NSBen/skillfoundry --skill sql-optimize

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

1.1 KB, 171 tokens by cl100k_base, as published. Nobody here has run it

SQL Optimize

When to use

Invoke this skill for slow queries, missing indexes, full table scans, or N+1 patterns in reports and APIs.

Steps

  1. Get the query plan (EXPLAIN ANALYZE) and locate the most expensive node.
  2. Check whether filters and joins use indexed columns.
  3. Propose covering indexes or a query rewrite (join order, CTEs, pagination).
  4. Flag N+1 loops that should become a single batched query.
  5. Give the before/after plan and the expected impact, with a migration.

Examples

  • "Why is this JOIN so slow?"
  • "Suggest indexes for this report query"

References

Always confirm with EXPLAIN on real data; an index that is never selective can hurt writes more than it helps reads.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.