# planetscale-codebase-sqlcommenter-instrumentation

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

Inspect an application repository connected to PlanetScale and recommend SQLCommenter-compatible query tagging packages and conventions.

## Install

```sh
git clone https://github.com/planetscale/skills /tmp/skills && ln -s /tmp/skills/planetscale-codebase-sqlcommenter-instrumentation ~/.claude/skills/planetscale-codebase-sqlcommenter-instrumentation
```

## From README

Codebase SQLCommenter instrumentation Purpose Inspect the application repository connected to PlanetScale and recommend the correct SQLCommenter-style instrumentation so PlanetScale Insights and Postgres Traffic Control can attribute queries to application code paths. Do not edit files or dependencies without approval. Repository inspection Identify: Language and framework. ORM or query builder. Database adapter. Migration tool. Background job system. Routing framework. Deployment metadata source, such as git SHA or release ID. Existing SQL comments, query tags, tracing, OpenTelemetry, or database middleware. PlanetScale connection configuration. Whether the repository connects to Vitess, Postgres, or both. Recommended package mapping Use the most native maintained option for the detected stack.

## Links

- HTML page: https://omgskills.com/library/planetscale/skills/planetscale-codebase-sqlcommenter-instrumentation/
- 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
