---
name: scaffolding-and-testing-modular-data-pipelines
description: "Refactors exploratory data scripts into modular pipeline nodes, checks dataset dependencies and graph integrity, and runs linting and test suites. Use when submitting pipeline code for validation and packaging."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Terminal, Slack."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/scaffolding-and-testing-modular-data-pipelines/"
  kind: skill
  hermes:
    tags: ["data-engineering", "pipelines", "testing", "python"]
    category: ops
    requires_toolsets: ["terminal", "connections"]
---
# Scaffolding and testing modular data pipelines

Turn raw analysis scripts into modular data pipelines with automated dependency checks and tests

## When to use

Restructure exploratory analysis scripts and notebooks into maintainable, modular pipeline nodes. Validate input-output data catalogs, verify task dependency resolution, run test suites, and package pipelines for deployment across distributed execution environments.

## Inputs

- `pipeline_code`: Data processing scripts or notebooks submitted for refactoring into modular pipeline nodes.
- `pipeline_configuration` (optional): Pipeline configuration files that define tasks and dependencies for the submitted pipeline.
- `data_catalog` (optional): Input-output data catalog definitions used to validate dataset dependencies and graph integrity.

## Steps

1. When you ask: Receive pipeline code (A person submits pipeline code or configuration in chat for refactoring and testing.)
2. Run tests and dependency checks
3. Draft modular pull request

## Instructions

Inspect newly submitted data processing scripts or pipeline configurations. Map dataset dependencies, verify graph integrity, and execute linting and test suites via the terminal. When refactoring is complete, prepare the modular code and catalog definitions, but always wait for user approval before creating pull requests, merging changes, or sending notifications.

## Approvals

- Creating pull requests must wait for user approval.
- Merging changes must wait for user approval.
- Sending notifications must wait for user approval.

## Output

Draft modular pipeline code and catalog definitions prepared for review before pull request creation. (format: pull_request)

## Source

Summarized in our own words from [kedro: Kedro is a toolbox for production-ready data science. It uses software engineering best practices to help you create data engineering](https://github.com/kedro-org/kedro) (GitHub, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/scaffolding-and-testing-modular-data-pipelines/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
