Agent skill

Albucore Conventions

by albumentations-team in albumentations-team/albucore

Albucore image processing conventions - shapes (H,W,C), dtypes (uint8/float32), benchmark-driven backend routing (OpenCV, NumPy, Torch CPU, LUT, NumKong), tests, and lockfile discipline.

MITAuto-check passedAI & LLM Engineering

Install Albucore Conventions

skills CLI
$ npx skills add albumentations-team/albucore --skill albucore-conventions -a claude-code

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

GitHub CLI
$ gh skill install albumentations-team/albucore albucore-conventions --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/albucore.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/albucore-conventions .claude/skills/albucore-conventions && 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
albucore-conventions
GitHub stars
123
Token cost
~1.6k tokens
SKILL.md length
726 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Albucore image processing conventions - shapes (H,W,C), dtypes (uint8/float32), benchmark-driven backend routing (OpenCV, NumPy, Torch CPU, LUT, NumKong), tests, and lockfile discipline.

  • Works in 9 steps: Image Shapes - Always Explicit Channel… → Supported Dtypes - uint8 and float32 Only → Backend Routing - Benchmark-Driven Only → …
  • Modifying albucore modules
  • SKILL.md covers When to Apply, Critical Rules and Quick Reference
  • Calls uv

What it does

Albucore Conventions is an agent skill from albumentations-team/albucore. Albucore image processing conventions - shapes (H,W,C), dtypes (uint8/float32), benchmark-driven backend routing (OpenCV, NumPy, Torch CPU, LUT, NumKong), tests, and lockfile discipline. Use when implementing or modifying albucore modules, writing tests, or reviewing image-processing code.

Its SKILL.md is about 1.6k 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 Dependency management. It works with OpenCV and NumPy. The repository describes itself as: A high-performance image processing library designed to optimize and extend the Albumentations library with specialized functions for advanced image transformations. Perfect for… The licence is MIT.

When your agent uses it

  • Modifying albucore modules
  • Reviewing image-processing code

Example prompts

  • “/albucore-conventions”

Requirements

  • Python 3

Workflow steps

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

  1. Image Shapes - Always Explicit Channel Dimension
  2. Supported Dtypes - uint8 and float32 Only
  3. Backend Routing - Benchmark-Driven Only
  4. Torch CPU Is a Mandatory Backend
  5. OpenCV LUT - Source vs Table Dtype
  6. Normalize / Float Work - float32 Only
  7. Utilities and Decorators
  8. Tests
  9. Dependency Lock Consistency

What it can do on your machine

Read from SKILL.md and the folder at commit 249d10b. 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

    Shell commands in SKILL.md call:

    • uv

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

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    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

Albucore Conventions loads about 1.6k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 726 words of instructions outside code blocks.

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

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/albucore at commit 249d10b, republished under its MIT licence (© albumentations-team). 726 words, ~1,568 tokens.

