Pipeline composition

From VectorSpaceLab/AREX-Skill · View interactive version

Pipeline composition is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Build, edit, validate, seed, and debug Albumentations augmentation pipelines with Compose and composition combinators.

How to use this skill

Skill file

Albumentations Pipeline Composition

Use this sub-skill when an agent needs to assemble or modify an Albumentations pipeline, reason about pipeline-level validation, or debug pipeline randomness and target routing.

Route Here For

Route Elsewhere

References And Helpers

Default Composition Pattern

Prefer an explicit, strict top-level Compose while developing, then relax only the checks that are intentionally incompatible with the data:

import albumentations as A

pipeline = A.Compose(
    [
        A.Resize(256, 256, p=1),
        A.OneOf([A.HorizontalFlip(p=1), A.VerticalFlip(p=1)], p=0.5),
    ],
    additional_targets={"depth": "mask"},
    is_check_shapes=True,
    strict=True,
    mask_interpolation=0,
    seed=137,
    save_applied_params=True,
)
result = pipeline(image=image, mask=mask, depth=depth)

Keep Compose calls keyword-only: use pipeline(image=image, mask=mask), not pipeline(image).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.