/ibm-agentic-data-integration:di-agent-flow-datastagefrom IBM Agentic Data Integration
Reference for the verbose watsonx.data integration SDK for DataStage (batch) flows, with exhaustive stage and property access — the full engine stage catalog. Load this only after the di-agent-flow-lifecycle router has selected the datastage-sdk authoring backend — this is a syntax and stage reference, not a decision about whether to use it. If you have not routed yet, load di-agent-flow-lifecycle instead.
Ships in IBM Agentic Data Integration. 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.
Routing lives elsewhere. Whether a request should be authored here or in pyflow, and whether it is a create or an edit, is decided by the
di-agent-flow-lifecycleskill (AUTHOR state). This file is the SDK reference and the mechanics of using it. Before working with flows, you must fully understand thedi-agent-flow-lifecycleskill. Do not write any SDK code before loading the lifecycle skills.
DataStage batch flows are written as SDK-style Python code and submitted via update_datastage_flow (edit an existing flow in place) or create_datastage_flow (create a new one). Auth, project context, and persistence are handled automatically.
The SDK reaches the whole engine stage catalog, including everything pyflow has no form for. That reach is also its cost: it needs exact stage types, property names, and enum values, which is why the router treats it as the escape hatch rather than the default.
Both tools compile the flow as part of the call. If it does not compile, the result comes back with status: "compile_error" plus flow_id, flow_link, and a per-stage compile_errors list — and the flow is still saved. Fix it with update_datastage_flow on that same flow_id. Never create a new flow and never delete the broken one; the id is what you edit against.
recommend_datastage_stages(subutterances=[...])datastage_property_lookup(requests=[{"stage": "..."}])di-agent-knowledge-engine-datastage skill stages/di-agent-knowledge-engine-datastage skill optimization/overview.mddi-agent-knowledge-engine-datastage skill resource stages/TransformerStageFunctions/TransformerStageFunctionsOverview.mdEditing an existing flow: In-place SDK edit is the right tool when the change is confined to expressions or stage properties on structure that already exists — retrieve the flow with retrieve_datastage_flow_code, change that SDK, and resubmit via update_datastage_flow. You are perturbing validated, already-wired code, so this is reliable, lossless, and cheap.
Edit the retrieved code — never hand-author a fragment. Your
update_datastage_flowsubmission must be the complete SDK returned byretrieve_datastage_flow_codewith your additions spliced in, not a standalone snippet. Every stage, link, and schema you reference must be defined as a variable earlier in the same submission (the retrieved code already defines them —derive_seg,veh_in,fp, etc. — so reuse those variable names). The flattened SDK grammar has no way to fetch existing elements:flow.links["x"],flow.stages["y"], andlink.schemaare all rejected as "Unsupported statement type" / "variable does not exist". To add a column to an existing link, edit that link's existingcreate_schema()/add_field(...)lines in the retrieved code; to add structure, append newflow.add_stage(...)/stage.connect_output_to(...)/link.create_schema()statements that reference the already-defined variables. If a submission fails validation, fix the whole resubmitted code; do not re-fetch elements or re-author from scratch.
If the change instead adds or alters structure — a new source, a join, a different shape — do NOT hand-author it here from scratch; that is the SDK's least reliable path. Bootstrap the new structure in pyflow (di-agent-flow-pyflow), then precision-edit the generated SDK here to add anything pyflow can't express. If the core shape has no faithful pyflow form, bootstrap the closest shape pyflow can produce and reshape it here via update_datastage_flow.
Versioning and backups are owned by the lifecycle router's RECOVER state (di-agent-flow-lifecycle/references/recover.md). The short version: update_datastage_flow snapshots the flow automatically before it overwrites — you do not call duplicate_asset first, and doing so just leaves a stray copy. Up to 5 snapshots are kept per flow (the oldest is never discarded), they are hidden from list_datastage_flows by default, and they are deleted along with the flow.
flow_id — retrieve_datastage_flow_code also accepts flow_name, but that path takes the first name-search match without checking it is unique, so an ambiguous name silently returns another flow's coderecommend_datastage_stages / datastage_property_lookupupdate_datastage_flow never creates — it errors if the named flow doesn't exist; verify the name via list_datastage_flows. To create, use create_datastage_flow (or pyflow) — see the lifecycle router for whichflow_link from the tool result as a clickable link so the user can open the flow in the UIUser friendly name from datastage_property_lookup (e.g. "Number of rows (per partition)"), not the internal identifier (nrecs); show the internal name only in code blocks or when the user asks for the SDK propertyupdate_datastage_flow loads the existing flow before rebuilding it, so parameter-set registrations and local parameters are preserved across SDK edits. If a job unexpectedly loses parameter bindings after an edit, call get_flow_parameter_references to audit what is registered and use attach_parameter_set_to_flow / add_local_parameter to restore any missing entries.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ibm/ibm-watsonx-data-integration-skills --plugin ibm-agentic-data-integration7 skills in this plugin
/di-agent-bug-reportGenerates a Markdown bug report for an IBM watsonx.data integration session. User can invoke directly. The agent MUST propose it (and must wait for explicit acceptance) after 3 or more consecutive calls to the same tool or the same sequence of tools result in a failure or the same error. Skip for non-watsonx.data integration sessions./di-agent-datastage-investigationDeep investigation of a failed run of a DataStage job already in operation — a scheduled or production job, or any job whose failure the user asks you to investigate. Works end-to-end from MCP tools: logs, job config, flow structure, connection health. Produces a root-cause diagnosis, not a fix. NOT for a run that failed while a flow was being built or edited — those are handled by the di-agent-flow-lifecycle skill, which runs its own investigation and loads this one only when a production-depth analysis is needed./di-agent-flow-lifecycleEntry point for ALL flow work in watsonx.data integration — creating, editing, running, diagnosing a failed run, or backing up/restoring a flow. Load this FIRST whenever a request touches a data flow. It gathers intent — including which engine the flow runs on — routes to exactly one lifecycle state, and applies a fixed precedence order so routing is consistent run to run./di-agent-flow-pyflowAPI spec for pyflow, IBM's LLM-optimized Python DSL for authoring DataStage and StreamSets flows. Its compact surface and compile-time validation offer context efficiency, fast feedback, and correctness guarantees. Load this only after the di-agent-flow-lifecycle router has selected the pyflow authoring backend — this is a language reference, not a decision about whether to use it. If you have not routed yet, load di-agent-flow-lifecycle instead./di-agent-knowledge-engine-datastageQ&A reference for the DataStage parallel engine — parallelism, partitioning theory, APT configuration files, concurrent job execution, restart/recovery, disk/resource tuning, dataset performance, flow optimization (partitioning/sorting/memory), and per-stage semantics. Use for conceptual engine questions and stage property lookups regardless of authoring tool./di-agent-parameter-setsGuide for creating, editing, and using parameter sets (paramsets) in IBM watsonx.data integration. Covers parameter types, value sets, PROJDEF, local parameters, runtime parameters, flow parameters, #param# and ${param} reference syntax for both DataStage (batch) and StreamSets (streaming) flows, and parameterizing connection properties with external parameter sets. Use when the user wants to create, list, update, or delete parameter sets; manage value sets; attach parameter sets to flows or connections; parameterize connection properties; or reference parameters inside a flow or connection.