/planetscale:planetscale-traffic-control-recommendationsfrom planetscale
Recommends PlanetScale Postgres Traffic Control budgets and rules to protect critical traffic from runaway queries, spikes, and batch jobs without applying changes.
Ships in planetscale. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For PlanetScale Postgres, recommend Traffic Control budgets and rules that protect critical traffic from runaway queries, traffic spikes, batch jobs, agents, and third-party integrations. Do not create or change budgets without approval.
Run this skill only for PlanetScale Postgres.
Before recommending rules, inspect:
If query tags are missing, recommend tagging first unless a fingerprint-specific rule is clearly needed for an immediate known offender.
Look for:
Recommend in this order:
warn mode first for normal rollout.enforce only with explicit approval and an emergency rollback path.Do not recommend starting directly in enforce unless there is an active incident and the operator explicitly asks for emergency mitigation.
Prefer tag-based rules when tags are stable and bounded:
source=agentsource=bifeature=exportfeature=reportroute=/admin/reportsjob=DailyBackfillservice=analytics-workerUse fingerprint rules when:
Use a separate budget for each materially different traffic class.
Do not combine unrelated traffic in one budget because it hides who is consuming the budget.
Use these as recommendation patterns, not as values to apply blindly.
Target: queries tagged source=agent or source=mcp.
Intent: prevent agents from starving application traffic.
Mode: start in warn.
Recommendation: agents should prefer replicas and read-only scopes. Writes require human approval.
Target: feature=export, feature=report, or specific report route/job.
Intent: keep customer-triggered reporting from consuming all database resources.
Mode: start in warn; consider enforce after observation.
Target: worker service, queue, or job tags.
Intent: prevent backfills and retries from starving interactive traffic.
Mode: warn first; enforce only after confirming queue backpressure behavior.
Target: source=integration, partner-specific bounded tags, or route templates for inbound integration calls.
Intent: isolate unpredictable partner behavior.
Mode: warn first.
Target: specific expensive query fingerprint.
Intent: contain a known pathological query while code or schema fixes are developed.
Mode: warn first unless emergency.
When PlanetScale supports applying a budget separately for each unique value of a selected tag, recommend it for bounded tags such as:
applicationserviceroute when normalizedjobfeaturesourceDo not recommend it for unbounded tags such as user IDs, request IDs, raw tenant IDs, emails, UUIDs, or raw URLs.
Every recommendation must explain:
For each proposed budget:
End with:
“No Traffic Control budgets or rules have been created, updated, deleted, or enforced.”
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
19 skills in this plugin
/planetscale-safe-orchestratorMaster skill that runs the full PlanetScale safe best-practices assessment — inventory, engine review, Insights, Traffic Control, webhooks, schema recommendations, codebase instrumentation, and agent operating model — then produces a unified recommendations report. Never applies changes without explicit approval. Use when the user asks to run the full assessment, all skills, or PlanetScale best-practices review./planetscale-readonly-inventoryCollect read-only evidence about PlanetScale org, database, branches, webhooks, backups, roles, Insights, recommendations, and traffic configuration./planetscale-vitess-safety-reviewReview a PlanetScale Vitess database for safe migrations, deploy requests, schema recommendations, Insights, webhooks, and operational safety./planetscale-postgres-safety-reviewReview PlanetScale Postgres for Traffic Control, query tags, roles, pg_strict, backups/PITR, private connectivity, webhooks, branches, and safe agent operation./planetscale-query-insights-and-tagsUse PlanetScale Insights and SQLCommenter-style query tags to attribute database load, identify risky queries, and prepare safe Traffic Control or schema recommendations./planetscale-webhook-automation-recommendationsRecommend webhook subscriptions and safe automation patterns for PlanetScale alerts, anomalies, schema recommendations, deploy requests, and agent workflows.claude plugin install planetscale@claude-plugins-official