GameMaker Language (GML) rules for scripts, objects, events, rooms, data structu

GameMaker Language (GML) rules for scripts, objects, events, rooms, data structu is a skill for Claude Code, Codex from AmariahAK/atlarix-skills. It costs 20 tokens per session (576 once invoked), scanned A, original, Apache-2.0.

Coding guidance for GameMaker Language, the programming language used to make games in GameMaker. It covers scripts, game objects, events, rooms, data structures, and performance-minded organization.

In plain words
What is it for?
Use it when writing or reviewing GML scripts and object events, organizing reusable functions, managing game state and references, and improving runtime performance.
Why use it?
It helps keep game code understandable as a project grows and reduces repeated or misplaced logic between initialization, simulation, and drawing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing or reviewing GML scripts and object events, organizing reusable functions, managing game state and references, and improving runtime performance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amariahak/atlarix-skills/acr-gamemaker-gml
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 AmariahAK/atlarix-skills --skill acr-gamemaker-gml
Clone the repo
git clone --depth 1 https://github.com/AmariahAK/atlarix-skills

Made for: Claude Code, Codex.

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 GameMaker Language (GML) rules for scripts, objects, events, rooms, data structu

README.md
[![agentmods](https://agentmods.dev/badge/skills/amariahak/atlarix-skills/acr-gamemaker-gml/github.svg)](https://agentmods.dev/skills/amariahak/atlarix-skills/acr-gamemaker-gml)
Your own site
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/acr-gamemaker-gml"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/acr-gamemaker-gml/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 GameMaker Language (GML) rules for scripts, objects, events, rooms, data structu

Your own site · 80×15
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/acr-gamemaker-gml"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/acr-gamemaker-gml.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 576 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.00020 $0.00576
Opus 5 $0.00010 $0.00288
Sonnet 5 $0.00004 $0.00115
Haiku 4.5 $0.00002 $0.00058

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

Security

Grade A, and why

GameMaker Language (GML) rules for scripts, objects, events, rooms, data structu 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/acr-gamemaker-gml/SKILL.md · 65 lines

How it starts

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

GameMaker Language (GML) rules for scripts, objects, events, rooms, data structu

When to use this skill

GameMaker Language (GML) rules for scripts, objects, events, rooms, data structures, and performance-minded game code

Source

Synced from https://github.com/PatrickJS/awesome-cursorrules/tree/main/rules/gamemaker-gml.mdc.

GameMaker GML Rules

Code Organization

  • Keep object event code short and move reusable behavior into scripts or functions.
  • Use clear prefixes or naming conventions for scripts, objects, sprites, rooms, and globals.
  • Prefer functions over copy-pasted event blocks.
  • Keep create-step-draw responsibilities separate.
  • Put initialization in Create, simulation in Step, and rendering-only work in Draw.

GML Style

  • Use descriptive variable names and avoid one-letter names outside small loops.
  • Prefer local variables with var or function-scoped declarations over unnecessary instance variables.
  • Use constants, enums, and macros for repeated identifiers, layer names, states, and collision groups.
  • Guard optional instance references with instance_exists.
  • Keep global state minimal and document it.

Gameplay Architecture

  • Use finite state machines for player, enemy, UI, and game-flow states.
  • Keep collision logic explicit and deterministic.
  • Separate input collection from action execution.
  • Use alarms, timelines, or explicit timers consistently; do not mix patterns without reason.
  • Store save data through structured maps/structs and version the save format.

Performance

  • Avoid expensive searches such as broad instance_find or repeated collision scans in every Step event.
  • Cache frequently used asset IDs, layer IDs, and object references when safe.
  • Destroy data structures when no longer needed.
  • Use object pooling for frequent projectiles, particles, or short-lived effects when allocation becomes costly.
  • Profile before optimizing and keep hot-path code simple.

Debugging and Testing

  • Add debug overlays for collision boxes, state, velocity, and AI decisions when useful.
  • Use assertions or explicit guard clauses for impossible states.
  • Test room transitions, pause/resume, save/load, and controller/keyboard input separately.
  • Keep reproducible test rooms for complex mechanics.

Read the full file on GitHub · 65 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 65 lines · 20 tokens per session scan A bfa476df8667

Subscribe to this mod's changes

GameMaker Language (GML) rules for scripts, objects, events, rooms, data structu is a skill published in the GitHub repository AmariahAK/atlarix-skills (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 20 tokens to every session and 576 once invoked, about $0.0001 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

typescript-project

Modern TypeScript project architecture guide for 2025. Use when creating new TS projects, setting up configurations, or designing project structure. Covers tech stack selection, layered architecture, and best practices.

majiayu000/spellbook · 42 tokens

idea-team

A structured group discussion for exploring a product idea through three roles: researcher, critic, and analogy finder. The roles look for evidence, weaknesses, and useful comparisons.

majiayu000/spellbook · 182 tokens

zig-project

Modern Zig project architecture guide. Use when creating Zig projects (systems programming, CLI tools, game dev, high-performance services). Covers explicit allocators, comptime, error handling, and build system.

majiayu000/spellbook · 43 tokens

claude-code-reverse

A read-only method for inspecting authorized local executable files and release binaries, including Mach-O, ELF, PE, WebAssembly, and packaged applications. Static analysis examines a file without running it.

majiayu000/spellbook · 123 tokens

css-debug

Use this skill to diagnose CSS and frontend layout issues such as positioning, overflow clipping, Tailwind class conflicts, z-index stacking, and React rendering visibility problems.

majiayu000/spellbook · 35 tokens

skill-lifeguard

Use when a skill is brittle, drifting, repeatedly failing, or needs a Reliable Skill Contract. Trigger for phrases like skill lifeguard, reliable skill, self-maintaining skill, negative examples, verification checkpoints, drift signals, replay hooks, or failure log to skill patch. Audits or patches skills so…

majiayu000/spellbook · 92 tokens