dialect-postgres

dialect-postgres is a skill for Claude Code, Codex from calvinchengx/data-agent-service. It costs 15 tokens per session (371 once invoked), scanned A, original, Apache-2.0.

A set of rules for writing PostgreSQL SQL, the query language used by PostgreSQL databases. It covers names, dates, text, calculations, booleans, null values, grouping, and search operators.

In plain words
What is it for?
Writing read queries against PostgreSQL tables, including date grouping, case-insensitive text matching, ratios, boolean filters, conditional aggregates, and nullable values.
Why use it?
It helps queries use PostgreSQL syntax and avoid common errors such as integer division producing an integer or referencing a column alias in the wrong place.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Writing read queries against PostgreSQL tables, including date grouping, case-insensitive text matching, ratios, boolean filters, conditional aggregates, and nullable values.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/calvinchengx/data-agent-service/dialect-postgres
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.

Any agent
npx skills add calvinchengx/data-agent-service --skill dialect-postgres
Clone the repo
git clone --depth 1 https://github.com/calvinchengx/data-agent-service

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 dialect-postgres

README.md
[![agentmods](https://agentmods.dev/badge/skills/calvinchengx/data-agent-service/dialect-postgres/github.svg)](https://agentmods.dev/skills/calvinchengx/data-agent-service/dialect-postgres)
Your own site
<a href="https://agentmods.dev/skills/calvinchengx/data-agent-service/dialect-postgres"><img src="https://agentmods.dev/badge/skills/calvinchengx/data-agent-service/dialect-postgres/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.

agentmods 80×15 button for dialect-postgres

Your own site · 80×15
<a href="https://agentmods.dev/skills/calvinchengx/data-agent-service/dialect-postgres"><img src="https://agentmods.dev/badge/skills/calvinchengx/data-agent-service/dialect-postgres.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 371 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.1 $0.00015 $0.00371
Opus 5.5 $0.00006 $0.00148
Sonnet 5.5 $0.00003 $0.00074
Haiku 4.5 $0.00002 $0.00037

Measured 1mo ago against content hash 67fbf3b5a0ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dialect-postgres 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 1mo 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.

agent/skills/dialect-postgres/SKILL.md · 18 lines

What it actually says

Applies to sources whose dialect is postgres.

  • Row ceiling: the executor appends LIMIT n. Do not write LIMIT, FETCH FIRST, or TOP (TOP is a syntax error here).
  • Identifiers: schema.table; unquoted names fold to lower case. Quote with "double quotes" only if the described column name has capitals or spaces.
  • Dates: date_trunc('month', col), extract(year from col), to_char(col, 'YYYY-MM'), col + interval '1 day', age(a, b). Minutes between timestamps: extract(epoch from (b - a)) / 60.
  • Strings: || for concatenation, length, lower; ILIKE for case-insensitive matching.
  • Division: integer / integer is integer. Cast with ::numeric before any ratio.
  • Booleans are real: WHERE flag and count(*) FILTER (WHERE cond) are idiomatic; AVG(CASE WHEN cond THEN 1.0 ELSE 0.0 END) also works for a rate.
  • Nulls: AVG/SUM skip nulls; count(col) skips, count(*) does not. coalesce when the catalog says a column is nullable and the question needs a total.
  • Grouping by an alias in GROUP BY is allowed; referencing a select alias in WHERE is not.
  • Text search or JSON operators are available but rarely what the catalog describes — prefer the described column.
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. 1mo ago First seen · 18 lines · 15 tokens per session scan A 67fbf3b5a0ee

Subscribe to this mod's changes

dialect-postgres is a skill published in the GitHub repository calvinchengx/data-agent-service (0 stars, last pushed today), licensed Apache-2.0. It adds 15 tokens to every session and 371 once invoked, about $0.0001 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-08-31.

Related

Other skills, from other repositories

azure-resource-manager-postgresql-dotnet

Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for…

microsoft/skills · 97 tokens

azure-mgmt-mongodbatlas-dotnet

Manage MongoDB Atlas Organizations as Azure ARM resources using Azure.ResourceManager.MongoDBAtlas SDK. Use when creating, updating, listing, or deleting MongoDB Atlas organizations through Azure Marketplace integration. This SDK manages the Azure-side organization resource, not Atlas clusters/databases directly.

microsoft/skills · 64 tokens

azure-resource-manager-mysql-dotnet

Azure MySQL Flexible Server SDK for .NET. Database management for MySQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "MySQL", "MySqlFlexibleServer", "MySQL Flexible Server", "Azure Database for MySQL", "MySQL database…

microsoft/skills · 87 tokens

azure-resource-manager-redis-dotnet

Azure Resource Manager SDK for Redis in .NET. Use for MANAGEMENT PLANE operations: creating/managing Azure Cache for Redis instances, firewall rules, access keys, patch schedules, linked servers (geo-replication), and private endpoints via Azure Resource Manager. NOT for data plane operations (get/set keys, pub/sub) …

microsoft/skills · 114 tokens

azure-cosmos-db-py

Build Azure Cosmos DB NoSQL services with Python/FastAPI following production-grade patterns. Use when implementing database client setup with dual auth (DefaultAzureCredential + emulator), service layer classes with CRUD operations, partition key strategies, parameterized queries, or TDD patterns for Cosmos. Triggers…

microsoft/skills · 96 tokens

azure-cosmos-ts

Azure Cosmos DB JavaScript/TypeScript SDK (@azure/cosmos) for data plane operations. Use for CRUD operations on documents, queries, bulk operations, and container management. Triggers: "Cosmos DB", "@azure/cosmos", "CosmosClient", "document CRUD", "NoSQL queries", "bulk operations", "partition key", "container.items".

microsoft/skills · 79 tokens