The Art of Debugging
stas00/the-art-of-debugging
Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.
Systematic performance audit for AlbumentationsX runtime code.
$ npx skills add albumentations-team/AlbumentationsX --skill performance-optimization -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install albumentations-team/AlbumentationsX performance-optimization --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/performance-optimization .claude/skills/performance-optimization && rm -rf skills-srcUse ~/.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/
Install the "performance-optimization" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/performance-optimization into .claude/skills/performance-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimization", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/performance-optimizationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add albumentations-team/AlbumentationsX --skill performance-optimization -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install albumentations-team/AlbumentationsX performance-optimization --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/performance-optimization .agents/skills/performance-optimization && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "performance-optimization" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/performance-optimization into .agents/skills/performance-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimization", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add albumentations-team/AlbumentationsX --skill performance-optimization -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install albumentations-team/AlbumentationsX performance-optimization --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/performance-optimization .cursor/skills/performance-optimization && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "performance-optimization" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/performance-optimization into .cursor/skills/performance-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimization", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/albumentations-team/AlbumentationsX.git --path .codex/skills/performance-optimization--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add albumentations-team/AlbumentationsX --skill performance-optimization -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install albumentations-team/AlbumentationsX performance-optimization --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/performance-optimization .gemini/skills/performance-optimization && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "performance-optimization" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/performance-optimization into .gemini/skills/performance-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimization", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install albumentations-team/AlbumentationsX performance-optimizationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add albumentations-team/AlbumentationsX --skill performance-optimization -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/performance-optimization .github/skills/performance-optimization && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "performance-optimization" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/performance-optimization into .github/skills/performance-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimization", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add albumentations-team/AlbumentationsX --skill performance-optimization -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install albumentations-team/AlbumentationsX performance-optimization --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/albumentations-team/AlbumentationsX.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/performance-optimization .opencode/skills/performance-optimization && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "performance-optimization" agent skill from https://github.com/albumentations-team/AlbumentationsX/tree/main/.codex/skills/performance-optimization into .opencode/skills/performance-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "performance-optimization", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
performance-optimizationSystematic performance audit for AlbumentationsX runtime code.
Performance Optimization is an agent skill from albumentations-team/AlbumentationsX. Systematic performance audit for AlbumentationsX runtime code. Use whenever implementing, reviewing, profiling, or optimizing transforms, functional kernels, apply methods, random generation, reductions, label maps, dtype conversions, batch paths, allocation-heavy code, backend routing, or code that may belong in Albucore.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `agents/openai.yaml` and `references/performance-optimization.md`).
It sits in AI & LLM Engineering, covering Performance optimization, Computer vision and Deep learning. The repository describes itself as: Image augmentation for computer vision. AGPL-3.0-only or commercial licensing. The licence is AGPL-3.0.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 5a5a49e. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Performance Optimization loads about 1.7k tokens when it runs, and up to ~5.6k if it reads all its reference files. Until then it costs about 87 tokens; SKILL.md has 777 words of instructions outside code blocks.
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.
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.
The full file from albumentations-team/AlbumentationsX at commit 5a5a49e, republished under its AGPL-3.0 licence (© albumentations-team). 777 words, ~1,654 tokens.
.claude/skills/performance-optimization/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Read references/performance-optimization.md completely before inspecting or changing runtime code. It is the
in-repository fallback copy of Albucore's canonical docs/performance-optimization.md, so the guide remains available
when the Albucore checkout is absent.
When changing the guide, update the canonical Albucore document first and keep the bundled copy synchronized.
When both repositories are available, verify exact synchronization with
cmp -s ../albucore/docs/performance-optimization.md .codex/skills/performance-optimization/references/performance-optimization.md.
A mismatch blocks completion.
bincount, and in-place proposal as a benchmark
hypothesis.../benchmark/SKILL.md completely and benchmark both the isolated kernel and the Compose route on its
required size, channel, and dtype matrix.Torch is already an externally managed, soft-required AlbumentationsX runtime dependency: package metadata does not
select a CPU, CUDA, or MPS build, but importing albumentations requires an installed Torch runtime. Do not reject a
Torch-backed implementation on the grounds that it would introduce a new runtime dependency. Benchmark the complete
route, including NumPy/Tensor bridges, layout conversions, allocations, and return conversion.
For composition.py, transforms_interface.py, or invocation-state work, keep configured graph policy separate from
per-call state. Sampled parameters, applied records, processor sessions, Tensor bridge metadata, grayscale repair, and
instance-binding bookkeeping belong to InvocationContext; a configured transform or Compose must not become a
mailbox for any of them.
Compose nodes run focused additional-target and shape checks
without opening a second processor, grayscale, Tensor, or restoration boundary.BaseCompose._apply_child() as the sole configured-graph dispatcher. run_with_trace() may attach an
invocation-local observer, but it must not introduce a second node-selection or execution traversal.Compose.__init__() may compile the graph and eagerly prepare
root-owned execution state when that removes work from the per-sample path. Report construction cost only as
context; do not reject a call-time speedup because pipeline construction becomes slower.invocation_seed sample-keyed and side-effect free with respect to the worker stream.tests/test_compose_reentrancy.py, tests/test_per_worker_seed.py,
tests/test_composition_tracing.py, and the affected Tensor, processor, replay, and instance-binding suites.Keep transform policy, parameter sampling, target dispatch, and annotation semantics in AlbumentationsX.
Keep transform apply* methods as thin policy and dispatch methods. A method may validate its transform-specific
runtime input contract, select a functional operation, and forward sampled parameters, but pixel arithmetic,
temporary-array construction, clipping, dtype routing, and kernel-selection branches belong in the functional helper
that owns the operation. The deterministic source contract is checked by the repository's unified AX guidance hook;
keep its exact limits and exceptions in docs/contributing/coding_guidelines.md.
Propose an Albucore primitive when an operation:
Do not create a local helper merely to avoid coordinating an Albucore change when the operation satisfies these conditions.
If investigation identifies an Albucore defect, pause AlbumentationsX changes and open an Albucore Issue and PR before resuming.
Do not add a forwarding wrapper around a one-line call merely to attach a decorator. Use @clipped when every route
of an image operation can leave the public range; branch and call albucore.clip(..., inplace=True) when only a known
float32 mode (such as cubic interpolation) can. A separate function is justified only when it owns a real image
operation and keeps that image policy distinct from masks or annotations.
Report:
© albumentations-team, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in .codex/skills/performance-optimization of albumentations-team/AlbumentationsX.
Open the folder on GitHubat commit 5a5a49e
Performance Optimization 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Performance Optimization this skillalbumentations-team/AlbumentationsX | 566 | — | ~1.7k | Automated safety check: Pass | AGPL-3.0 | |
| The Art of Debuggingstas00/the-art-of-debugging | 1.7k | — | ~6.1k | Automated safety check: Notes | CC-BY-SA-4.0 | |
| Image Matcher IntegrationVincentqyw/image-matching-webui | 1.3k | — | ~4.8k | Automated safety check: Pass | Apache-2.0 | |
| Torch Performance Optimizationalbumentations-team/albucore | 123 | — | ~895 | Automated safety check: Pass | MIT | |
| Tracelens Analysis Orchestratoramd/skills | 395 | — | ~760 | Automated safety check: Pass | MIT | |
| Profile Trainingmarin-community/marin | 3.9k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 |
stas00/the-art-of-debugging
Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.
Vincentqyw/image-matching-webui
Adds a new local feature matching model from a GitHub repository to the image-matching-webui project as a working WebUI option.
albumentations-team/albucore
Optimize or review eager CPU-only Albucore PyTorch runtime paths with benchmark-backed decisions.
amd/skills
Orchestrates modular PyTorch profiler trace analysis with TraceLens: generates perf reports, prepares category data, runs system-level and compute-kernel subagents in parallel, validates outputs…
marin-community/marin
Profile a named JAX, Levanter, or Marin run, or investigate a measured startup, compilation, initialization, or throughput bottleneck.
Orchestra-Research/AI-Research-SKILLs
Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.
albumentations-team/AlbumentationsX
Policy for AlbumentationsX transforms that combine multiple images or objects.
albumentations-team/AlbumentationsX
Generate release notes for AlbumentationsX. An agent skill from albumentations-team/AlbumentationsX.
albumentations-team/AlbumentationsX
Full checklist for adding a new transform to AlbumentationsX.
albumentations-team/AlbumentationsX
Review public AlbumentationsX docstrings for useful descriptions, runnable examples, parameter semantics, and related transforms.
albumentations-team/AlbumentationsX
Maintain AlbumentationsX license, CLA, provenance notices, and packaged legal artifacts consistently.
albumentations-team/AlbumentationsX
After completing code changes, runs tests and pre-commit, then iteratively fixes failures until all pass.
Categories
Systematic performance audit for AlbumentationsX runtime code. Performance Optimization is an agent skill from albumentations-team/AlbumentationsX. Systematic performance audit for AlbumentationsX runtime code.
Performance Optimization fits situations like: optimizing transforms; functional kernels; random generation; dtype conversions.
Run `npx skills add albumentations-team/AlbumentationsX --skill performance-optimization -a claude-code`. Or copy the skill folder (.codex/skills/performance-optimization in albumentations-team/AlbumentationsX) into .claude/skills/performance-optimization in your project. Claude Code loads it when a task matches its description.
Run `npx skills add albumentations-team/AlbumentationsX --skill performance-optimization -a codex`. Or copy the skill folder (.codex/skills/performance-optimization in albumentations-team/AlbumentationsX) into .agents/skills/performance-optimization in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add albumentations-team/AlbumentationsX --skill performance-optimization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/performance-optimization, .gemini/skills/performance-optimization, .github/skills/performance-optimization and .opencode/skills/performance-optimization in your project.
SKILL.md names no scripts, command-line tools or credentials: Performance Optimization is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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.
Performance Optimization is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Performance Optimization: The Art of Debugging (stas00/the-art-of-debugging, 1.7k stars), Image Matcher Integration (Vincentqyw/image-matching-webui, 1.3k stars), Torch Performance Optimization (albumentations-team/albucore, 123 stars) and Tracelens Analysis Orchestrator (amd/skills, 395 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
albumentations-team (a GitHub organization) maintains it in albumentations-team/AlbumentationsX, which has 566 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.
Source: albumentations-team/AlbumentationsX on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.