Full checklist for adding a new transform to AlbumentationsX.

AGPL-3.0Auto-check passedAI & LLM Engineering

Install Add Transform

skills CLI
$ npx skills add albumentations-team/AlbumentationsX --skill add-transform -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install albumentations-team/AlbumentationsX add-transform --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/add-transform .claude/skills/add-transform && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-transform
GitHub stars
567
Token cost
~1.7k tokens
SKILL.md length
783 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Full checklist for adding a new transform to AlbumentationsX.

  • Works in 7 steps: Choose the right module → Functional layer first → Write the transform class → …
  • The user asks to add
  • SKILL.md covers 1. Choose the right module, 2. Functional layer first, 3. Write the transform class and 4. Add batch optimization…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Add Transform is an agent skill from albumentations-team/AlbumentationsX. Full checklist for adding a new transform to AlbumentationsX. Use when the user asks to add, implement, or create a new transform/augmentation.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Computer vision and Deep learning. The repository describes itself as: Image augmentation for computer vision. AGPL-3.0-only or commercial licensing. The licence is AGPL-3.0.

When your agent uses it

  • The user asks to add
  • Create a new transform/augmentation

Example prompts

  • “/add-transform”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Choose the right module
  2. Functional layer first
  3. Write the transform class
  4. Add batch optimization (apply_to_images)
  5. Export the transform
  6. Write tests
  7. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit 1458043. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Transform loads about 1.7k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 783 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from albumentations-team/AlbumentationsX at commit 1458043, republished under its AGPL-3.0 licence (© albumentations-team). 783 words, ~1,681 tokens.

