awkward-array

awkward-array is a skill for Claude Code, Codex from iris-hep/marketplace. It costs 99 tokens per session (516 once invoked), scanned A, original, BSD-3-Clause.

A set of Python guidelines for Awkward Array 2.0, a library for data with nested or uneven-length lists. It focuses on records, filtering, calculations, sorting, and combinations.

In plain words
What is it for?
Use it to build or debug Python workflows for jagged data, including filtering events, aggregating values, pairing items, flattening lists, sorting, and finding minimum or maximum entries.
Why use it?
It helps prevent common mistakes when working with event data whose entries do not all contain the same number of items. It also guides how to add calculated fields and select values.

Skill for Claude CodeCodex

Part of the iris-hep plugin — 7 skills, 1 command, 3 agents shipped together

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/iris-hep/marketplace/awkward-array
Any agent
npx skills add iris-hep/marketplace --skill awkward-array
Clone the repo
git clone --depth 1 https://github.com/iris-hep/marketplace

Made for: Claude Code, Codex.

Or install iris-hep, the plugin that ships this one along with the rest of its 7 skills, 1 command, 3 agents.

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 awkward-array

README.md
[![agentmods](https://agentmods.dev/badge/skills/iris-hep/marketplace/awkward-array.svg)](https://agentmods.dev/skills/iris-hep/marketplace/awkward-array)
Your own site
<a href="https://agentmods.dev/skills/iris-hep/marketplace/awkward-array"><img src="https://agentmods.dev/badge/skills/iris-hep/marketplace/awkward-array.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 516 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.00099 $0.00516
Opus 5 $0.00049 $0.00258
Sonnet 5 $0.00020 $0.00103
Haiku 4.5 $0.00010 $0.00052

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

Security

Grade A, and why

awkward-array 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.

iris-hep/skills/awkward-array/SKILL.md · 40 lines

What it actually says

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

  1. Build an event data model (records) with ak.zip.
  2. Filter early at the event level.
  3. Perform combinatorics or derived calculations.
  4. Add derived fields back into the record with ak.with_field.
  5. Repeat until the final values are present in the EDM.

Reference guide

Load only the reference files that matches the task:

  • references/best-practices.md: use when setting overall approach or reminding about Awkward 2.0 usage and axes.
  • references/records.md: use when building records or adding fields.
  • references/filtering-aggregation.md: use for boolean masking, ak.sum/ak.count/ak.num, and axis guidance.
  • references/sorting.md: use for ak.sort.
  • references/combinatorics.md: use for pairings or n-way combinations (ak.cartesian, ak.combinations).
  • references/argmin-argmax.md: use when selecting min/max elements in jagged lists.
  • references/flattening.md: use for ak.flatten behavior and axis rules.
  • references/numpy-interop.md: use when mixing NumPy operations with Awkward arrays.
  • references/pitfalls.md: use for common API mistakes and missing functions.
  • references/awkward-files.md: use for file I/O patterns (read/write) with Awkward arrays.

Constraints

  • Use Awkward 2.0 APIs and syntax only.
  • Avoid axis=None unless the function explicitly supports it.
  • Ensure awkward is listed as a dependency in the active environment (venv plus pyproject.toml or requirements.txt).
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 · 40 lines · 99 tokens per session scan A 3b4f56287177

Subscribe to this mod's changes

awkward-array is a skill published in the GitHub repository iris-hep/marketplace (4 stars, last pushed 28d ago), licensed BSD-3-Clause. It adds 99 tokens to every session and 516 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

bump-dependency

Bumps a Python package dependency across Home Assistant Core integrations, regenerates core requirement files, runs verification tests and prek lint, and prepares a pull request with proper release/compare links.

home-assistant/core · 42 tokens

mem0-vercel-ai-sdk

Mem0 provider for Vercel AI SDK (@mem0/vercel-ai-provider). TRIGGER when: user mentions "vercel ai sdk", "@mem0/vercel-ai-provider", "createMem0", "retrieveMemories", "addMemories", "getMemories", "searchMemories", "mem0 vercel", "AI SDK provider", "AI SDK memory", or is using generateText/streamText with mem0. Also…

mem0ai/mem0 · 146 tokens

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens

pause

Pause Mem0 memory capture on this machine. Use when the user wants to stop memories being recorded, for example for private work or experiments.

mem0ai/mem0 · 30 tokens

python-development

Coding standards, conventions, and patterns for developing Python code in the Agent Framework repository. Use this when writing or modifying Python source files in the python/ directory.

microsoft/agent-framework · 35 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens