polygres-troubleshooting

polygres-troubleshooting is a skill for Claude Code, Codex from Evokoa/polygres-skills. It costs 69 tokens per session (1,209 once invoked), scanned A, original, Apache-2.0.

A read-only troubleshooting workflow for Polygres, a system involving PostgreSQL databases, project synchronization, migrations, jobs, and search over text, graphs, or vectors. It gathers evidence and identifies where a failure occurs before suggesting a correction.

In plain words
What is it for?
Use it to investigate Polygres CLI or API errors, synchronization and lifecycle failures, failed jobs or migrations, readiness issues, and graph, vector, text, or hybrid search problems.
Why use it?
It prevents diagnosis from changing the project while the cause is still unclear. It also helps distinguish configuration, project, database, migration, readiness, timeout, and retrieval problems.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: $skill-name invocation.

Part of the polygres plugin — 5 skills, 1 MCP server shipped together

Good fit Use it to investigate Polygres CLI or API errors, synchronization and lifecycle failures, failed jobs or migrations, readiness issues, and graph, vector, text, or hybrid search problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/evokoa/polygres-skills/polygres-troubleshooting
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 Evokoa/polygres-skills --skill polygres-troubleshooting
Clone the repo
git clone --depth 1 https://github.com/Evokoa/polygres-skills

Made for: Claude Code, Codex.

Or install polygres, the plugin that ships this one along with the rest of its 5 skills, 1 MCP server.

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 polygres-troubleshooting

README.md
[![agentmods](https://agentmods.dev/badge/skills/evokoa/polygres-skills/polygres-troubleshooting/github.svg)](https://agentmods.dev/skills/evokoa/polygres-skills/polygres-troubleshooting)
Your own site
<a href="https://agentmods.dev/skills/evokoa/polygres-skills/polygres-troubleshooting"><img src="https://agentmods.dev/badge/skills/evokoa/polygres-skills/polygres-troubleshooting/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 polygres-troubleshooting

Your own site · 80×15
<a href="https://agentmods.dev/skills/evokoa/polygres-skills/polygres-troubleshooting"><img src="https://agentmods.dev/badge/skills/evokoa/polygres-skills/polygres-troubleshooting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,209 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.00069 $0.01209
Opus 5.5 $0.00028 $0.00484
Sonnet 5.5 $0.00014 $0.00242
Haiku 4.5 $0.00007 $0.00121

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

Security

Grade A, and why

polygres-troubleshooting 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.

plugins/polygres/skills/polygres-troubleshooting/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Polygres Troubleshooting

Use read-only checks first. Resolve context, preserve evidence, classify the failure boundary, and recommend the smallest safe correction. Do not mutate while diagnosing.

When Polygres MCP tools are available, read references/mcp-tool-contract.md, call whoami, and use the discovered read catalog before CLI or SDK fallback. Treat the connection URL restrictions, OAuth installation, current scopes, project boundary, project mode, and catalog version as separate diagnostic layers.

Workflow

  1. Read the installed polygres --help and command-specific help before using a command. Installed behavior is the source of truth for CLI compatibility.
  2. Resolve identity, configuration source, and one exact project using references/context-and-connectivity.md. Stop on an ambiguous project.
  3. Capture the symptom, timestamp, sanitized command or SDK call, exit code or exception type, request_id, job ID, and whether pagination returned a cursor. For generated pipelines, also capture the manifest state, plan digest, approved action IDs, checkpoint, and last successfully completed stage.
  4. Inspect project and database evidence with references/projects-and-database.md.
  5. If project_mode is synced, use references/synced-projects.md and skip target database, row, import, and migration checks.
  6. For import job or migration failures, use references/jobs-and-migrations.md. For graph, vector, text, hybrid, or general readiness failures, use references/retrieval.md. For pgContext capability, collection, point, operation, recall, or Joint failures, use references/context.md. For embedding setup, generation, text query models, or usage, use references/embeddings.md. Use references/mcp-retrieval-quality.md for retrieval evaluation through MCP and references/mcp-operation-recovery.md for MCP operation state.
  7. Classify the fault as CLI/local configuration, control-plane, Runtime API, Postgres/database or pooler, or asynchronous job state. Use references/errors-and-escalation.md for typed SDK errors and escalation.
  8. Re-check status before retry. Recommend the smallest corrective action and hand off supported mutations to $polygres-cli or application changes to $polygres-sdk, using the user's existing authorization when it covers the action.

Read the full file on GitHub · 97 lines

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 Changed 7dcfbe061f62
  2. 1mo ago Changed · +5 lines · -1 tokens per session df7445e76b42
  3. 1mo ago Changed · +8 lines · -36 tokens per session 0118b41b66c8
  4. 1mo ago First seen · 84 lines · 106 tokens per session scan A 4e204a86f49a

Subscribe to this mod's changes

polygres-troubleshooting is a skill published in the GitHub repository Evokoa/polygres-skills (10 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 69 tokens to every session and 1,209 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-08-31.

Related

Other skills, from other repositories

sql-optimizer

Analyzes SQL queries for missing indexes, N+1 patterns, suboptimal joins, and full table scans. Interprets EXPLAIN, detects anti-patterns, rewrites queries. Triggers on: "optimize this query", "slow query", "add indexes", "explain plan", "N+1 query", "why is this query slow".

Mathews-Tom/armory · 78 tokens

ecto-constraint-debug

Debug Ecto constraint violations - trace triggers, check migrations, find duplicate data. Use when seeing uniqueconstraint, foreignkeyconstraint, or checkconstraint errors.

oliver-kriska/claude-elixir-phoenix · 36 tokens

sql-optimization-patterns

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

HermeticOrmus/LibreUIUX-Claude-Code · 44 tokens

rls-performance

A guide for finding and fixing slow database queries when row-level security rules and limited connection pools affect an API.

YuDefine/nuxt-supabase-starter · 58 tokens

sql-explain

Explains a PostgreSQL EXPLAIN ANALYZE plan and points at the slowest node. Use when the user pastes a query plan; not for rewriting schemas.

Goldziher/ai-rulez · 39 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