Download SKILL.mdSave it as .claude/skills/add-transform/SKILL.md (or your agent's skills folder).
name
add-transform
description
Full checklist for adding a new transform to AlbumentationsX. Use when the user asks to add, implement, or create a new transform/augmentation.

Add Transform

Use this workflow for architectural choices and coverage. Pre-commit owns fixed API and style conventions; read its diagnostic instead of maintaining a parallel checklist here.

1. Choose the right module

Put the transform in the most specific matching subpackage:

  • albumentations/augmentations/geometric/ — spatial transforms (flip, rotate, warp, etc.)
  • albumentations/augmentations/pixel/ — pixel-level (color, brightness, noise, etc.)
  • albumentations/augmentations/dropout/ — masking/dropout
  • albumentations/augmentations/blur/ — blurring
  • albumentations/augmentations/crops/ — cropping
  • albumentations/augmentations/mixing/ — multi-image mixing
  • albumentations/augmentations/medical/ — medical acquisition artifacts and histology stain transforms
  • albumentations/augmentations/transforms3d/ — 3D/volume
  • albumentations/augmentations/other/ — everything else

2. Functional layer first

Read ../performance-optimization/SKILL.md and its required reference completely before implementing the functional kernel.

Implement the operation in the corresponding functional module, without transform state or invocation sampling.

  • Keep the functional layer deterministic; define stochastic behavior at the transform sampling boundary.
  • Use the performance workflow to compare kernels, remove redundant work, and check Albucore ownership.
  • Use @uint8_io / @float32_io on the owning functional operation when dtype conversion is needed.

3. Write the transform class

  • Read Generated Transform Target Contracts before declaring transform support. For every concrete public transform, its Targets: docstring, effective _targets, and active dispatch keys describe the same behavior. A working inherited handler counts; a stub does not. Declare images and masks independently because batch support does not follow from image or mask.
  • _targets is the only source for active dispatch. Do not infer targets from method names or add an automatic route for user_data; it is passthrough unless a custom transform explicitly declares and implements that target.
  • Read Instance and Frame Binding when a transform supports batches or structured per-frame annotations. Compose(frame_binding=...) owns those relationships; a leaf transform should use the shared dispatch path instead of unpacking frame dictionaries itself.
  • Define sampling and replay behavior at the sample_parameters boundary. Implement the greenfield sample_parameters(params, data, targets, sampling) -> SampledParams contract; return SampledParams(params={...}) for values used by every target and use actual-key TargetParams entries for representation-dependent values. The coding guidance document describes the complete contract and the hook reports mechanical violations.
  • Use relative parameters where users should transfer a policy across image sizes.
  • Use ImageType for image, mask, and volume signatures; reserve np.ndarray for bboxes and keypoints.
  • NumPy inputs inside transform execution have explicit channel-last layouts: (H, W, C), (N, H, W, C), and (D, H, W, C); grayscale is (H, W, 1). Compose normalizes public channel-free inputs before dispatch. Native Tensor handlers use the channel-first layouts in NumPy and Tensor routing.
  • Keep reusable pixel arithmetic in functional.py, not in a transform class.

4. Add batch optimization (apply_to_images)

Override apply_to_images only when measurement shows an advantage over the default per-image loop. Keep the method as a thin dispatcher with explicit sampled parameters. Put the complete batch operation in a functional helper: shared kernel or LUT setup, direct batch indexing, empty-batch handling, and any preallocated per-image loop.

Keep batch and channel axes distinct; do not reshape (N, H, W, 1) into (H, W, N) to make one OpenCV call. Use Benchmark to compare the direct operation and public Compose route.

Show full SKILL.md (297 more words)Show less

5. Export the transform

Export it through albumentations/__init__.py and the relevant augmentation package initializer.

6. Write tests

Register the transform in tests/helpers/transform_cases.py:

  • Add at least one named TransformContractCase.
  • Give every configurable public constructor parameter except p and strict a non-default case. A singleton Literal equal to its default is non-configurable and needs no artificial mode.
  • Add distinct cases for mutually exclusive fields or behaviorally different modes.
  • Select a primary target factory and add transform-required metadata through context_factory; do not combine standard targets and external metadata in a second transform-specific data inventory.
  • Declare required_targets when parameter sampling needs a non-empty mask or bbox collection.
  • Use ReplayProfile.EXACT only when applied_config resolves all randomness required to reproduce every supplied target; otherwise use RUNNABLE.
  • Do not add another class/parameter inventory, compatibility adapter, broad skip, or coverage exemption.

Every registered DualTransform mode automatically collects against applicable core profiles from tests/helpers/target_profiles.py. Confirm the new mode covers each declared target, bbox type, and volume path. Add a new profile only when the same workload should apply to a cluster of transforms; profiles must contain no transform class inventories or constructor kwargs. Keep exact geometry, sampling, validation, and metamorphic semantics in focused tests.

If the transform samples constructor fields, write the realized values to sampling.applied_overrides. Clear any original policy field that becomes mutually exclusive with the realized value. If a convenience alias emits the canonical constructor's state, declare _applied_replay_class.

Check edge cases: uint8, float32, single channel, multichannel.

7. Verify

  • Every configurable public constructor parameter has a non-default contract case and every DualTransform mode reaches the applicable core target profiles.
  • Transform context and target prerequisites are declared on the case without runner branches.
  • Applied configuration survives strict JSON, reconstruction, and fresh-data execution.
  • Run the focused tests, tests/contracts, the required benchmark matrix, and the relevant pre-commit hooks.

© albumentations-team, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/add-transform of albumentations-team/AlbumentationsX.

Open the folder on GitHubat commit 1458043

Compare with similar skills

Add Transform next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Transform compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Transform this skillalbumentations-team/AlbumentationsX567—~1.7kAutomated safety check: PassAGPL-3.0
Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs13k9 repos~3.3kAutomated safety check: PassMIT
CLIP Image-Text MatchingOrchestra-Research/AI-Research-SKILLs13k8 repos~1.7kAutomated safety check: PassMIT
Kaiming HeK-Dense-AI/mimeo282—~1.6kAutomated safety check: PassMIT
Matlab Analyze Spectral Imagesmatlab/matlab-agentic-toolkit1.1k—~3.7kAutomated safety check: PassCustom licence
Matlab Process Imagesmatlab/matlab-agentic-toolkit1.1k—~3.7kAutomated safety check: PassCustom licence

Similar skills

  • Segment Anything Model Guide

    Orchestra-Research/AI-Research-SKILLs

    Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.

    13k GitHub starsUsed in 9 repos~3.3k tokens
    AI & LLM EngineeringAuto-check passed
  • CLIP Image-Text Matching

    Orchestra-Research/AI-Research-SKILLs

    Explains OpenAI's CLIP model for zero-shot image classification, image-text similarity, semantic image search and content moderation, with install steps and code patterns.

    13k GitHub starsUsed in 8 repos~1.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Kaiming He

    K-Dense-AI/mimeo

    Applies the reasoning style of Kaiming He, computer vision pioneer and creator of ResNet.

    282 GitHub stars~1.6k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Matlab Analyze Spectral Images

    matlab/matlab-agentic-toolkit

    Work with hyperspectral and multispectral images in MATLAB. An agent skill from matlab/matlab-agentic-toolkit.

    1.1k GitHub stars~3.7k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Matlab Process Images

    matlab/matlab-agentic-toolkit

    Load this first for any task involving images, pictures, photos, scans, frames, volumes, or visual data — including reading, writing, filtering, enhancing, denoising, sharpening, deblurring…

    1.1k GitHub stars~3.7k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Scholar Compute

    joshzyj/open-scholar-skill

    Design and execute computational social science analyses across 11 modules: text-as-data/NLP (STM, BERTopic, Wordfish, BERT, conText embedding regression, LLM annotation + DSL bias correction…

    168 GitHub stars~15k tokensUpdated 19 days ago
    AI & LLM EngineeringAuto-check passed

More from albumentations-team/AlbumentationsX

All 10 skills in this repo
  • Mixing Transforms

    albumentations-team/AlbumentationsX

    Policy for AlbumentationsX transforms that combine multiple images or objects.

    567 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Release Notes

    albumentations-team/AlbumentationsX

    Generate release notes for AlbumentationsX. An agent skill from albumentations-team/AlbumentationsX.

    567 GitHub stars~685 tokensUpdated today
    Auto-check passed
  • Performance Optimization

    albumentations-team/AlbumentationsX

    Systematic performance audit for AlbumentationsX runtime code.

    567 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Docstring Deep Dive

    albumentations-team/AlbumentationsX

    Review public AlbumentationsX docstrings for useful descriptions, runnable examples, parameter semantics, and related transforms.

    567 GitHub stars~534 tokensUpdated today
    Auto-check passed
  • License Integrity

    albumentations-team/AlbumentationsX

    Maintain AlbumentationsX license, CLA, provenance notices, and packaged legal artifacts consistently.

    567 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Validate And Fix

    albumentations-team/AlbumentationsX

    After completing code changes, runs tests and pre-commit, then iteratively fixes failures until all pass.

    567 GitHub stars~847 tokensUpdated today
    Auto-check passed

Questions about Add Transform

What does Add Transform do?

Full checklist for adding a new transform to AlbumentationsX. Add Transform is an agent skill from albumentations-team/AlbumentationsX. Full checklist for adding a new transform to AlbumentationsX.

When should I use Add Transform?

Add Transform fits situations like: the user asks to add; create a new transform/augmentation.

How do I install Add Transform in Claude Code?

Run `npx skills add albumentations-team/AlbumentationsX --skill add-transform -a claude-code`. Or copy the skill folder (.codex/skills/add-transform in albumentations-team/AlbumentationsX) into .claude/skills/add-transform in your project. Claude Code loads it when a task matches its description.

How do I install Add Transform in Codex?

Run `npx skills add albumentations-team/AlbumentationsX --skill add-transform -a codex`. Or copy the skill folder (.codex/skills/add-transform in albumentations-team/AlbumentationsX) into .agents/skills/add-transform in your project. Codex loads it when a task matches its description.

Can I use Add Transform in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add albumentations-team/AlbumentationsX --skill add-transform -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-transform, .gemini/skills/add-transform, .github/skills/add-transform and .opencode/skills/add-transform in your project.

What does Add Transform need to run?

SKILL.md names no scripts, command-line tools or credentials: Add Transform is instructions for the agent only.

Does Add Transform access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Transform safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Transform use?

Add Transform is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Transform use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Transform?

Skills that share tags, products or a category with Add Transform: Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars), CLIP Image-Text Matching (Orchestra-Research/AI-Research-SKILLs, 13k stars), Kaiming He (K-Dense-AI/mimeo, 282 stars) and Matlab Analyze Spectral Images (matlab/matlab-agentic-toolkit, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Transform?

albumentations-team (a GitHub organization) maintains it in albumentations-team/AlbumentationsX, which has 567 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.

Source: albumentations-team/AlbumentationsX on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.