# planetscale-pscale-cli-automation

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

Use the PlanetScale CLI (pscale) from automated agents with --format json, auth check, pscale sql, and per-command --force. Run before other PlanetScale skills when driving pscale directly. Use when the user asks to automate pscale, run CLI commands headless, or verify pscale auth from an agent.

## Install

```sh
git clone https://github.com/planetscale/skills /tmp/skills && ln -s /tmp/skills/planetscale-pscale-cli-automation ~/.claude/skills/planetscale-pscale-cli-automation
```

## From README

PlanetScale CLI automation Purpose Teach agents how to invoke pscale non-interactively. This skill covers CLI conventions only. Operational workflows (inventory, safety review, schema recommendations) use the other skills in this repo — start with ../planetscale-safe-orchestrator/SKILL.md for a full assessment. Two AGENTS.md files (do not confuse them) | Document | Where | Purpose | |----------|-------|---------| | CLI agent guide | Shipped with pscale (AGENTS.md in the CLI repo, or pscale agent-guide) | How to call pscale: auth, --format json, flag placement, pscale sql | | Project agent guide | Your application repository's AGENTS.md | Which org, database, branch, engine, prod branch, MCP scope, approval rules | Do not edit project AGENTS.md without operator approval (see ../planetscale-mcp-agent-operating-model/SKILL.md). Bootstrap (always start here) If auth check returns "status": "actionrequired", follow issues and nextsteps in the JSON.

## Links

- HTML page: https://omgskills.com/library/planetscale/skills/planetscale-pscale-cli-automation/
- 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
