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 agentmods add skills/calvinchengx/data-agent-service/dialect-postgresnpx skills add calvinchengx/data-agent-service --skill dialect-postgresgit clone --depth 1 https://github.com/calvinchengx/data-agent-serviceWhat 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 | $0.00015 | $0.00371 |
| Opus 5 | $0.00008 | $0.00186 |
| Sonnet 5 | $0.00003 | $0.00074 |
| Haiku 4.5 | $0.00002 | $0.00037 |
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 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.
What it actually says
Applies to sources whose dialect is postgres.
- Row ceiling: the executor appends
LIMIT n. Do not writeLIMIT,FETCH FIRST, orTOP(TOPis 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;ILIKEfor case-insensitive matching. - Division: integer / integer is integer. Cast with
::numericbefore any ratio. - Booleans are real:
WHERE flagandcount(*) FILTER (WHERE cond)are idiomatic;AVG(CASE WHEN cond THEN 1.0 ELSE 0.0 END)also works for a rate. - Nulls:
AVG/SUMskip nulls;count(col)skips,count(*)does not.coalescewhen the catalog says a column is nullable and the question needs a total. - Grouping by an alias in
GROUP BYis allowed; referencing a select alias inWHEREis not. - Text search or JSON operators are available but rarely what the catalog describes — prefer the described column.
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 · 18 lines · 15 tokens per session scan A 67fbf3b5a0ee
dialect-postgres is a skill published in the GitHub repository calvinchengx/data-agent-service (0 stars, last pushed 2d ago), licensed Apache-2.0. It adds 15 tokens to every session and 371 once invoked, about $0.0001 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.
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…
db-query
Query the local Postgres database of the active Aspire worktree via psql.
retail-validate
Run the LIVE data checks against a materialized retail table and interpret the findings. Use after silver + gold exist for a mapped table in the Seshat BI repo, when someone asks to validate or reconcile a table, or when a V-RC2 / V-RC15 / V-RC16 finding appears. Invoke-and-interpret only: this skill runs retail…
postgres
Query and manage PostgreSQL databases -- run SQL, inspect schemas, manage tables, and perform database administration.
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 …
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.