postgresql-optimization

postgresql-optimization is a skill for Claude Code, Codex from itokun99/superspec-ai-workflow. It costs 57 tokens per session (4,631 once invoked), scanned A, original, no licence file.

A PostgreSQL-focused development assistant for features specific to PostgreSQL, a relational database system.

In plain words
What is it for?
It helps work with JSONB, arrays, custom, range, and geometric types, full-text search, window functions, and PostgreSQL extensions.
Why use it?
It helps developers use PostgreSQL’s specialised data types, search tools, functions, and extensions correctly.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/itokun99/superspec-ai-workflow/postgresql-optimization
Any agent
npx skills add itokun99/superspec-ai-workflow --skill postgresql-optimization
Clone the repo
git clone --depth 1 https://github.com/itokun99/superspec-ai-workflow

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for postgresql-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/itokun99/superspec-ai-workflow/postgresql-optimization.svg)](https://agentmods.dev/skills/itokun99/superspec-ai-workflow/postgresql-optimization)
Your own site
<a href="https://agentmods.dev/skills/itokun99/superspec-ai-workflow/postgresql-optimization"><img src="https://agentmods.dev/badge/skills/itokun99/superspec-ai-workflow/postgresql-optimization.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,631 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00057 $0.04631
Opus 5 $0.00028 $0.02315
Sonnet 5 $0.00011 $0.00926
Haiku 4.5 $0.00006 $0.00463

Measured 3d ago against content hash 722c28e9ac80, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

postgresql-optimization 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 3d 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.

.agents/skills/postgresql-optimization/SKILL.md · 614 lines

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.

Read it on GitHub

Changes

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.

  1. 3d ago First seen · 614 lines · 57 tokens per session scan A 722c28e9ac80

Subscribe to this mod's changes

postgresql-optimization is a skill published in the GitHub repository itokun99/superspec-ai-workflow (2 stars, last pushed 2mo ago), with no licence file. It adds 57 tokens to every session and 4,631 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

alembic-migration

Create, review, and apply database schema changes with Alembic. Use whenever a SQLAlchemy model is added or changed, a column/index/constraint needs to change, or a data backfill is required — anything that alters the PostgreSQL schema.

vstorm-co/full-stack-ai-agent-template · 56 tokens

optimize-a-query

Diagnose and fix a slow Postgres query in the builders-stack — read its EXPLAIN plan, find the missing index or the ORM N+1, and confirm the fix. Use when a page or endpoint is slow, a query times out, or pgstatstatements shows a hot query. Pairs with design-a-schema for the index itself.

lonormaly/builders-stack · 77 tokens

run-lean-on-neon

Keep Postgres fast under load and inside Neon's free tier. Use when choosing a connection string, worrying about "the DB crashes at load", deciding a session strategy, or trying to stay under Neon's free limits (storage / compute-hours). Corrects the common mistake of reaching for postgresql.conf / PgTune — most of…

lonormaly/builders-stack · 80 tokens

postgresql

PostgreSQL administration and setup including installation, configuration, backup/recovery, replication, and high-availability. Learn production PostgreSQL operations.

Aniket-a14/SRA · 31 tokens

supabase

Use when doing ANY task involving Supabase: Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues, supabase-js, @supabase/ssr, RLS, schema migrations, CLI, MCP server. Includes security checklist.

martineserios/thebrana · 58 tokens

db-schema

Design a database schema from product requirements. Postgres-first with Supabase awareness. Use when user says "design the database", "create schema", "data model", "database structure", "what tables do I need", "schema design", or needs to translate requirements into a relational schema.

kazdenc/builder-skills · 61 tokens