/polygres:polygres-data-pipelinefrom polygres
Sets up or extends Polygres data pipelines via MCP tools or CLI/SDK fallbacks, covering ingestion, memory, graph, embeddings, RAG, and agent integration. Adapts to user intent and verifies results.
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.
Turn setup intent into the smallest complete working result. Adapt to what the user actually needs. Do not force every setup through schema creation, embeddings, graph, backfill, continuous capture, retrieval code, or agent instructions.
Treat this skill as a decision guide, not a mandatory architecture or ordered checklist. Adapt, reorder, replace, or omit recommended components and numeric defaults when inspected evidence or the user's outcome supports a better design. Numeric defaults are starting points, including sample sizes, result counts, token budgets, recall timing, capture timing, and model rankings.
Keep only safety and correctness boundaries firm: preserve authorization and provenance, keep secrets out of plans and payloads, disclose and approve material effects, use compatible embedding contracts, avoid unsupported public interfaces and invented graph relationships, and test the important selected path before calling it operational.
When Polygres MCP tools are available, read
references/mcp-tool-contract.md, call whoami, and prefer discovered
compatible MCP tools for interactive inspection, setup, retrieval, and
operation tracking. Treat the connection's project boundary, feature selection,
read-only setting, and visible catalog as authoritative.
Use the existing CLI, SDK, Dashboard, or PostgreSQL workflow when MCP is absent, incompatible, or does not expose the required operation. Keep the SDK for persistent application code, the Dashboard for source secret entry and import start, and the CLI for migrations, Runtime keys, and other documented operator workflows.
Activate for broad prompts such as "Help me set up Polygres," contextual prompts such as "look at my conversations and set up Polygres," and detailed technical specifications. Treat examples as illustrations, not required wording.
For a question such as "What can I do with Polygres?", use a personalized recommendation branch. Inspect the accessible current workspace and any uniquely resolved Polygres project with bounded, read-only checks. Look only at the data shape, existing retrieval configuration, and application or agent entry points needed to identify useful opportunities. Then give a short answer that says what was found, leads with the most useful Polygres outcome for this project, and mentions only relevant alternatives. Do not return a generic feature list, create a plan, scaffold files, or mutate anything. End with a direct next step such as:
To proceed, reply: Set up the recommended Polygres pipeline.
Treat that reply or an equivalent acceptance as setup intent. Carry the inspected source, project, outcome, and recommendation into the setup flow without repeating discovery unless the evidence is stale. Carry forward any approval already given for the same source, project, processing, and costs. Prepare a consolidated review only for material effects that remain undecided.
If the prompt identifies neither a source or inspectable context nor a desired outcome, do not inspect, design, scaffold, or configure yet. Ask one short direction question first:
What would you like Polygres to do, and where is the relevant data? For
example: conversations or agent memory, an existing database, files or an API,
search and retrieval, or connected-data exploration.
Treat a response that identifies a source, an outcome, or both as enough to begin. Infer the remaining reversible details from inspection instead of turning the opening question into a form. Contextual prompts such as "look at my conversations and set up Polygres" and detailed specifications skip this question and proceed immediately.
If the user asks for a generic explanation or design comparison that does not
request personalized inspection, use $polygres-retrieval-design. If they want
a usable project, pipeline, memory, search, ingestion, synchronization, or
agent integration, continue here.
target.project_mode before selecting any write, import, migration,
database, or retrieval surface. For an existing PostgreSQL source, evaluate
managed sync with references/synced-projects.md before designing custom
capture.Do not spend setup time explaining Polygres unless the user asks. Do not read an entire source before a privacy filter exists. Do not stop at a plan or generic scaffold when runnable source-specific code can be produced.
Critical means the answer changes safety or makes the implementation invalid:
Group critical unknowns into one short request. Prefer a reversible default and
state it in the review. Use references/guided-interview.md for the initial
vague-prompt question or when genuinely blocked; it is not the normal flow for
contextual or detailed requests.
Read references/schema-and-graph.md for schema and graph decisions and
references/context-and-retrieval.md for text, embedding, Context, and recall.
For semantic retrieval, follow references/embedding-model-selection.md and
use scripts/recommend_embedding_models.py after bounded inspection.
Read only the source reference that matches the inspected input:
| Source | Reference |
|---|---|
| Agent memory, Codex, Claude Code, or chat export | references/source-chat-agents.md |
| Existing database, polling, outbox, or change stream | references/source-databases.md |
| Managed Supabase, Neon, or PostgreSQL sync project | references/synced-projects.md |
| Files, APIs, webhooks, queues, or mixed input | references/source-files-and-apis.md |
Read the focused MCP playbook that matches the outcome:
| Outcome | Reference |
|---|---|
| Create or recover a project, onboard sync, or change capacity | references/mcp-project-setup.md |
| Build and verify grounded RAG | references/mcp-rag-pipeline.md |
| Prepare and monitor a dataset import | references/mcp-dataset-import.md |
| Create interactive or application-backed agent memory | references/mcp-agent-memory.md |
Follow references/pipeline-runtime.md. The generated implementation must use
stable source identities, filter before persistence or embedding, write
idempotently, checkpoint only after durable success, expose exact capture and
retrieval commands when selected, and include focused tests.
Use the public interface appropriate to each workload:
Never apply the standard-project mutation routes to a synced project. Do not probe rows validation, request target database information, or infer that a project API key can call sync control-plane operations.
The single-row contract is available in CLI/SDK 0.3.0 and includes
insert, upsert, ignore, and validate. If the installed client or project
does not contain that endpoint version, mark capture upgrade-required, give the exact
upgrade requirement, and continue all unaffected setup work. Never infer the
endpoint or disguise a bulk import as per-turn capture.
For application-owned vectors, reconcile imported rows into their Context collection. For managed embeddings, write source text without Context options and let Polygres generate embeddings and reconcile the managed output. Read the Context handoff to configure that output collection; its row keys differ from the original source keys. Verify both generation and search readiness. Route deletions through the source system and verify cleanup of each selected surface.
For multi-step work, use references/pipeline-plan-contract.md and quietly lint
the internal plan with scripts/validate_pipeline_plan.py. Automatically fix
blockers from available evidence; resolve or accept warnings without turning
them into user questions. Never make the user read or edit the plan. Use
scripts/scaffold_pipeline.py only as a base for selected local files, then add
the source-specific runtime. Render the single review with
scripts/render_pipeline_review.py.
Follow references/security-and-approvals.md. Existing authorization remains
valid for the same material effects. One approval covers the reviewed
setup while project, source scope, data egress, destructive effects, and paid
processing remain unchanged. Implementation details and harmless local files
do not invalidate it. Credentials are always local environment-variable values; inspect
presence with scripts/check_env.py, never their contents.
Use scripts/update_agent_instructions.py to add an idempotent managed block to
the relevant AGENTS.md or equivalent file. Preserve all user-authored text.
Prepare a preview before approval. Modify the active instruction file only
after the consolidated review is approved. The block may contain capture,
recall, or both according to the selected integration. It must name each
selected command, say what is safe to store, describe the selected timing, and
state the real guarantee.
Agent instructions are guidance. For guaranteed or retryable capture, also wire and test an application hook, wrapper, outbox, worker, or equivalent runtime. Never store system instructions, retrieved context, credentials, attachments, or tool/environment output unless the user explicitly selected and approved that content.
First prove the selected vertical slice: safe normalization, rejection before egress, idempotent write when applicable, ownership filtering, provenance, and one useful retrieval result. Verify graph or Context readiness only when enabled. Then test update, deletion, retry, resume, reconciliation, and agent integration only when those capabilities were selected.
Report operational, partial, or blocked from observed evidence. Name
omitted components as intentionally not selected, not missing. Do not claim
remote setup, continuous capture, or retrieval works when only local files were
generated.
agents/openai.yaml (opens in a new tab)assets/embedding-models.json (opens in a new tab)assets/python-pipeline/checkpoint_ledger.py (opens in a new tab)assets/python-pipeline/local_embeddings.py (opens in a new tab)references/context-and-retrieval.md (opens in a new tab)references/embedding-model-selection.md (opens in a new tab)references/guided-interview.md (opens in a new tab)references/mcp-agent-memory.md (opens in a new tab)references/mcp-dataset-import.md (opens in a new tab)references/mcp-project-setup.md (opens in a new tab)references/mcp-rag-pipeline.md (opens in a new tab)references/mcp-tool-contract.md (opens in a new tab)references/pipeline-plan-contract.md (opens in a new tab)references/pipeline-runtime.md (opens in a new tab)references/schema-and-graph.md (opens in a new tab)references/security-and-approvals.md (opens in a new tab)references/source-chat-agents.md (opens in a new tab)references/source-databases.md (opens in a new tab)references/source-files-and-apis.md (opens in a new tab)references/synced-projects.md (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-cliUse available Polygres MCP tools or the Polygres CLI to authenticate, operate standard or synchronized projects, import data, apply migrations, configure retrieval, manage Runtime keys and durable operations, and check readiness. Use the CLI for explicit command-line work and as the documented fallback for operations outside the MCP catalog./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-sdkOther plugins' skills for the same job