Borrowing it
Nothing to install: this file belongs to Mentor-Wizard/mentor-wizard-webapp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Mentor-Wizard/mentor-wizard-webapp/develop/.claude/skills/postgres-best-practices/SKILL.mdgit clone --depth 1 https://github.com/Mentor-Wizard/mentor-wizard-webappWrote 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/mentor-wizard/mentor-wizard-webapp/postgres-best-practices)<a href="https://agentmods.dev/skills/mentor-wizard/mentor-wizard-webapp/postgres-best-practices"><img src="https://agentmods.dev/badge/skills/mentor-wizard/mentor-wizard-webapp/postgres-best-practices.svg" alt="Measured on agentmods" 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.00098 | $0.00522 |
| Opus 5 | $0.00049 | $0.00261 |
| Sonnet 5 | $0.00020 | $0.00104 |
| Haiku 4.5 | $0.00010 | $0.00052 |
Grade A, and why
postgres-best-practices 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 2d 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.
The source is not reproduced here
No licence file
A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.
What ships with it
36 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.
- AGENTS.md 44 KB
- metadata.json 818 B
- README.md 3.1 KB
- rules/_contributing.md 4.0 KB
- rules/_sections.md 1.6 KB
- rules/_template.md 1.0 KB
- rules/advanced-full-text-search.md 1.4 KB
- rules/advanced-jsonb-indexing.md 1.4 KB
- rules/conn-idle-timeout.md 1.3 KB
- rules/conn-limits.md 1.3 KB
- rules/conn-pooling.md 1.3 KB
- rules/conn-prepared-statements.md 1.5 KB
- rules/data-batch-inserts.md 1.3 KB
- rules/data-n-plus-one.md 1.3 KB
- rules/data-pagination.md 1.3 KB
- rules/data-upsert.md 1.4 KB
- rules/lock-advisory.md 1.5 KB
- rules/lock-deadlock-prevention.md 1.8 KB
- rules/lock-short-transactions.md 1.3 KB
- rules/lock-skip-locked.md 1.3 KB
- rules/monitor-explain-analyze.md 1.4 KB
- rules/monitor-pg-stat-statements.md 1.4 KB
- rules/monitor-vacuum-analyze.md 1.5 KB
- rules/query-composite-indexes.md 1.4 KB
- rules/query-covering-indexes.md 1.3 KB
- rules/query-index-types.md 1.4 KB
- rules/query-missing-indexes.md 1.2 KB
- rules/query-partial-indexes.md 1.3 KB
- rules/schema-data-types.md 1.4 KB
- rules/schema-foreign-key-indexes.md 1.6 KB
- rules/schema-lowercase-identifiers.md 1.7 KB
- rules/schema-partitioning.md 1.5 KB
- rules/schema-primary-keys.md 1.8 KB
- rules/security-privileges.md 1.5 KB
- rules/security-rls-basics.md 1.3 KB
- rules/security-rls-performance.md 1.5 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.
- 2d ago First seen · 63 lines · 98 tokens per session scan A 0dbff8723bc9
postgres-best-practices is a skill published in the GitHub repository Mentor-Wizard/mentor-wizard-webapp (10 stars, last pushed 6d ago), with no licence file. It adds 98 tokens to every session and 522 once invoked, about $0.0005 per session on Opus 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-09-04.
Other skills, from other repositories
laravel-mysql-to-postgres
Migrate a Laravel application's database from MySQL/MariaDB to PostgreSQL safely. Use when moving a Laravel app to Postgres, when Eloquent/queries behave differently after switching drivers, or when planning a MySQL->Postgres cutover. Covers the migration strategy (pgloader vs query-builder), the Laravel-specific…
laravel-infrastructure
Laravel Horizon queues, Octane performance, Reverb WebSockets, Redis caching, PostgreSQL database. ALWAYS activate when: working with queue jobs, cache, sessions, broadcasting, database performance, supervisor, worker. Triggers on: job failed, queue stuck, cache not clearing, Redis connection, broadcast event…
sql-cli
Token-efficient MySQL/PostgreSQL operations using mycli and native CLI tools (Windows/Mac/Linux compatible). Replaces Artisan Tinker for database queries with 87% token savings.
alloydb-basics
Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations. Use when creating, configuring, or administering AlloyDB databases. Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.
postgresql-table-design
Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.
db-repair
Auto-fix gbrain's Postgres access so the brain stays available. When any gbrain command or MCP tool result carries a GBRAINDBACCESS marker (or an operator reports the brain database is down), run the hardcoded gbrain db-repair ladder: diagnose, apply the safe tier, verify. The action is ALWAYS the hardcoded command …