planetscale-traffic-control-recommendations
This skill recommends PlanetScale Postgres Traffic Control budgets and rules to protect critical database traffic from runaway queries and resource-consuming…
Identity proven by GitHub's verified organisation badge (planetscale)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- MIT (permissive)
- Pin
- 95c80f9pinned Oct 9, 2026
- Context cost
- about 1,100 tokenswhen the skill loads
- GitHub stars
- 5on planetscale/claude-plugin
- Scripts
- None found
What it does
“Build a safe recommendation plan for PlanetScale Postgres Database Traffic Control budgets and rules without applying them.”
Generated summary from the skill's own text
This skill recommends PlanetScale Postgres Traffic Control budgets and rules to protect critical database traffic from runaway queries and resource-consuming workloads like exports, reports, and background jobs. It inspects current configurations and query patterns, then proposes tag-based or fingerprint-based rules in warn mode before enforcement, without applying any changes.
When to use it
- Protecting application traffic from agent-generated or batch job queries
- Isolating expensive operations like exports and reports before they impact users
- Planning traffic control strategy for third-party integrations or BI tools
- Investigating recent database incidents or anomalies affecting critical paths
When not to
- Optimizing slow queries or fixing schema issues directly
- Enforcing traffic limits immediately without observation period
- Managing applications without query tagging infrastructure in place
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add planetscale/claude-plugin --skill planetscale-traffic-control-recommendationsInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install planetscale/claude-plugin planetscale-traffic-control-recommendations@95c80f9f391be9b1b6172bf82d4191e1ec11b637Installs the commit we checked (95c80f9).
Copy by hand
Download the folder at 95c80f9 and put it in .claude/skills/planetscale-traffic-control-recommendations for Claude Code and in .agents/skills/planetscale-traffic-control-recommendations for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install planetscale@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "planetscale-traffic-control-recommendations" by PlanetScale. Source, pinned to commit 95c80f9f391be9b1b6172bf82d4191e1ec11b637: https://github.com/planetscale/claude-plugin/tree/95c80f9f391be9b1b6172bf82d4191e1ec11b637/planetscale-skills/05-traffic-control-recommendations 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/planetscale-traffic-control-recommendations/ for Claude Code and .agents/skills/planetscale-traffic-control-recommendations/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/planetscale/planetscale-traffic-control-recommendations
SKILL.md at the pin
--- name: planetscale-traffic-control-recommendations description: Build a safe recommendation plan for PlanetScale Postgres Database Traffic Control budgets and rules without applying them. --- # Database Traffic Control recommendations ## Purpose 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. ## Preconditions Run this skill only for PlanetScale Postgres. Before recommending rules, inspect: - Current budgets and rules. - Insights query patterns. - Current query tags. - Application routes and jobs. - Known critical paths. - Known expensive non-critical paths. - Active incidents or recent anomalies. If query tags are missing, recommend tagging first unless a fingerprint-specific rule is clearly needed for an immediate known offender. ## Candidate traffic slices Look for: - Exports. - Reports. - Search endpoints. - Admin dashboards. - Backfills. - Workers and queues. - Webhooks from third-party systems. - BI tools. - Agent-generated read queries. - High-frequency polling. - Known expensive query fingerprints. - Customer-triggered endpoints with high variance. ## Budget modes Recommend in this order: 1. `warn` mode first for normal rollout. 2. Observe warnings and false positives. 3. Tune tags, fingerprints, and thresholds. 4. Move to `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. ## Rule strategy Prefer tag-based rules when tags are stable and bounded: - `source=agent` - `source=bi` - `feature=export` - `feature=report` - `route=/admin/reports` - `job=DailyBackfill` - `service=analytics-worker` Use fingerprint rules when: - A specific known query pattern is dangerous. - Tagging is missing or unreliable. - The query source is hard to attribute. 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. ## Suggested default budgets Use these as recommendation patterns, not as values to apply blindly. ### Agent budget 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. ### Export/reporting budget 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. ### Background job budget 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. ### Third-party integration budget Target: `source=integration`, partner-specific bounded tags, or route templates for inbound integration calls. Intent: isolate unpredictable partner behavior. Mode: `warn` first. ### Known fingerprint budget Target: specific expensive query fingerprint. Intent: contain a known pathological query while code or schema fixes are developed. Mode: `warn` first unless emergency. ## “Each tag value” strategy When PlanetScale supports applying a budget separately for each unique value of a selected tag, recommend it for bounded tags such as: - `application` - `service` - `route` when normalized - `job` - `feature` - `source` Do not recommend it for unbounded tags such as user IDs, request IDs, raw tenant IDs, emails, UUIDs, or raw URLs. ## Limits and caveats to include Every recommendation must explain: - Traffic Control limits resource use; it does not replace query tuning. - It is not a web application firewall. - It does not replace application-level rate limits. - Limits are guardrails, not exact guarantees for every failure mode. - Bad tags create bad rules. - Enforce mode can reject queries and affect application behavior. ## Output format For each proposed budget: - Budget name. - Target branch. - Mode: off, warn, or enforce. - Matched traffic slice. - Rule type: tag, fingerprint, keyspace, query kind. - Proposed tags or fingerprint. - Limit rationale. - Queries seen in Insights that justify it. - Safety risk. - Test/observe plan. - Rollback plan. - Approval requirement. End with: “No Traffic Control budgets or rules have been created, updated, deleted, or enforced.”
From planetscale/claude-plugin at 95c80f9, shown as plain text under its license: MIT (permissive). The license text is in planetscale-skills/LICENSE.
View SKILL.md on GitHub at 95c80f9Files
- SKILL.md4.7 KB · 45dcc41f4d50
1 file, 4.7 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 95c80f9More from PlanetScale
neki
This skill guides agents on Neki, PlanetScale's distributed sharded Postgres system.
Claude Code, Codex, Cursor +4 · about 2K tokens · pinned 7 days ago
postgres
This skill provides PostgreSQL best practices, optimization guidance, and operational knowledge across schema design, indexing, query patterns, and…
Claude Code, Codex, Cursor +4 · about 1.7K tokens · pinned 7 days ago
planetscale-safe-orchestrator
This master skill orchestrates a comprehensive PlanetScale best-practices assessment across inventory, engine configuration, query performance, traffic…
Claude Code, Codex, Cursor +4 · about 2.8K tokens · pinned 7 days ago
mysql
This skill guides the agent through MySQL and InnoDB schema design, indexing strategies, query optimization, transaction handling, and operational tasks.
Claude Code, Codex, Cursor +4 · about 1.3K tokens · pinned 7 days ago
neki
This skill provides guidance on Neki, PlanetScale's sharded Postgres product designed for horizontal scaling.
Claude Code, Codex, Cursor +4 · about 420 tokens · pinned 7 days ago
planetscale-autonomous-execution-mode
This skill enables an agent to execute PlanetScale database changes end-to-end without per-step approval when the operator provides explicit risk…
Claude Code, Codex, Cursor +4 · about 2.5K tokens · pinned 7 days ago
Related in Data and databases
planetscale-best-practices-matrix
This skill provides a structured matrix for mapping PlanetScale database assessment findings to safety, observability, and automation features across Vitess…
by PlanetScaleOfficial publisher
Claude Code, Codex, Cursor +4 · about 1.4K tokens · pinned 7 days ago
planetscale-postgres-safety-review
This skill reviews PlanetScale Postgres configurations for safety best practices across branching, roles, query insights, traffic control, backups…
by PlanetScaleOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.4K tokens · pinned 7 days ago
planetscale-readonly-inventory
This skill collects read-only evidence about PlanetScale database organizations, branches, schemas, Query Insights, traffic rules, webhooks, and backups via…
by PlanetScaleOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.1K tokens · pinned 7 days ago
planetscale-safe-orchestrator
Orchestrator skill that runs a complete PlanetScale database assessment across inventory, engine safety, query insights, traffic controls, webhooks, schema…
by PlanetScaleOfficial publisher
Claude Code · about 2.8K tokens · pinned 7 days ago
planetscale-schema-recommendations-agent-loop
This skill helps agents analyze PlanetScale schema recommendations and convert them into safe implementation plans without directly applying production changes.
by PlanetScaleOfficial publisher
Claude Code, Codex, Cursor +4 · about 920 tokens · pinned 7 days ago
postgres
This skill equips agents to diagnose and optimize PostgreSQL databases with reference documentation on schema design, indexing, query patterns, and…
by PlanetScaleOfficial publisher
Claude Code, Codex, Cursor +4 · about 1.7K tokens · pinned 7 days ago