Claude-skill-registry awkward-array
Guidance for working with Awkward Array 2.0 jagged arrays and records in Python. Use when building or debugging `awkward` workflows, including record construction with `ak.zip`, adding fields with `ak.with_field`, filtering/aggregation, combinatorics (`ak.cartesian`/`ak.combinations`), `argmin`/`argmax` slicing, flattening, sorting, and NumPy interop or common Awkward pitfalls.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/awkward-array" ~/.claude/skills/majiayu000-claude-skill-registry-awkward-array && rm -rf "$T"
manifest:
skills/data/awkward-array/SKILL.mdsource content
Awkward Array
Overview
Use this skill to apply Awkward 2.0 best practices for jagged arrays, especially in HEP-style event data models. Keep guidance lean in this file and load reference notes only when needed.
Core workflow
- Build an event data model (records) with
.ak.zip - Filter early at the event level.
- Perform combinatorics or derived calculations.
- Add derived fields back into the record with
.ak.with_field - Repeat until the final values are present in the EDM.
Reference guide
Load only the reference files that matches the task:
: use when setting overall approach or reminding about Awkward 2.0 usage and axes.references/best-practices.md
: use when building records or adding fields.references/records.md
: use for boolean masking,references/filtering-aggregation.md
/ak.sum
/ak.count
, and axis guidance.ak.num
: use forreferences/sorting.md
.ak.sort
: use for pairings or n-way combinations (references/combinatorics.md
,ak.cartesian
).ak.combinations
: use when selecting min/max elements in jagged lists.references/argmin-argmax.md
: use forreferences/flattening.md
behavior and axis rules.ak.flatten
: use when mixing NumPy operations with Awkward arrays.references/numpy-interop.md
: use for common API mistakes and missing functions.references/pitfalls.md
: use for file I/O patterns (read/write) with Awkward arrays.references/awkward-files.md
Constraints
- Use Awkward 2.0 APIs and syntax only.
- Avoid
unless the function explicitly supports it.axis=None - Ensure
is listed as a dependency in the active environment (venv plusawkward
orpyproject.toml
).requirements.txt