libgdx-collections-json

libgdx-collections-json is a skill for Claude Code from kyu-n/gdx-claude-skills. It costs 103 tokens per session (3,124 once invoked), scanned A, original, MIT.

A set of libGDX utility classes for collections, object pooling, JSON data, localization, timers, and other common tasks. Object pooling reuses objects instead of repeatedly creating and discarding them.

In plain words
What is it for?
Use it for arrays, maps, sets, queues, reusable objects, JSON serialization, translated text, scheduled actions, time measurements, and background tasks.
Why use it?
These utilities can reduce temporary objects and the pauses caused by Java garbage collection, which is especially useful on Android. They also provide libGDX-specific ways to store data and load or save JSON.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gdx-claude-skills plugin — 28 skills shipped together

Good fit Use it for arrays, maps, sets, queues, reusable objects, JSON serialization, translated text, scheduled actions, time measurements, and background tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kyu-n/gdx-claude-skills/libgdx-collections-json
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.

Any agent
npx skills add kyu-n/gdx-claude-skills --skill libgdx-collections-json
Clone the repo
git clone --depth 1 https://github.com/kyu-n/gdx-claude-skills

Made for: Claude Code.

Or install gdx-claude-skills, the plugin that ships this one along with the rest of its 28 skills.

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 libgdx-collections-json

README.md
[![agentmods](https://agentmods.dev/badge/skills/kyu-n/gdx-claude-skills/libgdx-collections-json/github.svg)](https://agentmods.dev/skills/kyu-n/gdx-claude-skills/libgdx-collections-json)
Your own site
<a href="https://agentmods.dev/skills/kyu-n/gdx-claude-skills/libgdx-collections-json"><img src="https://agentmods.dev/badge/skills/kyu-n/gdx-claude-skills/libgdx-collections-json/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.

agentmods 80×15 button for libgdx-collections-json

Your own site · 80×15
<a href="https://agentmods.dev/skills/kyu-n/gdx-claude-skills/libgdx-collections-json"><img src="https://agentmods.dev/badge/skills/kyu-n/gdx-claude-skills/libgdx-collections-json.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,124 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00103 $0.03124
Opus 5 $0.00051 $0.01562
Sonnet 5 $0.00021 $0.00625
Haiku 4.5 $0.00010 $0.00312

Measured 12d ago against content hash 468b747a8880, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

libgdx-collections-json 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 12d 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.

skills/libgdx-collections-json/SKILL.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.

libGDX Collections, Pooling, JSON & Utilities

Quick reference for com.badlogic.gdx.utils.* — libGDX's GC-friendly collections, object pooling, JSON serialization, and utility classes. These replace java.util.* equivalents to reduce garbage collection pressure, especially on Android.

Array<T> — ArrayList Replacement

Array<String> arr = new Array<>();                   // also: new Array<>(capacity), new Array<>(ordered, capacity)

Public fields: T[] items (backing array), int size (element count), boolean ordered.

Key methods: add, get, set, insert, swap, pop, peek, first, clear, sort, reverse, shuffle, truncate, shrink, ensureCapacity, isEmpty, notEmpty, select(predicate).

CRITICAL — identity parameter required: removeValue(item, identity), contains(item, identity), indexOf(item, identity), lastIndexOf(item, identity). identity=true uses ==, identity=false uses .equals(). There is no single-argument overload.

There is NO remove(Object) method. It is removeValue(value, identity) or removeIndex(int).

Gotchas:

  • items array may be larger than size — iterate with for (int i = 0; i < arr.size; i++), never items.length.
  • items[i] past size contains stale references — always check i < size.
  • DO NOT modify Array during for-each iteration. Use DelayedRemovalArray, SnapshotArray, or manual index loop.
  • When ordered is false, removeIndex() swaps the last element into the gap (O(1)) instead of shifting (O(n)).

DelayedRemovalArray<T> / SnapshotArray<T>

Both wrap begin()/end() around iteration. DelayedRemovalArray queues removals during iteration, applies at end() (returns void from begin()). SnapshotArray takes a snapshot; begin() returns T[] to iterate, modifications go to a copy. Both support nested begin()/end(). Used internally by Scene2D.

ObjectMap<K,V> — HashMap Replacement

ObjectMap<String, Integer> map = new ObjectMap<>();
map.put("hp", 100);                                  // returns old value or null
map.get("hp");  map.get("hp", 0);                    // null or default
map.remove("hp");  map.containsKey("hp");
map.containsValue(100, false);                        // identity param on values too

Read the full file on GitHub · 206 lines

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. 12d ago First seen · 206 lines · 103 tokens per session scan A 468b747a8880

Subscribe to this mod's changes

libgdx-collections-json is a skill published in the GitHub repository kyu-n/gdx-claude-skills (4 stars, last pushed 7mo ago), licensed MIT. It adds 103 tokens to every session and 3,124 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

maintaining-modding-environments

Use after first-run for ongoing modpack maintenance: update/install KB packs, author or register custom/mod KB packs, maintain localization glossary KBs for translator use, prune KB cache, health-check the environment, version-pin KB/tooling, or handle recurring BGS modding environment care.

hashgraph-online/awesome-codex-plugins · 65 tokens

using-bgs-translator

A translation workflow for Bethesda Game Studios plugins, which are game modification files such as .esp, .esm, and .esl. It prepares the plugin text for AI translation and exports files that xTranslator can use.

hashgraph-online/awesome-codex-plugins · 94 tokens

dialogue-systems

Build branching dialogue and narrative — a node/choice graph with conditions, variables, and localization hooks — and choose between authoring tools Ink and Yarn Spinner or a custom data-driven runner. Engine-neutral. Use when the user mentions dialogue system, branching dialogue, conversation tree, choices, Ink…

gamedev-skills/awesome-gamedev-agent-skills · 75 tokens

localize

Full localization pipeline: scan for hardcoded strings, extract and manage string tables, validate translations, generate translator briefings, run cultural/sensitivity review, manage VO localization, test RTL/platform requirements, enforce string freeze, and report coverage.

Donchitos/Claude-Code-Game-Studios · 50 tokens

tiktok-shop-cross-border

Cross-border selling on TikTok Shop. Market selection, logistics setup, localization strategy, compliance requirements, and international expansion. Use when the user asks about TikTok Shop international selling, cross-border ecommerce, global expansion, or selling in multiple countries.

nexscope-ai/eCommerce-Skills · 55 tokens

localization-testing

AI-powered localization and internationalization testing skill for e-commerce sites. Designs multi-language QA frameworks, currency validation checks, shipping info verification, and regional compliance audits.

nexscope-ai/eCommerce-Skills · 0 tokens