01
It starts by itself
weekly insights review. Runs in Claude Code routine.
- ↻ weekly insights review
0 8 * * 1
Weekly risky queries and tag gaps.
Install the PlanetScale Query Insights and Tags skill and make it a habit: follow https://gethabit.dev/skills/planetscale/planetscale-query-insights-and-tags.md
2K installs135 starsMIT licenceSource on GitHub ↗

PlanetScale Query Insights and Tags
by planetscale · 2K installs
The skill
Planetscale query insights and tags is a skill for database owners that reads PlanetScale Insights to find risky queries and recommends SQLCommenter tags, Traffic Control slices and schema or code fixes, applying nothing.
Only when you ask.
The habit
Weekly risky queries and tag gaps.
↻ Runs by itselfweekly insights review
When does it start? How does it check its work? What does it remember?
Stops after one branch and the top 20 query patterns per run.
Call /insights sorted by totalTime, rowsRead, count and errorCount for the window.
Read /insights/anomalies and /insights/errors for moving patterns.
Use /insights/tags and /insights/tags/summaries to see attribution and cardinality.
Report the effective raw query collection state as a capability.
Mark each pattern as tag, Traffic Control, schema or code candidate.
List proposed changes needing approval and end with the no-changes line.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the PlanetScale Query Insights and Tags skill helps.
No. It proposes tags; code changes need approval.
Unbounded ones such as user_id, request_id, email or raw URLs.
Copy the prompt at the top into your agent. It installs the skill from planetscale/skills and sets up the habit. Or run npx skills add planetscale/skills --skill planetscale-query-insights-and-tags.
Yes. It is published under MIT. Habit is free too.
Install the PlanetScale Query Insights and Tags skill and make it a habit: follow https://gethabit.dev/skills/planetscale/planetscale-query-insights-and-tags.md
All planetscale skills →More ops skills →
Works in
Made by planetscale, published under MIT. Habit links to the original and never changes it. Is this your skill?