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 skills add Evokoa/polygres-skills --skill polygres-retrieval-designgit clone --depth 1 https://github.com/Evokoa/polygres-skillsWrote 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/evokoa/polygres-skills/polygres-retrieval-design)<a href="https://agentmods.dev/skills/evokoa/polygres-skills/polygres-retrieval-design"><img src="https://agentmods.dev/badge/skills/evokoa/polygres-skills/polygres-retrieval-design/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.
<a href="https://agentmods.dev/skills/evokoa/polygres-skills/polygres-retrieval-design"><img src="https://agentmods.dev/badge/skills/evokoa/polygres-skills/polygres-retrieval-design.svg" alt="Reviewed on agentmods" width="80" 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.00061 | $0.01122 |
| Opus 5.5 | $0.00024 | $0.00449 |
| Sonnet 5.5 | $0.00012 | $0.00224 |
| Haiku 4.5 | $0.00006 | $0.00112 |
Grade A, and why
polygres-retrieval-design 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Polygres Retrieval Design
Produce a reviewable plan before retrieval configuration or application work. This skill is advisory: it must not mutate a project directly.
When Polygres MCP tools are available, read
references/mcp-tool-contract.md and use discovered read tools for bounded
inspection. Call whoami, respect the connection's project boundary, and keep
this skill read-only even when change tools are visible.
Workflow
- Extract the user outcome, authorization, latency, freshness, and expected result shape from the prompt and inspected application. Ask only for a missing fact that changes the recommendation; representative questions are useful evidence, not a mandatory interview.
- Resolve project mode, then inspect the supplied schema, verified row identifiers, sample data, and existing retrieval configuration. Label missing evidence as unresolved; never infer production facts from a table or column name.
- Select the smallest sufficient strategy using
references/strategy-selection.md. Reject an unsupported strategy rather than inventing a capability. - For semantic retrieval, use
references/embedding-design.mdto compare Polygres generation, local or external generation, and existing vectors. For graph retrieval, applyreferences/graph-modeling.md. For an existing vector configuration, TSVector, or fuzzy retrieval, applyreferences/vector-and-text-design.md. When MCP Graph tools are available, also readreferences/mcp-graph-retrieval.mdfor evidence and handoff requirements. - For pgContext collections, point synchronization, registered filters, or
Context retrieval modes, apply
references/context-design.md. - For multi-stage retrieval or RAG, apply
references/hybrid-and-rag-plan.md. - Write the result with
references/plan-template.md. When called by$polygres-data-pipeline, return the selected and omitted components plus exact public-interface handoffs in a machine-readable section so the caller can continue without another interview. - In a design-only request, return the plan. In an active data-pipeline setup, return control to the orchestrating skill with the user's existing authorization and any remaining decisions.
What ships with it
10 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/openai.yaml 249 B
- references/context-design.md 6.6 KB
- references/embedding-design.md 9.7 KB
- references/graph-modeling.md 1.8 KB
- references/hybrid-and-rag-plan.md 3.7 KB
- references/mcp-graph-retrieval.md 1.2 KB
- references/mcp-tool-contract.md 14 KB
- references/plan-template.md 6.9 KB
- references/strategy-selection.md 3.7 KB
- references/vector-and-text-design.md 3.6 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.
- 2mo ago Changed 1309c26f7f1f
- 2mo ago Changed · +6 lines · -4 tokens per session 68d67172edd1
- 2mo ago Changed · +7 lines · -30 tokens per session b4f1b2bdb4b1
- 3mo ago First seen · 82 lines · 95 tokens per session scan A fe08fba9c40e
polygres-retrieval-design is a skill published in the GitHub repository Evokoa/polygres-skills (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 61 tokens to every session and 1,122 once invoked, about $0.0002 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.
polygres-retrieval-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| polygres-retrieval-designEvokoa/polygres-skills | Skill | 11 | 2mo ago | Apache-2.0 | A | 61 | Claude Code, Codex |
| pgvector-semantic-searchtimescale/pg-aiguide | Skill | 1.9k | yesterday | Apache-2.0 | A | 190 | Cursor |
| postgres-hybrid-text-searchtimescale/pg-aiguide | Skill | 1.9k | yesterday | Apache-2.0 | A | 162 | Cursor |
| vector-db-rag-expertroedyrustam/vibes-plug | Skill | 132 | today | MIT | A | 47 | Cursor |
| postgres-semantic-searchlaguagu/claude-code-nextjs-skills | Skill | 75 | 6d ago | MIT | A | 90 | Claude Code |
| managing-databasesrileyhilliard/claude-essentials | Skill | 133 | 2d ago | MIT | A | 61 | Claude Code |
| data-mcp-toolsmakifbaysal/tasktrooper | Skill | 123 | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |