# Popsink skills: run data pipelines from an AI agent Source: https://popsink.ai/ · Last updated: 2026-11-18 ## What are Popsink skills? Popsink skills are open-source Agent Skills (Apache-2.0) that teach an AI coding agent how to operate a Popsink data plane. With the popsink-api skill installed, an agent such as Claude Code authenticates with an organization API key, reads the live OpenAPI schema, then builds, monitors, pauses or resyncs replication pipelines, asking for confirmation before any change. ## How does an AI agent run a Popsink pipeline? Your agent calls the Popsink API with your key, so you never open the console. ### The example on the page User: Connect MongoDB to Snowflake. Agent: Using the popsink-api skill. Here is the plan, nothing is created yet: - A MongoDB source - A Snowflake target - One subscription per collection Proceed? User: Yes. Agent: Done. The pipeline is live and streaming into Snowflake. ## A worked run, call by call: Oracle to Snowflake The agent discovers the API, checks both connections, proposes a plan, waits for your yes, creates the pipeline, then confirms every table is live. ### The prompt Connect our Oracle ERP database to Snowflake. Replicate SALES.ORDERS, SALES.ORDER_LINES and SALES.CUSTOMERS with change data capture into ANALYTICS.RAW_ERP, loading through the LOAD_WH warehouse. Credentials are in my secret manager under data/oracle-erp and data/snowflake-loader. Credential checks and table listings are pre-approved. Show me the plan and wait for my OK before you create anything. Once it runs, confirm every table is live. ### The agent run Agent: Using the popsink-api skill. First, which instance and environment am I on? Agent step: Find my instance and environment $ popsink GET /users/me principal: organization API key active environment: analytics · role admin Agent step: Read the live API schema $ curl -sS "$POPSINK_URL/api/openapi.json" | jq '.paths | keys' /oracle-source/* /snowflake-target/* /connectors/ /subscriptions/ found Agent step: Check Oracle credentials $ POPSINK_ALLOW_WRITE=1 popsink POST /oracle-source/check-credentials - (body piped from data/oracle-erp, never echoed · pre-approved) ✓ Oracle credentials valid Agent step: List the SALES tables $ POPSINK_ALLOW_WRITE=1 popsink POST /oracle-source/list-tables - ✓ SALES.ORDERS ✓ SALES.ORDER_LINES ✓ SALES.CUSTOMERS Agent step: Check Snowflake credentials $ POPSINK_ALLOW_WRITE=1 popsink POST /snowflake-target/check-credentials - (body piped from data/snowflake-loader, never echoed) ✓ Snowflake credentials valid Agent step: Find the LOAD_WH warehouse $ POPSINK_ALLOW_WRITE=1 popsink POST /snowflake-target/warehouses - ✓ LOAD_WH available Agent: Both sides check out. Here is the plan. Nothing has been created yet. 1. Source connector oracle-erp: Oracle, change data capture on the 3 SALES tables 2. Target connector snowflake-raw-erp: ANALYTICS.RAW_ERP through LOAD_WH 3. 3 subscriptions, one per table: initial snapshot, then continuous changes 4. Start the source connector, then check every datamodel and subscription Proceed? User: Yes, go. Agent step: Create the Oracle source $ POPSINK_ALLOW_WRITE=1 popsink POST /connectors/ - ✓ source connector oracle-erp created Agent step: Create the Snowflake target $ POPSINK_ALLOW_WRITE=1 popsink POST /connectors/ - ✓ target connector snowflake-raw-erp created Agent step: Subscribe the 3 tables $ POPSINK_ALLOW_WRITE=1 popsink POST /subscriptions/ - ×3 ✓ ORDERS → RAW_ERP.ORDERS ✓ ORDER_LINES → RAW_ERP.ORDER_LINES ✓ CUSTOMERS → RAW_ERP.CUSTOMERS Agent step: Start the source $ POPSINK_ALLOW_WRITE=1 popsink POST /connectors//start ✓ source worker started Agent step: Read datamodel states $ popsink GET "/datamodels/?env=$ENV&size=100" ORDERS live ORDER_LINES live CUSTOMERS live Agent step: Read subscription states $ popsink GET "/subscriptions/statuses?…" 3 / 3 subscriptions active Agent: Done. ORDERS, ORDER_LINES and CUSTOMERS are live: the initial snapshot is loading into ANALYTICS.RAW_ERP and new changes stream right behind it. Ask me “is anything lagging?” any time. ## How do I connect a database to Snowflake with an AI agent? Install the popsink-api skill, give your agent a Popsink URL and an organization API key, then ask in plain English, for example “Connect MongoDB to Snowflake”. The agent proposes a plan, waits for your OK, then creates the source, the Snowflake target and the subscriptions through the Popsink API. 1. Install the skill: Clone Popsink/public-skills and symlink skills/popsink-api into ~/.claude/skills, or into a project’s .claude/skills. A git pull then updates it. ```bash git clone https://github.com/Popsink/public-skills.git ~/src/popsink-public-skills ln -sfn ~/src/popsink-public-skills/skills/popsink-api ~/.claude/skills/popsink-api ``` 2. Create an organization API key: In the Popsink control plane, open Dashboard → API keys → Create. Grant it only the environments the agent may use, as admin or user. The key starts with psk_ and is shown once. 3. Point the agent at your instance: Export the instance URL and read the key without echoing it, so it never lands in your shell history. ```bash export POPSINK_URL="https://..popsink.com" read -rs POPSINK_API_KEY && export POPSINK_API_KEY # prompts, echoes nothing ``` 4. Ask in plain English: Name the source, the tables, the Snowflake database, schema and warehouse, and what the agent may run without asking. 5. Review the plan and confirm: The agent proposes the connectors and subscriptions it will create, and waits for your OK. 6. Let it verify: After creating and starting the pipeline, the agent reads datamodel and subscription statuses and reports when every table is live. Before proposing the plan, the agent checks credentials and lists tables on the sources whose API offers it (Oracle, SQL Server, PostgreSQL, MySQL, IBM i, Kafka, Salesforce, HubSpot, BigQuery, Snowflake and a few more in the skill’s API map) and on the Snowflake target. MongoDB has no such endpoint there. ## What can a data engineer ask the agent? Anything the Popsink API exposes: build a pipeline, find what is broken, read throughput metrics, pull connector logs, pause or restart a delivery, resync a table, or clean up an old pipeline. Read-only questions run straight away. Anything that changes state is confirmed with you first. - "Is anything broken in the analytics environment?" (read-only): Lists datamodels in error, counts them by status, and pulls the logs of the connectors involved. Calls: GET /datamodels/?state=error, GET /datamodels/count-status, GET /connectors/{id}/logs. - "How many rows did the ORDERS pipeline move in the last 24 hours?" (read-only): Reads CDC production metrics by operation (insert, update, delete, snapshot read) and per-subscription consumption. Calls: GET /workers/production-metrics, GET /workers/consumption-metrics. - "CUSTOMERS missed a backfill. Resync it from Oracle." (asks before acting): Checks the current sync status, explains the cost on the source and the warehouse, then starts the sync once you agree. Calls: GET /connectors/{id}/sync, POST /datamodels/{id}/sync. - "Pause the Snowflake delivery during tonight’s maintenance window." (asks before acting): Warns that lag accumulates while paused, pauses the subscription on your OK, and restarts it when you say so. Calls: POST /subscriptions/{id}/pause, POST /subscriptions/{id}/start. - "Delete the old test pipeline, and tell me what it drops in Snowflake first." (asks before acting): Lists the warehouse objects a deletion would drop, shows them to you, and only then deletes. Calls: GET /subscriptions/{id}/target-objects, DELETE /subscriptions/{id}. - "Why is the IBM i connector restarting?" (read-only): Reads the worker status snapshot and the connector logs, narrowed to the failing datamodels. Calls: GET /workers/resource/{id}/status, GET /connectors/{id}/logs?filter_ids=…. ## Is it safe to let an AI agent operate production pipelines? The skill is built for it. Its helper refuses every call except GET and HEAD unless POPSINK_ALLOW_WRITE=1 is set on the one command you just approved. The API key is never echoed or written to disk, connector credentials come back redacted, and tokens expire after 10 minutes with no refresh token. - Read-only unless you say so: The popsink helper refuses anything but GET and HEAD unless POPSINK_ALLOW_WRITE=1 is set, and the skill tells the agent to set it on the single command you just confirmed, not for the session. - A yes before every change: Deletes, stops, pauses, syncs, replays, snapshots and config patches are each announced with the resource they touch and wait for an explicit yes. One question is a read pass, not a licence to restart workers. - Secrets stay secret: The API key is read with read -rs or from your secret manager, never echoed, logged or committed. Request bodies go through stdin, not the command line. Connector credentials come back as "". - Short-lived, scoped tokens: An API key is granted chosen environments with an admin or user role. It is exchanged for a bearer token that lasts 10 minutes, with no refresh token, so a revoked key stops working fast. - HTTPS only: The key travels in the body of every token exchange, so the helper refuses a plaintext http:// instance unless POPSINK_ALLOW_INSECURE=1 says so out loud. - The live schema wins: The agent reads the instance’s own OpenAPI schema before calling, instead of trusting a snapshot or its memory. A 422 means re-read the schema, not guess. ## Which sources and targets can the agent connect? The ones Popsink supports: change data capture from Oracle, SQL Server, PostgreSQL, MySQL, MariaDB, IBM Db2, IBM i and MongoDB; Apache Kafka; scheduled batch extracts and files; SaaS sources such as Salesforce and HubSpot; and delivery to Snowflake, BigQuery, Databricks Unity Catalog, Apache Iceberg, Kafka, PostgreSQL, SQL Server, Oracle, Elasticsearch and webhooks. - Sources, Databases, change data capture: Oracle, SQL Server, SQL Server (transaction log), SQL Server (Change Tracking), PostgreSQL, MySQL, MariaDB, IBM Db2, IBM i (AS/400), MongoDB - Sources, Streams, batch extracts and files: Apache Kafka, Oracle, SQL Server, PostgreSQL, MySQL, IBM Db2, IBM i, Files on S3, GCS, Azure, SFTP, REST APIs - Sources, SaaS and warehouses: Salesforce, HubSpot, Zendesk, Shopify, Pipedrive, Google Ads, Facebook Ads, SharePoint, Snowflake, BigQuery - Targets: Snowflake, BigQuery, Databricks Unity Catalog, Apache Iceberg, Apache Kafka, PostgreSQL, SQL Server, Oracle, Elasticsearch, HubSpot, Webhook ## Which Popsink skills are available? One skill is public today: popsink-api. It drives a Popsink deployment through its REST API: connectors, datamodels, subscriptions, status, logs and metrics. It lives in the Popsink/public-skills repository on GitHub under the Apache-2.0 license, and installs with a git clone and a symlink. ## FAQ ### What is Popsink? Popsink is a data replication platform for mission-critical systems. It streams changes from databases, ERPs and SaaS applications to warehouses, lakes and event streams with change data capture (CDC), and runs as SaaS, in your own cloud, on-premise or air-gapped. The product lives at www.popsink.com. ### Which AI agents can use Popsink skills? Any agent that loads skills in the SKILL.md format, such as Claude Code. A skill is a folder holding a SKILL.md file, reference notes and a small Bash helper that needs curl and jq, so an agent that can read files and run shell commands can follow it. ### Are Popsink skills free? Yes. The skills are open source under the Apache-2.0 license. To drive a pipeline you need access to a Popsink deployment and an organization API key. ### What do I need before I start? A Popsink instance URL, an organization API key created in the control plane (Dashboard → API keys → Create), curl and jq on your machine, and an agent that supports skills. ### Can the agent create pipelines, or only read them? Both. Reads such as listing connectors, logs or metrics run immediately. Creating connectors and subscriptions, and starting, stopping, pausing, resyncing or deleting them all change state, so the agent asks first, and the helper blocks them unless POPSINK_ALLOW_WRITE=1 is set for that one command. ### Does the agent see my data or my credentials? The agent sees what it asks the API for: pipeline configuration, statuses, metrics and logs. Connector credentials are redacted on the normal read endpoints, and the skill tells the agent to keep the API key out of output, files and commits, and to avoid the two worker endpoints that return credentials in clear. ### How do I install the popsink-api skill? Clone https://github.com/Popsink/public-skills and symlink skills/popsink-api into ~/.claude/skills (or a project’s .claude/skills). Symlinking rather than copying means a git pull updates the skill. ### How is popsink.ai related to popsink.com? popsink.ai shows how to drive Popsink from an AI agent with the open-source Popsink skills. The product, pricing, documentation and company live at www.popsink.com.