libgdx-android-backend

libgdx-android-backend is a skill for Claude Code from kyu-n/gdx-claude-skills. It costs 104 tokens per session (3,000 once invoked), scanned A, original, MIT.

A reference guide for writing libGDX game code that runs on Android. libGDX is a Java and Kotlin framework for making games, and the guide covers Android-specific startup, lifecycle, files, input, screen layout, and graphics context behavior.

In plain words
What is it for?
Use it when creating an Android launcher, manifest, or configuration for a libGDX game, or when handling pausing, resuming, screen density, file access, back-button input, sensors, and OpenGL settings.
Why use it?
Android has platform rules that can cause games to lose graphics state, mishandle files, or respond incorrectly to lifecycle and input events. The guide provides the relevant setup and implementation details.

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 when creating an Android launcher, manifest, or configuration for a libGDX game, or when handling pausing, resuming, screen density, file access, back-button input, sensors, and OpenGL settings.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kyu-n/gdx-claude-skills/libgdx-android-backend"><img src="https://agentmods.dev/badge/skills/kyu-n/gdx-claude-skills/libgdx-android-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,000 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.00104 $0.03000
Opus 5 $0.00052 $0.01500
Sonnet 5 $0.00021 $0.00600
Haiku 4.5 $0.00010 $0.00300

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

Security

Grade A, and why

libgdx-android-backend 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 11d 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-android-backend/SKILL.md · 279 lines

How it starts

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

libGDX Android Backend

Reference for Android-specific launcher setup, manifest configuration, lifecycle mapping, file access, input handling, screen density, safe insets, and threading.

Launcher Setup

AndroidApplication extends Activity. Call initialize() in onCreate():

public class AndroidLauncher extends AndroidApplication {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
        config.useAccelerometer = true;   // default true — set false to save battery
        config.useCompass = false;        // default true — set false to save battery
        config.useGyroscope = false;      // default false
        config.useImmersiveMode = true;   // hides nav/status bars — libGDX handles it fully
        config.numSamples = 2;            // MSAA anti-aliasing (0 = off)
        config.useWakelock = true;        // keeps screen on during gameplay
        config.useGL30 = false;           // set true for GL ES 3.0 (Gdx.gl30); null if false
        initialize(new MyGame(), config);
    }
}

Do NOT add manual immersive mode code (deprecated SYSTEM_UI_FLAG_* constants, onWindowFocusChanged(), visibility listeners). config.useImmersiveMode = true is sufficient — libGDX manages the system UI internally. Never show working SYSTEM_UI_FLAG code examples, even as a "what not to do" — users will copy them.

For Fragment-based hosting, use AndroidFragmentApplication instead of AndroidApplication. It extends Fragment and works with FragmentActivity.

AndroidManifest.xml

<activity
    android:name=".AndroidLauncher"
    android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
    android:screenOrientation="landscape"
    android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

Read the full file on GitHub · 279 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. 11d ago First seen · 279 lines · 104 tokens per session scan A 4f39c9671dcd

Subscribe to this mod's changes

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

gpt-pro

Operate ChatGPT Pro through Browser Use/Playwright or Computer Use. Use when the user asks Codex to ask GPT Pro, prompt GPT Pro, use ChatGPT Pro, send a prompt to ChatGPT Pro/GPT Pro, or wait for a GPT Pro result. Checks whether Browser Use/Playwright and/or Computer Use are available, asks for a first-run default…

scasella/codex-gpt-pro · 130 tokens

build-android-binary

Compile a PAM control's Android Kotlin module into the runtime-loadable DEX for a .ppmplugin. Creates a staged Gradle build with the pinned wrapper and react-android compile dependency, verifies manifest/module/package alignment and runtime-loading constraints, builds the release AAR, then runs d8 --min-api 24. Writes…

microsoft/power-platform-skills · 150 tokens

design-patterns

Common design patterns with Java examples (Factory, Builder, Strategy, Observer, Decorator, etc.). Use when user asks "implement pattern", "use factory", "strategy pattern", or when designing extensible components.

decebals/claude-code-java · 47 tokens

java-migration

Guide for upgrading Java projects between major versions (8→11→17→21→25). Use when user says "upgrade Java", "migrate to Java 25", "update Java version", or when modernizing legacy projects.

decebals/claude-code-java · 51 tokens

jpa-patterns

JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries). Use when user has JPA performance issues, LazyInitializationException, or asks about entity relationships and fetching strategies.

decebals/claude-code-java · 47 tokens

solid-principles

SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…

decebals/claude-code-java · 73 tokens