# planetscale-schema-recommendations-agent-loop

> Claude/Codex skill by [@planetscale](https://omgskills.com/library/planetscale/index.md) · 134 stars · Updated 2026-10-16

Safely triage PlanetScale schema recommendations and turn them into reviewed branches, migrations, issues, or pull requests without applying production changes.

## Install

```sh
git clone https://github.com/planetscale/skills /tmp/skills && ln -s /tmp/skills/planetscale-schema-recommendations-agent-loop ~/.claude/skills/planetscale-schema-recommendations-agent-loop
```

## From README

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?

## Links

- HTML page: https://omgskills.com/library/planetscale/skills/planetscale-schema-recommendations-agent-loop/
- GitHub: https://github.com/planetscale/skills
- Author: [@planetscale](https://omgskills.com/library/planetscale/index.md)

## More from this repo

- [planetscale-autonomous-execution-mode](https://omgskills.com/library/planetscale/skills/planetscale-autonomous-execution-mode/index.md) — Execute approved PlanetScale changes end-to-end without per-step approval when the operator has explicitly acknowledged...
   - [@planetscale](https://omgskills.com/library/planetscale/index.md) · 134 stars
- [planetscale-best-practices-matrix](https://omgskills.com/library/planetscale/skills/planetscale-best-practices-matrix/index.md) — A concise feature matrix for deciding which PlanetScale safety, observability, and automation recommendations apply by...
   - [@planetscale](https://omgskills.com/library/planetscale/index.md) · 134 stars
- [planetscale-change-gates-and-approval-contract](https://omgskills.com/library/planetscale/skills/planetscale-change-gates-and-approval-contract/index.md) — Enforce explicit approval gates for any PlanetScale, database, repository, credential, network, or automation mutation.
   - [@planetscale](https://omgskills.com/library/planetscale/index.md) · 134 stars
