planetscale-pscale-cli-automation
Enables agents to run PlanetScale CLI commands non-interactively with proper formatting and authentication.
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 780 tokenswhen the skill loads
- GitHub stars
- 5on planetscale/claude-plugin
- Scripts
- None found
What it does
“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.”
Generated summary from the skill's own text
Enables agents to run PlanetScale CLI commands non-interactively with proper formatting and authentication. The skill covers CLI conventions like using --format json, correct flag placement, and auth verification needed for headless automation.
When to use it
- Agent needs to invoke pscale commands programmatically
- Automating PlanetScale database operations from scripts
- Verifying pscale authentication before running other tasks
- Running SQL queries or listing resources headlessly
When not to
- Complex database workflows requiring safety review or schema recommendations
- User requires interactive shell access with TTY
- Operational decisions beyond basic CLI invocation
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add planetscale/claude-plugin --skill planetscale-pscale-cli-automationInstalls 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-pscale-cli-automation@95c80f9f391be9b1b6172bf82d4191e1ec11b637Installs the commit we checked (95c80f9).
Copy by hand
Download the folder at 95c80f9 and put it in .claude/skills/planetscale-pscale-cli-automation for Claude Code and in .agents/skills/planetscale-pscale-cli-automation 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-pscale-cli-automation" by PlanetScale. Source, pinned to commit 95c80f9f391be9b1b6172bf82d4191e1ec11b637: https://github.com/planetscale/claude-plugin/tree/95c80f9f391be9b1b6172bf82d4191e1ec11b637/planetscale-skills/14-pscale-cli-automation 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-pscale-cli-automation/ for Claude Code and .agents/skills/planetscale-pscale-cli-automation/ 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-pscale-cli-automation
SKILL.md at the pin
--- name: planetscale-pscale-cli-automation description: >- 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. --- # 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) ```bash pscale agent-guide --format json pscale auth check --format json ``` If `auth check` returns `"status": "action_required"`, follow `issues` and `next_steps` in the JSON. For login, the human may need to approve in the browser; use `pscale auth login --format json`. ## Conventions - Always pass **`--format json`** for automation. - Put **`--org <org>`** on resource subcommands (`database`, `branch`, `sql`, `api`, …) — not on root `pscale`. - Put **positional arguments before flags** (`pscale sql mydb main --org bb …`). - Use **`pscale sql`**, not `pscale shell` (shell requires a TTY). - Default SQL role is **reader**; pass `--role admin` (or writer/readwriter) for writes. Match `pscale shell` semantics for `--role` and `--replica`. - **`--force`** is per subcommand only (e.g. `database delete … --force`, `pscale sql … --force`). There is no global `--force` or `PSCALE_FORCE`. - **`--format json` alone never skips confirmations** — add `--force` on the destructive subcommand after explicit user approval. ## Typical workflow ```bash pscale auth check --format json pscale org list --format json pscale database list --org <org> --format json pscale branch list <database> --org <org> --format json pscale sql <database> <branch> --org <org> --format json --query "SELECT 1" ``` MySQL uses `@primary` by default (same as `pscale shell`); pass `--keyspace` only for multi-keyspace databases. ## MCP vs CLI - **MCP clients** — use the hosted PlanetScale MCP server (see `pscale agent-guide --format json` for the current URL). - **Shell scripts and coding agents** — use `pscale` with `--format json` as above. ## When this skill is not enough Install the full PlanetScale skills pack (if not already): ```sh git clone https://github.com/planetscale/skills.git && cd skills && script/setup # or: npx skills add planetscale/skills -g -y ``` Then run sub-skills or `../00-safe-orchestrator/SKILL.md` for database operations beyond basic CLI invocation. ## Current conventions source of truth Prefer live output over memorized flag syntax: ```bash pscale agent-guide --format json ``` The embedded `guide` field contains the full CLI agent guide shipped with your `pscale` binary.
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.5 KB · 704202e8406d
1 file, 3.5 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-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
algolia-automation
This skill automates Algolia search and indexing operations through the Rube MCP interface.
by ComposioOfficial publisher
Claude Code, Codex, Cursor +3 · about 690 tokens · pinned 6 days ago
building-a-dashboard
This skill constructs or modifies PostHog dashboards by selecting and arranging insight tiles.
by PostHogOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.1K tokens · pinned 6 days ago
signals-scout-product-analytics
This skill monitors product analytics behavioral flows (funnels, retention, lifecycle, stickiness, paths) for regressions in conversion or retention rates…
by PostHogOfficial publisher
Claude Code, Codex, Cursor +3 · about 6.2K tokens · pinned 6 days ago
signals-scout-revenue-analytics
This skill monitors PostHog's revenue analytics for upstream failures and configuration issues.
by PostHogOfficial publisher
Claude Code, Codex, Cursor +3 · about 5.6K tokens · pinned 6 days ago