albucore: Skill for Codex

.codex/skills/albucore-conventions/SKILL.md

albucore-conventions is a skill for Codex from albumentations-team/albucore. It costs 77 tokens per session (4,912 once invoked), scanned A, original, MIT.

Coding conventions for Albucore image-processing modules. They define image shapes, data types, backend selection, tests, performance checks, and lockfile handling.

In plain words
What is it for?
Implementing or reviewing image operations, choosing between OpenCV, NumPy, Torch, and other backends, writing tests, and checking dependency locks.
Why use it?
They reduce shape and type mistakes and keep image-processing changes consistent with the project’s performance rules.

Skill for Codex

Written for Codex: installed under .codex/.

This is albumentations-team/albucore's own configuration. It tells Codex how to work on albucore itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything albucore configures →

Reuse

Borrowing it

Nothing to install: this file belongs to albumentations-team/albucore. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/albumentations-team/albucore/main/.codex/skills/albucore-conventions/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/albumentations-team/albucore

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for albucore-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/albumentations-team/albucore/albucore-conventions/github.svg)](https://agentmods.dev/skills/albumentations-team/albucore/albucore-conventions)
Your own site
<a href="https://agentmods.dev/skills/albumentations-team/albucore/albucore-conventions"><img src="https://agentmods.dev/badge/skills/albumentations-team/albucore/albucore-conventions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for albucore-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/albumentations-team/albucore/albucore-conventions"><img src="https://agentmods.dev/badge/skills/albumentations-team/albucore/albucore-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,912 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.04912
Opus 5.5 $0.00031 $0.01965
Sonnet 5.5 $0.00015 $0.00982
Haiku 4.5 $0.00008 $0.00491

Measured yesterday against content hash 5ad8c1fa3070, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

albucore-conventions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/skills/albucore-conventions/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

# 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:

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

NumPy images use HWC, NHWC, DHWC, or NDHWC. An API that accepts a torch.Tensor defines its layout independently; never infer a Tensor layout from its rank. Common image operations use explicit CHW, NCHW, CDHW, or NCDHW layout where channel semantics matter. resize3d declares NumPy DHWC and Torch CDHW. warp_affine3d and remap3d also accept NumPy NDHWC and Torch NCDHW batches. Their shared matrix or grid applies to every item. Other 3D routers accept one volume. AlbumentationsX checks CPU, layout, strides, eager (requires_grad=False) execution, and 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.

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 5ad8c1fa3070
  2. 2d ago Changed a39b930db535
  3. 4d ago Changed · +30 lines c7a58ae8caac
  4. 24d ago Changed · +29 lines · +3 tokens per session 75b635fce7c8
  5. 1mo ago Changed · +2 lines ae2030153976
  6. 2mo ago First seen · 129 lines · 74 tokens per session scan A 5b702d3cfe9c

Subscribe to this mod's changes

albucore-conventions is a skill published in the GitHub repository albumentations-team/albucore (124 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 4,912 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

albucore-conventions compared with skills from other repositories

albucore-conventions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
albucore-conventionsalbumentations-team/albucoreSkill124yesterdayMITA77Codex
lepton-clileptonai/leptonaiSkill2.8kyesterdayApache-2.0A122Claude Code
Computer Vision Helpereddiebelaval/squireSkill212mo agoMITA16Claude Code, Codex
platform-cliultralytics/skillsSkill35yesterdayAGPL-3.0A159Claude Code, Codex
ml-for-aecAbhinavbwj/Claude-skills-for-Computational-DesignersSkill2267mo agoMITA39Claude Code
yolo-exportultralytics/skillsSkill35yesterdayAGPL-3.0A120Claude Code, Codex
yolo-trainingultralytics/skillsSkill35yesterdayAGPL-3.0A95Claude Code, Codex