data-ingestion-structured

data-ingestion-structured is a skill for Claude Code, Codex from ibm-self-serve-assets/building-blocks. It costs 77 tokens per session (1,326 once invoked), scanned B, original, Apache-2.0.

A guide for moving structured data from databases into IBM watsonx.data, IBM’s cloud data platform, where it can be stored in Iceberg tables. It covers batch loads, incremental loads and CDC, which means copying database changes as they happen.

In plain words
What is it for?
Use it to ingest data from Db2, PostgreSQL, MySQL or Oracle through IBM DataStage, StreamSets or IBM Data Replication, including batch, streaming and log-based change capture.
Why use it?
It removes much of the design work for connecting databases and managing authentication, staging and schema changes. It also helps choose the appropriate connector and loading pattern for each source.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to ingest data from Db2, PostgreSQL, MySQL or Oracle through IBM DataStage, StreamSets or IBM Data Replication, including batch, streaming and log-based change capture.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ibm-self-serve-assets/building-blocks/data-ingestion-structured
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 ibm-self-serve-assets/building-blocks --skill data-ingestion-structured
Clone the repo
git clone --depth 1 https://github.com/ibm-self-serve-assets/building-blocks

Made for: Claude Code, Codex.

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 data-ingestion-structured

README.md
[![agentmods](https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/data-ingestion-structured/github.svg)](https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/data-ingestion-structured)
Your own site
<a href="https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/data-ingestion-structured"><img src="https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/data-ingestion-structured/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 data-ingestion-structured

Your own site · 80×15
<a href="https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/data-ingestion-structured"><img src="https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/data-ingestion-structured.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,326 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00077 $0.01326
Opus 5 $0.00039 $0.00663
Sonnet 5 $0.00015 $0.00265
Haiku 4.5 $0.00008 $0.00133

Measured 10d ago against content hash afb5afdcb724, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

data-ingestion-structured scanned grade B with 2 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 10d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

resp = requests.post("https://iam.cloud.ibm.com/identity/token",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

resp = requests.post("https://iam.cloud.ibm.com/identity/token",
ibm-bob/skills/data-ingestion-structured/SKILL.md · 135 lines

How it starts

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

IBM watsonx.data Structured Data Ingestion Builder

Purpose

Expert guidance for building structured data ingestion pipelines that move data from RDBMS sources into IBM watsonx.data (Iceberg tables) using IBM DataStage, StreamSets, and IBM Data Replication. Generates production-ready code following IBM building-blocks conventions.

IBM Cloud Product Coverage

IBM Cloud Product Usage
IBM watsonx.data Target: Iceberg tables via Presto; source metadata via REST API
IBM DataStage Pipeline design: batch/streaming/replication jobs
IBM Data Replication (CDC) Log-based Change Data Capture from Db2, PostgreSQL, Oracle
IBM Cloud IAM POST /identity/token (apikey grant)
IBM Cloud Object Storage Staging area for batch file loads

Rules

  • Always generate IAM auth with IAMTokenManager (5-minute buffer)
  • IBM watsonx.data API base: https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2
  • For DataStage jobs: use IBM DataStage on Cloud REST API (/v3/data_intg_flows)
  • CDC uses IBM Data Replication — source connector must match DB type (db2, postgresql, oracle, mysql)
  • Staging to COS uses HMAC credentials for bulk loads
  • Schema evolution: detect added/dropped columns via schema comparison before load

Scope

  • IBM Db2 (on-prem and IBM Cloud) batch, incremental, and CDC ingestion
  • PostgreSQL, MySQL, Oracle, MS SQL Server connectors
  • IBM DataStage batch job generation (Sequence jobs, Parallel jobs)
  • IBM StreamSets pipeline configuration for real-time ingestion
  • IBM Data Replication CDC log-mining setup
  • Schema mapping to Iceberg data types
  • Error handling, retry logic, and dead-letter patterns

Procedure

Phase 1: IAM Authentication

class IAMTokenManager:
    def get_token(self) -> str:
        if not self._token or time.time() >= self._expiry:
            self._refresh()
        return self._token

    def _refresh(self) -> None:
        resp = requests.post("https://iam.cloud.ibm.com/identity/token",
            headers={"Content-Type": "application/x-www-form-urlencoded"},
            data={"grant_type": "urn:ibm:params:oauth:grant-type:apikey", "apikey": self._api_key},
            timeout=30)
        resp.raise_for_status()
        body = resp.json()
        self._token, self._expiry = body["access_token"], time.time() + int(body.get("expires_in", 3600)) - 300

Read the full file on GitHub · 135 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. 10d ago First seen · 135 lines · 77 tokens per session scan B afb5afdcb724

Subscribe to this mod's changes

data-ingestion-structured is a skill published in the GitHub repository ibm-self-serve-assets/building-blocks (24 stars, last pushed yesterday), licensed Apache-2.0. It adds 77 tokens to every session and 1,326 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pinecone

Managed vector DB for production RAG and search.

NousResearch/hermes-agent · 13 tokens

data-engineer

Build scalable data pipelines, modern data warehouses, and real-time streaming architectures. Implements Apache Spark, dbt, Airflow, and cloud-native data platforms.

davila7/claude-code-templates · 35 tokens

graphjin-env

Use when setting up a training or evaluation loop against a GraphJin agent environment — running the container, reading /health, driving episodes hosted or step-by-step or with your own agent over MCP, splitting train from eval, exporting trajectories, and deciding whether two rewards can be compared.

dosco/graphjin · 61 tokens

ingesting-into-data-lake

Import data into the AWS data lake from S3 files, local uploads, JDBC databases (Oracle, SQL Server, PostgreSQL, MySQL, RDS, Aurora), Amazon Redshift, Snowflake, BigQuery, DynamoDB, or existing Glue catalog tables (migration). Default target is S3 Tables; standard Iceberg on a general purpose bucket is supported where…

aws/agent-toolkit-for-aws · 228 tokens

similarity-search-patterns

Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval performance.

foryourhealth111-pixel/Vibe-Skills · 30 tokens

nornicdb-qdrant-migration

Migrate from Qdrant to NornicDB end-to-end through NornicDB's Qdrant-compatible gRPC surface. Covers connection setup, collection→database mapping, point→node mapping, the vector-config and named-vector replication, point upsert in batches, count verification, and what (deliberately) does not transfer (snapshots, HNSW…

orneryd/NornicDB · 101 tokens