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.
Full checklist for adding a new transform to AlbumentationsX.
$ npx skills add albumentations-team/AlbumentationsX --skill add-transform -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install albumentations-team/AlbumentationsX add-transform --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "add-transform" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/add-transform into .claude/skills/add-transform/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-transform", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/add-transformType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add albumentations-team/AlbumentationsX --skill add-transform -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install albumentations-team/AlbumentationsX add-transform --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/add-transform .agents/skills/add-transform && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-transform" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/add-transform into .agents/skills/add-transform/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-transform", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add albumentations-team/AlbumentationsX --skill add-transform -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install albumentations-team/AlbumentationsX add-transform --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/add-transform .cursor/skills/add-transform && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-transform" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/add-transform into .cursor/skills/add-transform/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-transform", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/albumentations-team/AlbumentationsX.git --path .codex/skills/add-transform--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add albumentations-team/AlbumentationsX --skill add-transform -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install albumentations-team/AlbumentationsX add-transform --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/add-transform .gemini/skills/add-transform && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-transform" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/add-transform into .gemini/skills/add-transform/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-transform", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install albumentations-team/AlbumentationsX add-transformInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add albumentations-team/AlbumentationsX --skill add-transform -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/add-transform .github/skills/add-transform && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-transform" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/add-transform into .github/skills/add-transform/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-transform", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add albumentations-team/AlbumentationsX --skill add-transform -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install albumentations-team/AlbumentationsX add-transform --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/add-transform .opencode/skills/add-transform && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-transform" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/add-transform into .opencode/skills/add-transform/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-transform", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-transformFull 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. 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.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 1458043. It shows what the files ask for, not the result of running them.
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.
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.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from albumentations-team/AlbumentationsX at commit 1458043, republished under its AGPL-3.0 licence (© albumentations-team). 783 words, ~1,681 tokens.
.claude/skills/add-transform/SKILL.md (or your agent's skills folder).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.
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/dropoutalbumentations/augmentations/blur/ — blurringalbumentations/augmentations/crops/ — croppingalbumentations/augmentations/mixing/ — multi-image mixingalbumentations/augmentations/medical/ — medical acquisition artifacts and histology stain transformsalbumentations/augmentations/transforms3d/ — 3D/volumealbumentations/augmentations/other/ — everything elseRead ../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.
@uint8_io / @float32_io on the owning functional operation when dtype conversion is needed.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.Compose(frame_binding=...) owns those relationships; a leaf transform should use
the shared dispatch path instead of unpacking frame dictionaries itself.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.ImageType for image, mask, and volume signatures; reserve np.ndarray for bboxes and keypoints.(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.functional.py, not in a transform class.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.
Export it through albumentations/__init__.py and the relevant augmentation package initializer.
Register the transform in tests/helpers/transform_cases.py:
TransformContractCase.p and strict a non-default case. A singleton Literal
equal to its default is non-configurable and needs no artificial mode.context_factory; do not combine standard
targets and external metadata in a second transform-specific data inventory.required_targets when parameter sampling needs a non-empty mask or bbox collection.ReplayProfile.EXACT only when applied_config resolves all randomness required to reproduce every supplied
target; otherwise use RUNNABLE.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.
DualTransform mode reaches
the applicable core target profiles.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
Just SKILL.md in .codex/skills/add-transform of albumentations-team/AlbumentationsX.
Open the folder on GitHubat commit 1458043
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add Transform this skillalbumentations-team/AlbumentationsX | 567 | — | ~1.7k | Automated safety check: Pass | AGPL-3.0 | |
| Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs | 13k | 9 repos | ~3.3k | Automated safety check: Pass | MIT | |
| CLIP Image-Text MatchingOrchestra-Research/AI-Research-SKILLs | 13k | 8 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Kaiming HeK-Dense-AI/mimeo | 282 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Matlab Analyze Spectral Imagesmatlab/matlab-agentic-toolkit | 1.1k | — | ~3.7k | Automated safety check: Pass | Custom licence | |
| Matlab Process Imagesmatlab/matlab-agentic-toolkit | 1.1k | — | ~3.7k | Automated safety check: Pass | Custom licence |
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.
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.
K-Dense-AI/mimeo
Applies the reasoning style of Kaiming He, computer vision pioneer and creator of ResNet.
matlab/matlab-agentic-toolkit
Work with hyperspectral and multispectral images in MATLAB. An agent skill from matlab/matlab-agentic-toolkit.
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…
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…
albumentations-team/AlbumentationsX
Policy for AlbumentationsX transforms that combine multiple images or objects.
albumentations-team/AlbumentationsX
Generate release notes for AlbumentationsX. An agent skill from albumentations-team/AlbumentationsX.
albumentations-team/AlbumentationsX
Systematic performance audit for AlbumentationsX runtime code.
albumentations-team/AlbumentationsX
Review public AlbumentationsX docstrings for useful descriptions, runnable examples, parameter semantics, and related transforms.
albumentations-team/AlbumentationsX
Maintain AlbumentationsX license, CLA, provenance notices, and packaged legal artifacts consistently.
albumentations-team/AlbumentationsX
After completing code changes, runs tests and pre-commit, then iteratively fixes failures until all pass.
Categories
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.
Add Transform fits situations like: the user asks to add; create a new transform/augmentation.
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.
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.
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.
SKILL.md names no scripts, command-line tools or credentials: Add Transform is instructions for the agent only.
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.
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.
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.
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.
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.
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.