From 11ba00e0ec93d4d0fabbc5fbc196ed904c2301f2 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Sat, 31 Oct 2026 22:20:11 +0000 Subject: [PATCH] docs(lint): skill install command and safegres cross-link --- .agents/skills/pgsql-lint/SKILL.md | 11 +++++++++++ packages/lint/README.md | 3 +++ 2 files changed, 14 insertions(+) diff --git a/.agents/skills/pgsql-lint/SKILL.md b/.agents/skills/pgsql-lint/SKILL.md index 5924439a..7fb4c333 100644 --- a/.agents/skills/pgsql-lint/SKILL.md +++ b/.agents/skills/pgsql-lint/SKILL.md @@ -15,6 +15,17 @@ hook, or a definition read from a live catalog via `pg_get_functiondef` Runtime footprint is only the parser stack in this repo: `pgsql-parser` (SQL → AST), `libpg-query` (`parsePlPgSQL`), `@pgsql/traverse` (`walk`). +## Install + +```bash +npx skills add constructive-io/pgsql-parser --skill pgsql-lint # this skill +npm install -D @pgsql/lint # the library + `pgsql-lint` CLI +``` + +For the live-database half — RLS, grants, effective access, index hygiene, the +same C1–C4 rules read from the catalog — see the `safegres` skill +(`npx skills add constructive-io/constructive --skill safegres`). + ## The built-in rules | Code | Id | Flags | Reason required? | diff --git a/packages/lint/README.md b/packages/lint/README.md index f88219b9..1c28fd74 100644 --- a/packages/lint/README.md +++ b/packages/lint/README.md @@ -24,6 +24,9 @@ via `pg_get_functiondef`. npm install @pgsql/lint ``` +Agent skill (rules, CLI, authoring new rules): +`npx skills add constructive-io/pgsql-parser --skill pgsql-lint`. + ## Rules | Code | Id | Flags |