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.
npx skills add metarhia/metaskills --skill metautil-data-structuresgit clone --depth 1 https://github.com/metarhia/metaskillsWrote 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.
[](https://agentmods.dev/skills/metarhia/metaskills/metautil-data-structures)<a href="https://agentmods.dev/skills/metarhia/metaskills/metautil-data-structures"><img src="https://agentmods.dev/badge/skills/metarhia/metaskills/metautil-data-structures/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.
<a href="https://agentmods.dev/skills/metarhia/metaskills/metautil-data-structures"><img src="https://agentmods.dev/badge/skills/metarhia/metaskills/metautil-data-structures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.02426 |
| Opus 5 | $0.00037 | $0.01213 |
| Sonnet 5 | $0.00015 | $0.00485 |
| Haiku 4.5 | $0.00007 | $0.00243 |
Grade A, and why
metautil-data-structures 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Metautil Data Structures
Import from the package root. Prefer these ADTs over ad-hoc Array/Object when the discipline (FIFO, LIFO, persistence, schema) matters.
const metautil = require('metautil');
const { ConsList, cons, uncons, Struct, Deque, Queue, Stack } = metautil;
const { List, ListNode, CircularBuffer, UnrolledList, Trie } = metautil;
Choose the right structure
- FIFO jobs / BFS / sliding failure window:
Queue - LIFO undo / nested layers / brackets:
Stack - Both ends O(1), capped window:
DequeorCircularBuffer - Index + mid-sequence edit/move/group:
List - Immutable history / branching / sharing:
ConsList - Typed sealed/frozen records:
Struct - Prefix autocomplete / string keys:
Trie - Extreme enqueue/dequeue volume only:
UnrolledList(no peek / interop) - Random access on a ring:
CircularBuffer.at(notDeque)
Complexity and surface
CircularBuffer— ends O(1), index O(1) viaatDeque/Queue/Stack— ends O(1); no index (atonly on buffer)UnrolledList— ends O(1); no peek / interopList— ends O(1), index O(n)ConsList—prependO(1), walk O(n)Trie— string-key prefix map
Who has what (beyond size / isEmpty where present):
fromArray/toArray/ iterator: all exceptUnrolledList(andTrie)peek:Queue,Stackat:CircularBufferonlyevery/reduce:CircularBuffer,Deque,Stack(notQueue)clear/includes: ring family +List+Trie.clear; notConsList/UnrolledList
Interoperability
Convert through Array:
const list = List.fromArray([1, 2, 3, 4, 5]);
const queue = Queue.fromArray(list.filter((n) => n % 2 === 0).toArray());
const consList = ConsList.fromArray(queue.toArray());
Deque, Queue, and Stack are thin facades over CircularBuffer (same ring storage).
Struct
Schema is inferred from default literals. Immutable uses Object.freeze; mutable uses Object.seal. Class name becomes constructor.name. Statics: fields, schema, mutable.
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.
- 9d ago First seen · 210 lines · 75 tokens per session scan A 1daa5d301854
metautil-data-structures is a skill published in the GitHub repository metarhia/metaskills (49 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 2,426 once invoked, about $0.0004 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.
Other skills, from other repositories
zcfg
Integrate zcfg (Zero Dependency Configuration Utility) into Java applications. Use when adding configuration loading, reading properties files, setting up application configuration, or integrating zcfg into a Java project. Triggers on "zcfg", "add configuration", "load properties", "application configuration with…
zcl
Add colored terminal output to Java applications using zcl (Zero-dependency Colour Logger). Use when adding colored console output, terminal logging with colors, ANSI color support, or integrating zcl into a Java project. Triggers on "zcl", "colored output", "colored logging", "terminal colors", "ANSI colors"…
zjson
Use JSON in zero-dependency Java by copying the org.json source (JSONObject, JSONArray, JSONTokener) directly into the project instead of adding a Maven/Gradle dependency. Use when adding JSON parsing or generation to a Java CLI script, zb project, or any project that must stay dependency-free. Triggers on "JSON in…
java-cli-app
Create and maintain multi-file Java 25 CLI applications packaged as executable JARs with zb (Zero Dependencies Builder). Use when asked to create a Java CLI application, a CLI project with multiple source files, or an executable JAR. Triggers on "Java CLI app", "CLI application", "multi-file Java", "executable JAR"…
zargs
Add zero-dependency argument parsing to Java CLI applications using the zargs pattern — an enum-based argument parser. Use when adding CLI argument parsing, command-line option handling, or adding options to a Java project. Triggers on "zargs", "argument parsing", "CLI arguments", "command-line options", "parse…
zunit
Generate and run zunit tests for java-cli-app projects. Use when asked to create tests, write tests, add tests, or generate test files for a java-cli-app project. Triggers on "zunit", "write tests", "create tests", "add tests", "test this", "generate tests", or requests to test a java-cli-app application. Also trigger…