Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add xonovex/platform --skill writing-sql-postgresqlgit clone --depth 1 https://github.com/xonovex/platformWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xonovex/platform/writing-sql-postgresql)<a href="https://agentmods.dev/skills/xonovex/platform/writing-sql-postgresql"><img src="https://agentmods.dev/badge/skills/xonovex/platform/writing-sql-postgresql/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/xonovex/platform/writing-sql-postgresql"><img src="https://agentmods.dev/badge/skills/xonovex/platform/writing-sql-postgresql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00067 | $0.00665 |
| Opus 5.5 | $0.00027 | $0.00266 |
| Sonnet 5.5 | $0.00013 | $0.00133 |
| Haiku 4.5 | $0.00007 | $0.00067 |
Grade A, and why
writing-sql-postgresql scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PostgreSQL Coding Guidelines
Write PostgreSQL queries and schemas with explicit constraints, transactional changes, and measured query plans.
Requirements
- PostgreSQL ≥ 15.
Essentials
- Query composition - Use CTEs to decompose complex queries, name descriptively, see references/cte-patterns.md
- Schema design - Choose precise types, index for access paths, avoid over-indexing, see references/data-types.md, references/indexing.md
- Data integrity - Enforce with PK/FK/UNIQUE/CHECK/NOT NULL constraints, see references/constraints.md
- Semi-structured data - Use JSONB with GIN indexes, see references/jsonb.md
- Multi-tenancy - Apply RLS and role-based access for data isolation, see references/row-level-security.md, references/role-based-access.md
- Performance - Analyze query plans and tune, see references/performance.md
Gotchas
ANALYZEupdates planner statistics: bulk inserts without re-analyzing produce stale plans and full scansJSONBsupports indexing (GIN);JSONdoesn't: pick JSONB unless you specifically need preserved formatting- Most DDL participates in transactions, but commands such as
CREATE INDEX CONCURRENTLYcannot run inside a transaction block: check every migration operation before wrapping the whole file - Prefer SQL-standard
GENERATED ... AS IDENTITYfor new auto-generated keys because its sequence relationship and override rules are declared on the column;SERIAL/BIGSERIALremain supported PostgreSQL shorthand, not deprecated syntax
Progressive disclosure
- Read references/cte-patterns.md - Load when breaking down complex queries or improving readability
- Read references/data-types.md - Load when choosing column types or avoiding type mismatches
- Read references/indexing.md - Load when optimizing slow queries or query planning
- Read references/constraints.md - Load when enforcing data integrity rules
- Read references/jsonb.md - Load when storing semi-structured or dynamic data
- Read references/row-level-security.md - Load when implementing multi-tenant data isolation
- Read references/role-based-access.md - Load when configuring database user permissions
- Read references/performance.md - Load when analyzing query plans or tuning performance
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- eval-output.json 4.1 KB
- eval-trigger.json 6.0 KB
- moon.yml 86 B
- references/constraints.md 633 B
- references/cte-patterns.md 592 B
- references/data-types.md 848 B
- references/indexing.md 744 B
- references/jsonb.md 705 B
- references/performance.md 388 B
- references/role-based-access.md 763 B
- references/row-level-security.md 930 B
- sources.json 1.2 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 40 lines · 67 tokens per session scan A ba344a5ed3fc
writing-sql-postgresql is a skill published in the GitHub repository xonovex/platform (6 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 665 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.
writing-sql-postgresql compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| writing-sql-postgresqlxonovex/platform | Skill | 6 | yesterday | MIT | A | 67 | Claude Code |
| jpa-patternspiomin/claude-ai-spring-boot | Skill | 1.5k | 3d ago | Apache-2.0 | A | 47 | Claude Code |
| alembic-migrationvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 56 | Claude Code |
| postgresdbericrisco/rsc-harness | Skill | 682 | 5d ago | MIT | A | 91 | Claude Code, Codex |
| neonericrisco/rsc-harness | Skill | 682 | 5d ago | MIT | A | 93 | Claude Code, Codex |
| event-drivenpiomin/claude-ai-spring-boot | Skill | 1.5k | 3d ago | Apache-2.0 | A | 133 | Claude Code |
| demo-datamendixlabs/mxcli | Skill | 145 | yesterday | Apache-2.0 | A | 66 | Claude Code |