albucore: Skill for Codex

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

albucore-conventions is a skill for Codex from albumentations-team/albucore. It costs 74 tokens per session (1,480 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 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,480 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.00074 $0.01480
Opus 5 $0.00037 $0.00740
Sonnet 5 $0.00015 $0.00296
Haiku 4.5 $0.00007 $0.00148

Measured 11d ago against content hash 5b702d3cfe9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 11d ago.

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 · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 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)

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

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 uses the same prevalidated single-volume layouts. AlbumentationsX checks CPU, strided layout, eager (requires_grad=False) execution, and all control data before the call. Each volume router accepts exactly one volume.

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

Read the full file on GitHub · 129 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. 11d 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 (123 stars, last pushed 4d ago), licensed MIT. It adds 74 tokens to every session and 1,480 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

langchain_patterns

Implement Retrieval-Augmented Generation (RAG) systems with LangChain4j. Build document ingestion pipelines, embedding stores, vector search strategies, and knowledge-enhanced AI applications. Use when creating question-answering systems over document collections or AI assistants with external knowledge bases.

vuralserhat86/antigravity-agentic-skills · 57 tokens

langchain_patterns

Implement Retrieval-Augmented Generation (RAG) systems with LangChain4j. Build document ingestion pipelines, embedding stores, vector search strategies, and knowledge-enhanced AI applications. Use when creating question-answering systems over document collections or AI assistants with external knowledge bases.

DonggangChen/antigravity-agentic-skills · 57 tokens

api-debugging

Systematic approach to debugging REST APIs, HTTP errors, authentication issues, and network problems. Use when the user has API errors, status code issues, timeout problems, or needs help troubleshooting HTTP requests.

ownpilot/OwnPilot · 44 tokens

writing-assistant

Helps improve writing quality — emails, documents, blog posts, and technical content. Provides editing, tone adjustment, structure suggestions, and grammar fixes. Use when the user asks to write, edit, review, or improve any text content.

ownpilot/OwnPilot · 52 tokens

document-assistant

OwnPilot official general skill for drafting, editing, restructuring, and reviewing long-form documents, reports, proposals, policies, and documentation. Use when the user asks to create or improve a document.

ownpilot/OwnPilot · 43 tokens

meeting-notes

OwnPilot official general skill for converting rough meeting notes, transcripts, and call summaries into decisions, action items, owners, risks, and follow-ups. Use when the user provides meeting content or asks for notes.

ownpilot/OwnPilot · 46 tokens