cmux Backend Rules
manaflow-ai/cmux
Sets the backend TypeScript and Cloud VM rules for cmux: Effect-based services, thin route handlers, Postgres as source of truth, migrations and provider secrets.
Use PlanetScale Insights and SQLCommenter-style query tags to attribute database load, identify risky queries, and prepare safe Traffic Control or schema recommendations.
$ npx skills add planetscale/skills --skill planetscale-query-insights-and-tags -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install planetscale/skills planetscale-query-insights-and-tags --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/planetscale/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/planetscale-query-insights-and-tags .claude/skills/planetscale-query-insights-and-tags && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "planetscale-query-insights-and-tags" agent skill from https://github.com/planetscale/skills/tree/main/planetscale-query-insights-and-tags into .claude/skills/planetscale-query-insights-and-tags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "planetscale-query-insights-and-tags", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/planetscale/skills/tree/main/planetscale-query-insights-and-tagsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add planetscale/skills --skill planetscale-query-insights-and-tags -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install planetscale/skills planetscale-query-insights-and-tags --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/planetscale/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/planetscale-query-insights-and-tags .agents/skills/planetscale-query-insights-and-tags && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "planetscale-query-insights-and-tags" agent skill from https://github.com/planetscale/skills/tree/main/planetscale-query-insights-and-tags into .agents/skills/planetscale-query-insights-and-tags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "planetscale-query-insights-and-tags", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add planetscale/skills --skill planetscale-query-insights-and-tags -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install planetscale/skills planetscale-query-insights-and-tags --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/planetscale/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/planetscale-query-insights-and-tags .cursor/skills/planetscale-query-insights-and-tags && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "planetscale-query-insights-and-tags" agent skill from https://github.com/planetscale/skills/tree/main/planetscale-query-insights-and-tags into .cursor/skills/planetscale-query-insights-and-tags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "planetscale-query-insights-and-tags", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/planetscale/skills.git --path planetscale-query-insights-and-tags--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add planetscale/skills --skill planetscale-query-insights-and-tags -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install planetscale/skills planetscale-query-insights-and-tags --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/planetscale/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/planetscale-query-insights-and-tags .gemini/skills/planetscale-query-insights-and-tags && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "planetscale-query-insights-and-tags" agent skill from https://github.com/planetscale/skills/tree/main/planetscale-query-insights-and-tags into .gemini/skills/planetscale-query-insights-and-tags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "planetscale-query-insights-and-tags", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install planetscale/skills planetscale-query-insights-and-tagsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add planetscale/skills --skill planetscale-query-insights-and-tags -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/planetscale/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/planetscale-query-insights-and-tags .github/skills/planetscale-query-insights-and-tags && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "planetscale-query-insights-and-tags" agent skill from https://github.com/planetscale/skills/tree/main/planetscale-query-insights-and-tags into .github/skills/planetscale-query-insights-and-tags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "planetscale-query-insights-and-tags", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add planetscale/skills --skill planetscale-query-insights-and-tags -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install planetscale/skills planetscale-query-insights-and-tags --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/planetscale/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/planetscale-query-insights-and-tags .opencode/skills/planetscale-query-insights-and-tags && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "planetscale-query-insights-and-tags" agent skill from https://github.com/planetscale/skills/tree/main/planetscale-query-insights-and-tags into .opencode/skills/planetscale-query-insights-and-tags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "planetscale-query-insights-and-tags", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
planetscale-query-insights-and-tagsUse PlanetScale Insights and SQLCommenter-style query tags to attribute database load, identify risky queries, and prepare safe Traffic Control or schema recommendations.
Planetscale Query Insights And Tags is an agent skill from planetscale/skills, published by the product's own GitHub organization. Use PlanetScale Insights and SQLCommenter-style query tags to attribute database load, identify risky queries, and prepare safe Traffic Control or schema recommendations.
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It works with PlanetScale. The repository describes itself as: Skills that help you configure and get the most out of PlanetScale. The licence is MIT.
Read from SKILL.md and the folder at commit 999045c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Planetscale Query Insights And Tags loads about 2.5k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 1,209 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from planetscale/skills at commit 999045c, republished under its MIT licence (© planetscale). 1,209 words, ~2,478 tokens.
.claude/skills/planetscale-query-insights-and-tags/SKILL.md (or your agent's skills folder).Use PlanetScale Insights to understand query behavior, then recommend SQLCommenter-compatible tags that make future diagnosis and Traffic Control possible. Do not change database settings or repository code without approval.
For the selected database and branch, inspect:
sort=cpuTime or
sort=percentCpuTime on the Insights API).index_usages and
routing_index_usages; get the trend from the dashboard Vindexes tab or
by comparing API windows. Treat missing or declining relevant-vindex
usage as an indexing or routing investigation input, not as proof that a
new index is required.Query Insights is public API: read-only GET endpoints under
organizations/{org}/databases/{db}/branches/{branch}, authorized by a
service token or OAuth token with read_databases/read_database.
/insights — aggregated statistics per query pattern over the requested
window. Set the window with from/to (ISO 8601) or period (for
example 1h, 24h); search SQL patterns with q; sort server-side with
sort and dir — sort keys include count, errorCount, rowsRead,
totalTime, cpuTime, ioTime, percentTime, percentCpuTime,
p50Latency, p99Latency, maxLatency, egressBytes, and the
trafficControlWarnings/trafficControlThrottled family. Filter with
tablet_type (primary, replica, rdonly) and type (SELECT,
INSERT, UPDATE, DELETE); trim responses with fields; paginate
with page/per_page./insights/{fingerprint} — individual collected executions for a
pattern (timestamps, duration, rows, username, client address, error
message). Available regardless of raw query collection; raw collection
adds literal parameter values to these records.
/insights/{fingerprint}/summary returns the single-pattern aggregate;
/insights/queries/{id} fetches one execution./insights/errors — error fingerprints with counts and messages (q
searches the error message; sort by count, lastRun, totalTime, or
timePerQuery). /insights/errors/{fingerprint} lists the failing
executions behind one error fingerprint./insights/anomalies and /insights/anomalies/{id} — anomaly windows
with per-query correlation coefficients identifying which patterns moved
with the anomaly./insights/tags — tag keys with observed values (values_limit,
literal_values_only, and fingerprint/keyspace filters);
/insights/tags/{tag} for a single key. /insights/tags/summaries
groups the full statistics schema by one or more tag keys via the tags
parameter — use it to attribute load to routes, jobs, or features
without client-side aggregation./insights/{fingerprint}/traffic/budgets — the Traffic Control budgets
and rules that affect a fingerprint (Postgres).Aggregates cover the requested window. Duration fields use names like
sum_total_duration_millis, with explicit share-of-window percent fields
(sum_total_duration_percent); both totals and percentages are reliable
for the window requested.
The response schema is shared across engines, but some fields are
engine-specific: CPU/IO durations and block-cache statistics
(sum_cpu_duration_millis, blocks_read, block_cache_hit_ratio, …) are
populated for Postgres; shard queries, keyspaces, tablet_type, and
routing-index (vindex) usage are populated for Vitess.
For each expensive or anomalous query, determine:
/insights/tags shows which
keys and values are present, and /insights/tags/summaries?tags=...
attributes load per tag value. In the Vitess dashboard, filter the query
table with tag:key:value and drill into query details to see tags on
individual executions. Built-in query metadata and SQLCommenter tags are
both valid attribution sources.Check whether raw query / complete query collection is enabled. On
Postgres the effective state is the pginsights.raw_queries cluster
parameter (per branch, dashboard Extensions tab, default false); the
database API object's insights_raw_queries field is a separate surface.
When the two differ, report the cluster parameter as the effective state
and do not describe the difference as an inconsistency. On Vitess there
is no cluster parameter; the database API's insights_raw_queries field
is the effective state.
Report it as a capability state, not a risk posture. Raw query collection
records literal parameter values per execution, which pattern-level Insights
data does not provide. It is the mechanism for isolating which specific
invocation of a pattern is pathological. Execution-level records are
retrievable from /insights/{fingerprint} with or without raw collection;
raw collection adds the literal parameter values to those records.
When it is disabled, the finding is a capability gap: identify the query patterns in this assessment where pattern-level data is insufficient (unexplained latency variance within a fingerprint, tenant- or parameter-dependent behavior) and state that raw collection would resolve them. State the operational property once, as fact: literal values become visible to the observability pipeline. Where the customer's data-handling requirements constrain this, scoped enablement (incident windows, defined retention) and leaving collection disabled are both valid outcomes — record the rationale rather than a default judgment in either direction.
Tags and raw collection are complementary instruments: tags attribute a pattern to a code path; raw collection identifies the specific invocation. Assessments should evaluate both.
Recommend this baseline tag set:
application: stable app name.service: service or process name.environment: production, staging, development.route: normalized route template, for example /accounts/:id/orders, not /accounts/123/orders.controller: framework controller name where applicable.action: framework action name where applicable.job: background job class or worker name.queue: background queue.feature: bounded feature name for traffic classes like export, report, search, billing, checkout.release_sha: short git SHA or deploy identifier.source: app, worker, script, agent, mcp, bi, integration.tenant_tier: free, pro, enterprise, internal, only if bounded.Do not recommend these tags by default:
user_idrequest_idtenant_idemailsession_idIf the customer needs tenant-level isolation, recommend a bounded abstraction first, such as tenant tier, cell, shard, or customer class. Tenant ID is only acceptable with explicit approval after cardinality and privacy review.
Flag a tag as unsafe when:
Recommend normalizing at the application boundary.
For each top query pattern, produce:
Recommend SQLCommenter instrumentation when query attribution is weak.
Recommend replacing high-cardinality tags with bounded values.
For Postgres only, recommend warn mode budgets for expensive but important routes, jobs, analytics, exports, or third-party integrations.
For Vitess, recommend turning open schema recommendations into branch/deploy-request work. For Postgres, recommend turning them into reviewed migrations against a non-production branch.
Recommend a repository PR when the expensive query is caused by N+1, missing pagination, accidental eager load, unbounded export, broad search, or polling.
Do not:
Without explicit approval.
Return:
End with:
“No Insights, tag, repository, or Traffic Control changes have been applied.”
© planetscale, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in planetscale-query-insights-and-tags of planetscale/skills.
Open the folder on GitHubat commit 999045c
Planetscale Query Insights And Tags next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Planetscale Query Insights And Tags this skillplanetscale/skills | 133 | — | ~2.5k | Automated safety check: Pass | MIT | |
| cmux Backend Rulesmanaflow-ai/cmux | 28k | 1 repos | ~682 | Automated safety check: Pass | Custom licence | |
| MySQL Schema and Query Tuningplanetscale/database-skills | 708 | 3 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Cap Feature Building WorkflowCapSoftware/Cap | 23k | — | ~2.5k | Automated safety check: Warn | Custom licence | |
| PlanetScale Postgres Playbookplanetscale/database-skills | 708 | 3 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Vitess for PlanetScaleplanetscale/database-skills | 708 | 1 repos | ~1.2k | Automated safety check: Pass | MIT |
manaflow-ai/cmux
Sets the backend TypeScript and Cloud VM rules for cmux: Effect-based services, thin route handlers, Postgres as source of truth, migrations and provider secrets.
planetscale/database-skills
Guides safe, measurable MySQL and InnoDB changes across schema design, indexing, query tuning, transactions, locking and replication, with rollout steps.
CapSoftware/Cap
Builds a Cap feature in an isolated Git worktree with disposable dev resources, verification, a recorded demo and a neutral pull request, started with /building.
planetscale/database-skills
Indexes reference files on Postgres schema design, indexing, partitioning, query patterns, MVCC and VACUUM, and PlanetScale-specific operations.
planetscale/database-skills
Guidance on Vitess sharding, VSchema design, query tuning and connection problems for MySQL-compatible databases running on PlanetScale.
UsefulSoftwareCo/executor
Query Executor's production telemetry — Axiom traces (executor-cloud dataset), prod Postgres via PlanetScale, PostHog product analytics — through the Executor MCP.
planetscale/skills
Use the PlanetScale CLI (pscale) from automated agents with --format json, auth check, pscale sql, and per-command --force.
planetscale/skills
Master skill that runs the full PlanetScale safe best-practices assessment — inventory, engine review, Insights, Traffic Control, webhooks, schema recommendations, codebase instrumentation, and…
planetscale/skills
Execute approved PlanetScale changes end-to-end without per-step approval when the operator has explicitly acknowledged the risk.
planetscale/skills
A concise feature matrix for deciding which PlanetScale safety, observability, and automation recommendations apply by engine.
planetscale/skills
Enforce explicit approval gates for any PlanetScale, database, repository, credential, network, or automation mutation.
planetscale/skills
Inspect an application repository connected to PlanetScale and recommend SQLCommenter-compatible query tagging packages and conventions.
Works with
Use PlanetScale Insights and SQLCommenter-style query tags to attribute database load, identify risky queries, and prepare safe Traffic Control or schema recommendations. Planetscale Query Insights And Tags is an agent skill from planetscale/skills, published by the product's own GitHub organization. Use PlanetScale Insights and SQLCommenter-style query tags to attribute database load, identify risky queries, and prepare safe Traffic Control or schema recommendations.
Run `npx skills add planetscale/skills --skill planetscale-query-insights-and-tags -a claude-code`. Or copy the skill folder (planetscale-query-insights-and-tags in planetscale/skills) into .claude/skills/planetscale-query-insights-and-tags in your project. Claude Code loads it when a task matches its description.
Run `npx skills add planetscale/skills --skill planetscale-query-insights-and-tags -a codex`. Or copy the skill folder (planetscale-query-insights-and-tags in planetscale/skills) into .agents/skills/planetscale-query-insights-and-tags in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add planetscale/skills --skill planetscale-query-insights-and-tags -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/planetscale-query-insights-and-tags, .gemini/skills/planetscale-query-insights-and-tags, .github/skills/planetscale-query-insights-and-tags and .opencode/skills/planetscale-query-insights-and-tags in your project.
SKILL.md names no scripts, command-line tools or credentials: Planetscale Query Insights And Tags is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Planetscale Query Insights And Tags is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 9.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Planetscale Query Insights And Tags: cmux Backend Rules (manaflow-ai/cmux, 28k stars), MySQL Schema and Query Tuning (planetscale/database-skills, 708 stars), Cap Feature Building Workflow (CapSoftware/Cap, 23k stars) and PlanetScale Postgres Playbook (planetscale/database-skills, 708 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
planetscale (a GitHub organization, an official publisher) maintains it in planetscale/skills, which has 133 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 10, 2026.
Source: planetscale/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.