Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .agents/skills/pgsql-lint/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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? |
Expand Down
3 changes: 3 additions & 0 deletions packages/lint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Loading