CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

optimize-query

Use this procedure when a user reports slow queries or asks to optimize a repository query. It calls for examining query plans before index changes, matching indexes to real predicates, coordinating schema changes with migrations, and recording material before-and-after benchmarks.

Quality

79%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./.cursor/skills/optimize-query/SKILL.md
SKILL.md
Quality
Evals
Security

Role: Skill — query optimization procedure

Skill: optimize-query

Trigger: user reports slow queries or asks to optimize a repository query.

Method

  1. Get EXPLAIN ANALYZE (or equivalent) before changing indexes.
  2. Prefer indexes matched to real predicates; avoid speculative indexes.
  3. Pair schema changes with generate-flyway.
  4. Record before/after in /docs/benchmarks when material.
  5. Output: diagnosis + proposed migration/query change.
Repository

chandrakanthbalaraman/spring-boot-microservices

Path

.cursor/skills/optimize-query/SKILL.md

Last updated
First committed
Purpose
DevelopmentDebugging and error handlingDatabase management
Form
Workflow

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.