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.5 | $0.00030 | $0.00970 |
| Sonnet 5.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 3mo 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.
- 3mo 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 (61 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 2,426 once invoked, about $0.0003 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.
metautil-data-structures compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| metautil-data-structuresmetarhia/metaskills | Skill | 61 | 1mo ago | MIT | A | 75 | Claude Code, Codex |
| jakarta-data-persistenceAdamBien/airails | Skill | 76 | 2d ago | MIT | A | 199 | Claude Code |
| zcfgAdamBien/airails | Skill | 76 | 2d ago | MIT | A | 75 | Claude Code |
| zclAdamBien/airails | Skill | 76 | 2d ago | MIT | A | 85 | Claude Code |
| memory-persistenceAdamBien/airails | Skill | 76 | 2d ago | MIT | A | 161 | Claude Code |
| java-cli-appAdamBien/airails | Skill | 76 | 2d ago | MIT | A | 106 | Claude Code |
| zargsAdamBien/airails | Skill | 76 | 2d ago | MIT | A | 90 | Claude Code |