albucore: Skill for Codex

.codex/skills/performance-optimization/SKILL.md

performance-optimization is a skill for Codex from albumentations-team/albucore. It costs 61 tokens per session (814 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 Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions 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/performance-optimization/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 performance-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/albumentations-team/albucore/performance-optimization/github.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/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 performance-optimization

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 814 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.00061 $0.00814
Opus 5.5 $0.00024 $0.00326
Sonnet 5.5 $0.00012 $0.00163
Haiku 4.5 $0.00006 $0.00081

Measured yesterday against content hash a4a2c791ff47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/performance-optimization/SKILL.md · 71 lines

How it starts

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

Performance Optimization

Benchmark Albucore changes through Core public operations only, including their Core-owned dispatch, conversions, allocations and memory use. AX functional/transform/Compose performance checks require an explicit user request and are not an automatic gate for Core changes. Follow the benchmark scope in the canonical guide below.

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

For final correctness, speed, and memory acceptance, use Python 3.11 with the latest stable dependencies available for Python 3.11 and the target platform. The current recorded profile uses PyTorch 2.15.0, including the CPU wheel on Linux. Check resolved versions and imported source paths; a newer Python or stale uv.lock is not a substitute.

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 explicit output aliasing as benchmark questions. Internal mutation is limited to owned working buffers.
  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.

Read the full file on GitHub · 71 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. yesterday Changed · +11 lines a4a2c791ff47
  2. 4d ago Changed · +4 lines · +1 tokens per session 116240d5b69c
  3. 2mo 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 (124 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 814 once invoked, about $0.0002 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

performance-optimization compared with skills from other repositories

performance-optimization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
performance-optimizationalbumentations-team/albucoreSkill124yesterdayMITA61Codex
smart-explorethedotmack/claude-memSkill114kyesterdayApache-2.0A41Claude Code
developing-with-streamlitstreamlit/streamlitSkill46kyesterdayApache-2.0A146Claude Code
code-taskopensquilla/opensquillaSkill7.1k6d agoApache-2.0A322Claude Code, Codex
potpie-clipotpie-ai/potpieSkill5.8k7d agoApache-2.0A60Codex
stack-trace-js-probeopensquilla/opensquillaSkill7.1k6d agoApache-2.0A43Claude Code
potpie-debug-memorypotpie-ai/potpieSkill5.8k7d agoApache-2.0A41Claude Code, Codex