agentleFS
vaquarkhanvaquarkhan/data-engineering-agent-skills/skills/python-data-engineering-and-pipeline-packaging/SKILL.md

python-data-engineering-and-pipeline-packaging

Skill49 starsChanged 6 months agoMITView on GitHub

Guides agents through Python-based data engineering implementation. Use when building or modifying Python ingestion jobs, orchestration helpers, PySpark entry points, validation code, packaging, dependency management, or operational CLI workflows.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when Python is the main implementation language for data pipelines or operational data tooling.

    line 10
  2. Distinctive:

    Do not treat a working script as a production design just because it runs once.

    line 20
  3. Distinctive:

    Keep runtime boundaries explicit.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Python Data Engineering And Pipeline Packaging

Overview

Use this skill when Python is the main implementation language for data pipelines or operational data tooling. It helps agents structure jobs as maintainable packages instead of loose scripts, choose the right execution boundary, manage dependencies explicitly, and keep runtime behavior testable and production-safe.

When to Use

  • building or modifying Python data pipelines
  • packaging PySpark, ingestion, validation, or orchestration helper code
  • moving from notebooks or scripts into production-ready modules
  • managing dependency, environment, and runtime issues in Python
  • adding CLI entry points, test harnesses, or local development workflows

Do not treat a working script as a production design just because it runs once.

Workflow

  1. Define the role of the Python code. Clarify whether it is:
    • a single-node transform
    • a PySpark job entry point
    • an orchestration helper
    • a validation or reconciliation tool
    • an integration or extraction service
  2. Package logic into explicit modules. Prefer:
    • versioned packages
    • reusable modules
    • clear CLI or job entry points
    • isolated configuration
    • minimal hidden global state
  3. Make dependency management real. Define:
    • environment model
    • pinned dependency strategy
    • native or system dependency assumptions
    • compatibility with runtime platforms such as Airflow, Spark, or container images
  4. Keep runtime boundaries explicit. Decide:
    • what runs locally versus distributed
    • what belongs in orchestration versus the job package
    • how configuration, secrets, and environment values are supplied
    • how logs, retries, and exits behave operationally
  5. Prove the package is maintainable. Require:
    • targeted tests
    • representative input cases
    • type or interface clarity where useful
    • reproducible local execution

Common Rationalizations

RationalizationReality
"It is only a small Python script."Small scripts often become critical pipeline entry points with no packaging or test discipline.
"We can keep the business logic in the DAG or notebook."Hidden logic in orchestration or notebook state becomes hard to test, reuse, and debug.
"Requirements are enough documentation."Dependency files do not explain runtime assumptions, entry points, or platform compatibility.

Red Flags

  • pipeline logic lives mostly in one script with no reusable module structure
  • notebooks, DAGs, and job code duplicate the same transformation logic
  • dependency versions are implicit or environment-specific
  • local runs and deployed runs behave differently with no explanation
  • secrets or environment assumptions are embedded in code

Verification

  • The Python code has a clear package and entry-point shape
  • Runtime, dependency, and environment assumptions are explicit
  • Orchestration code and business logic are separated
  • Tests or reproducible execution paths exist for the important logic

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.