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.
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 920 tokenswhen the skill loads
- GitHub stars
- 5on planetscale/claude-plugin
- Scripts
- None found
What it does
“Safely triage PlanetScale schema recommendations and turn them into reviewed branches, migrations, issues, or pull requests without applying production changes.”
Generated summary from the skill's own text
This skill helps agents analyze PlanetScale schema recommendations and convert them into safe implementation plans without directly applying production changes. It provides triage guidance, engine-specific deployment paths for Vitess and Postgres, and safety checks to ensure recommendations are properly reviewed before implementation.
When to use it
- Reviewing PlanetScale schema recommendations before deployment
- Triaging index additions, removals, or charset upgrades for safety
- Converting recommendations into migration PRs or tracked issues
- Correlating schema changes with application code and ORM definitions
When not to
- When you need to apply schema changes immediately to production
- If recommendations should skip code review or migration frameworks
- For databases outside PlanetScale, Vitess, or Postgres ecosystems
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add planetscale/claude-plugin --skill planetscale-schema-recommendations-agent-loopInstalls 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-schema-recommendations-agent-loop@95c80f9f391be9b1b6172bf82d4191e1ec11b637Installs the commit we checked (95c80f9).
Copy by hand
Download the folder at 95c80f9 and put it in .claude/skills/planetscale-schema-recommendations-agent-loop for Claude Code and in .agents/skills/planetscale-schema-recommendations-agent-loop 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-schema-recommendations-agent-loop" by PlanetScale. Source, pinned to commit 95c80f9f391be9b1b6172bf82d4191e1ec11b637: https://github.com/planetscale/claude-plugin/tree/95c80f9f391be9b1b6172bf82d4191e1ec11b637/planetscale-skills/07-schema-recommendations-agent-loop 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-schema-recommendations-agent-loop/ for Claude Code and .agents/skills/planetscale-schema-recommendations-agent-loop/ 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-schema-recommendations-agent-loop
SKILL.md at the pin
--- name: planetscale-schema-recommendations-agent-loop description: Safely triage PlanetScale schema recommendations and turn them into reviewed branches, migrations, issues, or pull requests without applying production changes. --- # Schema recommendations agent loop ## Purpose Use PlanetScale schema recommendations as high-quality input to agents. Convert recommendations into safe implementation plans, issues, branches, migrations, or pull requests. Do not apply recommendations directly. ## Inputs Collect: - Open schema recommendations. - Recommendation type. - Affected table, keyspace, schema, and query pattern. - Suggested DDL. - Supporting Insights evidence. - Application repository and migration system. - Engine: Vitess or Postgres. - Target branch. ## Recommendation types to recognize - Add index for inefficient query. - Remove redundant index. - Prevent primary key ID exhaustion. - Drop unused table. - Upgrade legacy charset or collation. - Other DDL recommendation. ## Triage questions For each recommendation, answer: - Is this still open and relevant? - Which query patterns triggered it? - Which application code paths generate those queries? - Is the recommendation safely expressible in the application’s migration framework? - Does the ORM/schema source of truth need to change? - Can it be tested on a non-production branch? - What is the expected impact on reads, writes, storage, and deploy time? - Is there a rollback or revert path? - Is there a competing recommendation or migration? ## Engine-specific implementation path ### Vitess Recommended path: 1. Create or use a development branch. 2. Apply the schema change to that branch only after approval. 3. Open a deploy request only after approval. 4. Use deploy request review to inspect schema, shard impact, data-loss warnings, lint errors, and conflicts. 5. Use normal safe migration path unless instant deployment is explicitly justified. 6. Deploy only after approval. 7. Monitor Insights and anomaly state after deployment. Default output before approval: issue or PR with migration proposal, not a live deploy request. ### Postgres Recommended path: 1. Convert DDL into the application’s migration framework where possible. 2. Test against a non-production branch. 3. Run application tests and relevant query checks. 4. Open PR. 5. Apply production migration only after approval. 6. Use backups/PITR runbook as recovery plan, not as a substitute for migration review. Default output before approval: migration PR or issue, not production DDL. ## Codebase correlation When a repository is available: - Search for the table and column names. - Search for ORM model definitions. - Search for migrations. - Search for query fingerprints, route tags, job names, and controller/action names from Insights. - Identify whether the recommendation should be implemented in database DDL, ORM schema, raw migration, or application query code. ## Safety checks before proposing implementation Block direct application when: - The recommendation is stale or already addressed. - The affected table is small enough that the benefit is unclear. - The index would be redundant with an existing index. - The index would hurt write-heavy workloads without enough read benefit. - The table appears unused but repository references are ambiguous. - Dropping a table or index lacks owner confirmation. - The migration framework has a different schema source of truth. - The recommendation targets production and no branch/test plan exists. ## Output For each recommendation, produce: - Recommendation ID/number. - Type. - Severity and expected benefit. - Evidence from Insights. - Affected schema. - Suggested DDL. - Application code owner or likely location. - Safe implementation path. - Validation plan. - Rollback/revert plan. - Approval requirement. End with: “No schema recommendations have been applied.”
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.md3.9 KB · d94bfcc4e511
1 file, 3.9 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 6 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 6 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 6 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 6 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 6 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 6 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 6 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 6 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 6 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 6 days ago
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…
by PlanetScaleOfficial publisher
Claude Code, Codex, Cursor +4 · about 1.1K tokens · pinned 6 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 6 days ago