# planetscale-pscale-cli-automation

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

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/claude-plugin /tmp/claude-plugin && ln -s /tmp/claude-plugin/planetscale-skills/14-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 ../00-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 ../09-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/skills/planetscale/claude-plugin/planetscale-skills/14-pscale-cli-automation/
- GitHub: https://github.com/planetscale/claude-plugin
- Author: [@planetscale](https://omgskills.com/library/planetscale/index.md)

## More from this repo

- [planetscale-autonomous-execution-mode](https://omgskills.com/skills/planetscale/claude-plugin/planetscale-skills/13-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) · 5 stars
- [planetscale-change-gates-and-approval-contract](https://omgskills.com/skills/planetscale/claude-plugin/planetscale-skills/11-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) · 5 stars
- [planetscale-mcp-agent-operating-model](https://omgskills.com/skills/planetscale/claude-plugin/planetscale-skills/09-mcp-agent-operating-model/index.md) — Configure safe agent behavior around PlanetScale MCP, Insights, schema recommendations, and repository work without...
   - [@planetscale](https://omgskills.com/library/planetscale/index.md) · 5 stars
