/polygres:polygres-clifrom polygres
Operates Polygres projects via CLI or MCP tools: auth, project management, data import, migrations, retrieval config, Runtime keys, and readiness checks.
Ships in polygres. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Operate a user's Polygres project through the installed polygres command.
Treat the CLI as the operational and security boundary. Do not call private
control-plane routes or infer undocumented request payloads.
When Polygres MCP tools are available in the current session, read
references/mcp-tool-contract.md and use the discovered compatible tools for
interactive project operations. Call whoami, respect the fixed-project or
multi-project boundary, and treat the discovered catalog as authoritative.
Use the CLI workflow in this skill when the user explicitly asks for CLI, when MCP is absent or incompatible, or when the operation belongs to the CLI surface, such as migrations, Runtime keys, interactive database access, import start, and legacy vector or text configuration. Never invent an MCP tool to mirror a CLI command.
polygres --version and polygres --help before live or end-to-end
testing, and whenever availability or command compatibility is unknown.polygres-cli and
let them approve or perform the installation. Do not install packages
silently.polygres-cli and polygres-sdk from that
checkout under its dependency-installation policy, and verify their versions
and import origins before testing. Do not substitute PyPI packages for the
checkout under test.polygres whoami before a mutation when identity or active organization
is uncertain. Use polygres login when authentication is required.polygres projects list, an explicit --project,
or polygres projects use <project>. State the resolved project before a
destructive, secret-producing, or schema-mutating operation.project_mode. When it is synced, read
references/synced-projects.md before choosing any command.polygres --json ... for output the agent must parse. Treat stdout as
the JSON channel and stderr as diagnostics.If bundled examples differ from the installed --help, follow the installed
command surface and explain the version mismatch. Never guess a replacement.
Embedding setup and query-text flags require CLI 0.5.0 and a supporting Runtime.
For text queries, check query_embedding_generation in
polygres --json context capabilities. Existing vector inputs keep their
behavior; retain that workflow for applications using CLI 0.4.x until an
upgrade is authorized.
Read only the references needed for the task:
| User intent | Reference |
|---|---|
| Login, logout, identity, organization, project selection or status | references/authentication-and-projects.md |
| Synced-project creation, capabilities, lifecycle handoff, and permission boundaries | references/synced-projects.md |
Environment, Postgres metadata, psql, Runtime API keys | references/database-and-keys.md |
| Dataset or backfill from CSV, TSV, a JSON array, or JSONL/NDJSON | references/data-imports.md |
| Validate, insert, upsert, or ignore one JSON object or runtime event | references/rows.md |
| Migration list/apply and SQL safety | references/migrations.md |
| Graph, text, existing vector configurations, and general retrieval readiness | references/retrieval.md |
| Generate embeddings from source text, reuse vectors, preview costs, manage processing, and configure search | references/embeddings.md |
| Execute an approved graph plan through MCP or fall back to CLI | references/mcp-graph-retrieval.md |
| Polygres AI Context collections, filters, points, operations, and retrieval | references/context.md |
| JSON output, polling, exit codes, retry and recovery | references/automation-and-errors.md |
Obtain explicit user approval before:
replace_existing imports;--yes;Add --yes only after approval for that exact operation and target.
Do not add a second confirmation to an explicit rows insert, rows upsert,
or rows ignore command that is already authorized by the user's command or a
matching consolidated pipeline approval.
Before approval for add-column or new-table collection creation, also show
the preflight DDL, affected schema objects, and ownership boundaries.
--connection-env; never inspect its value.psql prompt the user for the database password.polygres db psql directly.POLYGRES_ACCESS_TOKEN. It is a development and test
override, not a public authentication workflow.polygres keys create <name> because the Runtime API-key secret
is shown once and can enter terminal or agent history.For TSV, JSON arrays, and JSONL/NDJSON datasets, read
references/data-imports.md and use scripts/prepare_import.py. Route one JSON
object intended as an individual write to references/rows.md instead. Resolve
the script path from this skill directory instead of assuming the repository
contains scripts/.
The converter is local-only and produces a reviewed CSV artifact. It does not call Polygres. Never silently flatten nested JSON, rename columns, or collapse null and empty-string values without explaining the result and obtaining the required approval.
Do not present SQL migrations as a generic row-import mechanism. Do not call
the backend SQL-import or pg_dump routes because those commands are not in
the current public CLI.
Use references/automation-and-errors.md to interpret exit codes. In
particular:
2.3.4.5.6.7.8 as remote failure or timeout.psql on exit 9.After an import or provisioning timeout, check the known resource or job status before resubmitting. A timed-out client does not prove the server operation failed.
agents/openai.yaml (opens in a new tab)references/authentication-and-projects.md (opens in a new tab)references/automation-and-errors.md (opens in a new tab)references/context.md (opens in a new tab)references/data-imports.md (opens in a new tab)references/database-and-keys.md (opens in a new tab)references/embeddings.md (opens in a new tab)references/mcp-graph-retrieval.md (opens in a new tab)references/mcp-tool-contract.md (opens in a new tab)references/migrations.md (opens in a new tab)references/retrieval.md (opens in a new tab)references/rows.md (opens in a new tab)references/synced-projects.md (opens in a new tab)scripts/prepare_import.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub evokoa/polygres-skills --plugin polygres5 skills in this plugin
/polygres-data-pipelineSet up or extend Polygres through available MCP tools and supported fallbacks for ingestion, memory, graph, embeddings, synchronization, retrieval, RAG, and agent integration. Use for personalized recommendations, complete data-pipeline setup, and verification from a short outcome or detailed specification./polygres-retrieval-designDesign and review Polygres retrieval using available read-only MCP evidence across relational, graph, text, hybrid, and Polygres AI Context. Use for retrieval and embedding strategy selection, Context or graph design, grounded RAG planning, and compatibility review before implementation./polygres-sdkUse available Polygres MCP tools for interactive grounded retrieval and the Polygres Python SDK for application code, text or vector queries, graph and hybrid retrieval, standard-project row writes, pagination, and typed error handling./polygres-troubleshootingDiagnose Polygres MCP, OAuth connections, CLI, Runtime API, projects, jobs, synchronization, migrations, embeddings, and retrieval through public read-only evidence. Use for scope or project-boundary issues, timeouts, partial failures, readiness, generation or query allowances, Context operations, and search quality.Other plugins' skills for the same job