Skip to content
Back to skills

Pipeline Composition

ASecurity

"Build, edit, validate, seed, and debug Albumentations augmentation

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
code-qualitypythondebuggingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill pipeline-composition --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pipeline Composition?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pipeline Composition
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-pipeline-composition/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-pipeline-composition)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pipeline-composition
description: "Build, edit, validate, seed, and debug Albumentations augmentation
  pipelines with Compose and composition combinators."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# 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

- Building `A.Compose` / `A.ReplayCompose` pipelines around existing transforms.
- Choosing composition blocks: `OneOf`, `SomeOf`, `RandomOrder`, `Sequential`, `OneOrOther`, and `SelectiveChannelTransform`.
- Enabling `strict`, `is_check_shapes`, `additional_targets`, `mask_interpolation`, `seed`, or `save_applied_params` on a pipeline.
- Editing a pipeline with `+`, left-`+`, or `-` while preserving compose configuration.
- Debugging invalid keys, shape mismatches, bad operator operands, seed expectations, label-field routing, or mask interpolation surprises.

## Route Elsewhere

- Transform family choice and transform parameter recipes: `../transform-catalog/`.
- Bbox, keypoint, label, volume, and 3D target formats: `../targets-and-formats/`.
- Replay dictionaries, save/load, JSON/YAML, and reproducibility artifacts: `../serialization-and-reproducibility/`.
- Tensor conversion and dataloader placement: `../framework-integration/`.

## References And Helpers

- `references/composition-api.md`: API signatures, composition semantics, validation options, seed behavior, target routing, operator edits, and worked examples.
- `references/troubleshooting.md`: Symptom-driven fixes for invalid keys, mismatched shapes, single-transform warnings, missing labels, seed confusion, operator failures, and mask interpolation issues.
- `scripts/check_pipeline_contract.py`: A tiny self-contained checker that exercises strict keys, shape checks, additional depth targets, mask interpolation propagation, operator metadata preservation, and seed independence from global NumPy seeding.

## Default Composition Pattern

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

```python
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)`.

Files in this skill

  • SKILL.md2.7 KB
  • references/composition-api.md10.7 KB
  • references/troubleshooting.md7.7 KB
  • scripts/check_pipeline_contract.py5.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.