performance-optimization

performance-optimization is a skill for Claude Code, Codex from albumentations-team/albucore. It costs 60 tokens per session (577 once invoked), scanned A, original, MIT.

A workflow for measuring and improving the runtime performance of Albucore's image-processing code, including routing, data conversion, memory use, and in-place operations.

In plain words
What is it for?
Profiling and optimizing image operations, backend selection, lookup tables, random generation, data-type conversions, batch processing, and volume processing.
Why use it?
It helps identify slow paths without sacrificing correctness or measuring only an incomplete part of the operation.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/albumentations-team/albucore/performance-optimization
Any agent
npx skills add albumentations-team/albucore --skill performance-optimization
Clone the repo
git clone --depth 1 https://github.com/albumentations-team/albucore

Made for: Claude Code, 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 performance-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/albumentations-team/albucore/performance-optimization.svg)](https://agentmods.dev/skills/albumentations-team/albucore/performance-optimization)
Your own site
<a href="https://agentmods.dev/skills/albumentations-team/albucore/performance-optimization"><img src="https://agentmods.dev/badge/skills/albumentations-team/albucore/performance-optimization.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 577 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00060 $0.00577
Opus 5 $0.00030 $0.00289
Sonnet 5 $0.00012 $0.00115
Haiku 4.5 $0.00006 $0.00058

Measured 4d ago against content hash 42a7da0dfd99, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

performance-optimization 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 4d 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/performance-optimization/SKILL.md · 56 lines

How it starts

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

Performance Optimization

Read ../../../docs/performance-optimization.md completely before inspecting or changing runtime code. That document is the canonical shared workflow for Albucore and AlbumentationsX.

When the sibling AlbumentationsX checkout is available, verify the fallback copy with cmp -s docs/performance-optimization.md ../AlbumentationsX/.codex/skills/performance-optimization/references/performance-optimization.md. A mismatch blocks completion.

Workflow

  1. Establish correctness and public-router performance baselines before editing.
  2. Run every stage of the canonical optimization pass. Do not stop after finding the first plausible improvement.
  3. Treat delete-first, vectorization, LUT, random generation, bincount, backend selection, routing thresholds, and in-place mutation as benchmark questions.
  4. Compare the complete public path, including dispatch, dtype conversion, contiguity, allocation, clipping, and shape repair.
  5. Read ../albucore-benchmarks/SKILL.md completely before measuring. Extend the matrix along the dimension that controls the candidate.
  6. Add or preserve correctness tests for every accepted route and its boundary cases.
  7. Update benchmark evidence and route documentation when public routing changes.

Albucore Boundary

Accept reusable atomic array operations with stable image semantics. Keep augmentation policy, stochastic parameter sampling, target dispatch, and annotation rules in AlbumentationsX.

Before adding an atom:

  • search Albucore for an existing router or lower-level operation;
  • search AlbumentationsX for duplicate local implementations;
  • define dtype, shape, channel, contiguity, aliasing, and error contracts;
  • benchmark all viable backends before exposing a route.

Albucore routers are called after the upstream validation boundary. The caller owns container type, rank/layout, dtype, device, contiguity, autograd, and operation-control validation. Do not duplicate those checks in the runtime router; retain only backend dispatch and kernel-required normalization. Invalid direct calls are outside the low-level contract and must not add hot-path branches.

Read the full file on GitHub · 56 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 56 lines · 60 tokens per session scan A 42a7da0dfd99

Subscribe to this mod's changes

performance-optimization is a skill published in the GitHub repository albumentations-team/albucore (123 stars, last pushed 6d ago), licensed MIT. It adds 60 tokens to every session and 577 once invoked, about $0.0003 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

lepton-cli

Operate NVIDIA DGX Cloud Lepton through the globally installed lep CLI. Use when the user asks to inspect or manage Lepton workspaces, endpoints/deployments, dev pods, batch jobs, fine-tuning jobs, Ray clusters, Slurm clusters, Dynamo endpoints, storage, secrets, nodes, ingress, templates, logs, authentication, or…

leptonai/leptonai · 122 tokens

ml-for-aec

Computer vision for buildings, image-to-floorplan, generative ML models, performance prediction, structural analysis ML, energy prediction, natural language to design, and point cloud ML for AEC computational design.

Abhinavbwj/Claude-skills-for-Computational-Designers · 39 tokens

dataset-profiling

Use as the FIRST step of any ML task, before choosing a model, to inspect and understand the actual dataset. Works for a LOCAL dataset (Claude reads the files directly) and for a KAGGLE dataset (Claude cannot read /kaggle/input from your machine, so it emits a small profiling cell you run on Kaggle and paste back, or…

mxslr/mlcraft · 150 tokens

data-rigor-and-leakage

Use BEFORE training any model, to build correct train/val/test splits and hunt data leakage - the #1 cause of fake-high accuracy. Covers group/patient/subject splits, temporal splits, official-benchmark splits, label correctness, class balance, and preprocessing parity. Triggers on 'split the data', 'train/test…

mxslr/mlcraft · 96 tokens

ml-research-methodology

Use at the START of ANY machine-learning / deep-learning / AI modeling task - building, training, fine-tuning, or choosing a model for image classification, object/face/vehicle detection, segmentation, medical imaging (tumor/cancer/MRI/X-ray/mammogram), text/NLP/LLM, tabular prediction (churn, price, risk), or…

mxslr/mlcraft · 127 tokens

accuracy-improvement-loop

Use when an existing model's results are disappointing and the user wants higher accuracy - 'accuracy is still too low', 'improve/boost the model', 'why is it bad', 'make it better than the paper', 'combine methods to beat SOTA'. Diagnoses the real bottleneck first (error analysis, learning curves, leakage, saliency)…

mxslr/mlcraft · 112 tokens