Download SKILL.mdSave it as .claude/skills/albucore-conventions/SKILL.md (or your agent's skills folder).
name
albucore-conventions
description
Albucore image processing conventions - shapes (H,W,C), dtypes (uint8/float32), benchmark-driven backend routing (OpenCV, NumPy, Torch CPU, LUT, NumKong), tests, and lockfile discipline. Use when implementing or modifying albucore modules, writing tests, or reviewing image-processing code.

Albucore Conventions

For runtime implementation or review, also read ../performance-optimization/SKILL.md and its canonical reference completely before acting.

When to Apply

  • Implementing or changing code under albucore/.
  • Adding or modifying tests.
  • Reviewing image-processing code.
  • Answering questions about shapes, dtypes, backend choice, or dependency lock consistency.

Critical Rules

1. Image Shapes - Always Explicit Channel Dimension
python
# Correct
grayscale = (H, W, 1)
rgb = (H, W, 3)
batch = (N, H, W, C)
volume = (D, H, W, C)
volume_batch = (N, D, H, W, C)

# Wrong - never use implicit channels
gray = (H, W)
gray_vol = (D, H, W)

Dimension indexing is always:

python
num_channels = image.shape[-1]
width = image.shape[-2]
height = image.shape[-3]

An API that explicitly accepts a torch.Tensor defines its layout independently; never infer a Tensor layout from its rank. resize3d declares NumPy DHWC and Torch CDHW. warp_affine3d and remap3d accept either those single-volume layouts or NumPy NDHWC and Torch NCDHW batches. Their shared matrix or grid applies to every item. Other volume routers accept one volume. AlbumentationsX checks CPU, strided layout, eager (requires_grad=False) execution, and all control data before the call.

1a. Precondition Boundary - Do Not Revalidate in Albucore

Albucore routers receive prevalidated inputs from the caller. The upstream transform layer owns validation of:

  • container type, rank, layout, and explicit channel dimension;
  • dtype, device, contiguity, and autograd state;
  • spatial sizes, control-data shapes, interpolation, border, and fill contracts.

Do not add duplicate runtime checks for these preconditions inside Albucore routers. Keep only the dispatch needed to select the NumPy or Torch implementation and the normalization/conversion required by the selected kernel. A caller contract violation is outside the low-level router contract; tests and benchmarks must use valid inputs. Document the precondition boundary in public-router docstrings.

2. Supported Dtypes - uint8 and float32 Only

No float64 in the validated public path. Callers reject unsupported dtypes before dispatch; runtime kernels may rely on the documented uint8/float32 contract.

3. Backend Routing - Benchmark-Driven Only
  • Do not assume LUT is fastest for uint8; benchmark.
  • NumKong is used where benchmarks win (blend, moments, scale, cdist, etc.); see docs/numkong-performance.md.
  • StringZilla is a candidate for uint8 translation paths; compare it with the public LUT router and OpenCV.
  • OpenCV has a 4-channel limit for many ops. Use MAX_OPENCV_WORKING_CHANNELS, then fall back to NumPy or chunking for more channels.
  • Route from benchmark evidence in benchmarks/ and docs/numkong-performance.md, not convention.
4. Torch CPU Is a Mandatory Backend
  • torch>=2.14.0 is a required runtime dependency, not an optional import. Use direct imports rather than sys.modules checks, class-name heuristics, or lazy imports.
  • Training callers are expected to have imported Torch already. Do not optimize public CPU routing around deferred import cost.
  • A public Tensor path must state its layout. For caller-prevalidated routers such as resize3d, warp_affine3d, and remap3d, AlbumentationsX owns CPU, strided-layout, and requires_grad=False validation. These routers do not silently detach or move data.
  • Benchmark NumPy-to-Torch routes end-to-end: wrapper creation, permutations, dtype casts, kernel execution, and returned NumPy layout all belong inside the timed region.
  • For resize3d, benchmark direct Tensor and zero-copy Tensor→NumPy→Tensor routes separately. A linear all-axis upscale may select the bridge for speed; preserve its documented float32 tolerance and uint8 delta bound.
  • For warp_affine3d, benchmark rank-4 single volumes and rank-5 batches separately. Include matrix conversion, shared affine-grid creation, sampling, fill correction, uint8 conversion, NumPy/Torch views, and output materialization. Compare per-volume calls, N × C folding, native batch sampling, and Tensor/NumPy bridges on the public path.
Show full SKILL.md (220 more words)Show less
5. OpenCV LUT - Source vs Table Dtype
  • cv2.LUT source image: for uint8 LUT paths, pass a uint8 (H, W, C) image.
  • cv2.LUT lookup table: for float outputs, the table must be float32, not float64. OpenCV stats often promote to float64; cast the small LUT to float32 so the output does not widen.
6. Normalize / Float Work - float32 Only

Keep intermediate buffers float32 unless a benchmark proves otherwise. Public API supports uint8 and float32 only.

7. Utilities and Decorators
  • Utilities: get_num_channels, convert_value, clip, etc. in albucore.utils.
  • Decorators: @preserve_channel_dim, @clipped, etc. in albucore.decorators.
8. Tests
  • Test uint8 and float32 only.
  • Test single images, image batches, and single volumes where the router supports them.
  • Cover 1-channel and >4-channel edge cases.
9. Dependency Lock Consistency
  • When changing dependencies in pyproject.toml, update uv.lock in the same PR.
  • Validate with uv lock --check.
  • Release flow uses uv export --frozen; stale uv.lock can break release artifact generation.

Quick Reference

ConventionRule
Grayscale shape(H, W, 1) never (H, W)
Dtypesuint8, float32 only
BackendChoose by benchmark
LUTuint8 image in; float32 LUT table when output is float32
Normalize / mathfloat32 buffers; no float64 in public paths
OpenCV limit4 channels unless chunked or using NumPy
Torch Tensor routeExplicit layout; AlbumentationsX prevalidates CPU/strides/autograd before warp_affine3d
Benchmarksbenchmarks/ and docs/numkong-performance.md
LockfileKeep uv.lock in sync with pyproject.toml

© albumentations-team, MIT. 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/albucore-conventions of albumentations-team/albucore.

Open the folder on GitHubat commit 249d10b

Compare with similar skills

Albucore Conventions 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.

Albucore Conventions compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Albucore Conventions this skillalbumentations-team/albucore123—~1.6kAutomated safety check: PassMIT
ComfyUI Custom Node BuilderConstantineB6/comfy-pilot230—~897Automated safety check: PassMIT
Image Visual Checkjjjkkkjjj/Matft147—~2.3kAutomated safety check: PassBSD-3-Clause
Math Modeling Environment Doctorjihe520/MathModelAgent6.2k—~1.5kAutomated safety check: NotesNone
Neuron Nki Writinguw-syfi/vibesys105—~5kAutomated safety check: PassMIT
Env Setupwwwzhouhui/skills_collection283—~3.5kAutomated safety check: NotesNone

Similar skills

  • ComfyUI Custom Node Builder

    ConstantineB6/comfy-pilot

    Helps an agent write ComfyUI custom nodes in Python, including wrapping an existing script, mapping data types and handling image batches.

    230 GitHub stars~897 tokensUpdated 7 mo ago
    AI & LLM EngineeringAuto-check passed
  • Image Visual Check

    jjjkkkjjj/Matft

    Procedure for adding tests for Matft's image processing (Matft.image., indexing or channel swapping on images, etc.), generating comparison images that put the result next to an OpenCV reference…

    147 GitHub stars~2.3k tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • Math Modeling Environment Doctor

    jihe520/MathModelAgent

    Checks that the tools and Python packages needed for a math modeling paper workflow are installed and offers platform-specific install commands for anything missing.

    6.2k GitHub stars~1.5k tokensUpdated 7 days ago
    DevelopmentAuto-check: notes
  • Neuron Nki Writing

    uw-syfi/vibesys

    Guide for writing and modifying NKI kernels. An agent skill from uw-syfi/vibesys.

    105 GitHub stars~5k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Env Setup

    wwwzhouhui/skills_collection

    Checking and provisioning the machine's environment for the video-agent-kit plugin — probing for ffmpeg/ffprobe that actually carry the encoders and filters we render with (libx264/aac/libmp3lame…

    283 GitHub stars~3.5k tokensUpdated 5 days ago
    Media & CreativeAuto-check: notes
  • Build Compiled Extensions

    A-EVO-Lab/a-evolve

    How to build C/C++/Cython/Fortran extensions and frameworks like Caffe, OpenCV, protobuf-dependent projects from source.

    809 GitHub stars~416 tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed

More from albumentations-team/albucore

  • Albucore Benchmarks

    albumentations-team/albucore

    Running Albucore micro-benchmarks under benchmarks/, synthetic router timings, and comparing PyPI releases with uv --no-project.

    123 GitHub stars~1.5k tokensUpdated 5 days ago
    Auto-check passed
  • Albucore Public API

    albumentations-team/albucore

    Albucore star-exported API (all), routers vs albucore.functions shims, and dependents such as Albumentations.

    123 GitHub stars~467 tokensUpdated 5 days ago
    Auto-check passed
  • Performance Optimization

    albumentations-team/albucore

    Systematic performance audit for Albucore runtime code. An agent skill from albumentations-team/albucore.

    123 GitHub stars~743 tokensUpdated 5 days ago
    Auto-check passed
  • Torch Performance Optimization

    albumentations-team/albucore

    Optimize or review eager CPU-only Albucore PyTorch runtime paths with benchmark-backed decisions.

    123 GitHub stars~895 tokensUpdated 5 days ago
    Auto-check passed

Works with

Questions about Albucore Conventions

What does Albucore Conventions do?

Albucore image processing conventions - shapes (H,W,C), dtypes (uint8/float32), benchmark-driven backend routing (OpenCV, NumPy, Torch CPU, LUT, NumKong), tests, and lockfile discipline. Albucore Conventions is an agent skill from albumentations-team/albucore. Albucore image processing conventions - shapes (H,W,C), dtypes (uint8/float32), benchmark-driven backend routing (OpenCV, NumPy, Torch CPU, LUT, NumKong), tests, and lockfile discipline.

When should I use Albucore Conventions?

Albucore Conventions fits situations like: modifying albucore modules; reviewing image-processing code.

How do I install Albucore Conventions in Claude Code?

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

How do I install Albucore Conventions in Codex?

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

Can I use Albucore Conventions 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/albucore --skill albucore-conventions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/albucore-conventions, .gemini/skills/albucore-conventions, .github/skills/albucore-conventions and .opencode/skills/albucore-conventions in your project.

What does Albucore Conventions need to run?

Going by SKILL.md and its folder, Albucore Conventions needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Albucore Conventions access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Albucore Conventions 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 Albucore Conventions use?

Albucore Conventions is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Albucore Conventions use?

About 1.6k tokens (SKILL.md is roughly 6.3k 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 Albucore Conventions?

Skills that share tags, products or a category with Albucore Conventions: ComfyUI Custom Node Builder (ConstantineB6/comfy-pilot, 230 stars), Image Visual Check (jjjkkkjjj/Matft, 147 stars), Math Modeling Environment Doctor (jihe520/MathModelAgent, 6.2k stars) and Neuron Nki Writing (uw-syfi/vibesys, 105 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Albucore Conventions?

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

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