Memory Management

Use when the user asks about game engine memory, arena allocators, pool allocators, frame allocators, fragmentation, memory tracking and budgets, cache-friendly layout or GC spikes. Produces an allocator hierarchy and budget tracking. Not for embedded static-only allocation (use c-cpp-patterns).

45 stars 6 forksProductivity & Notes

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill memory-management
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/game/game-engine/memory-management ~/.claude/skills/memory-management

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Game Engine Memory Management — Deep Engineering Guide

## Purpose
Memory behaviour is one of the most common sources of frame-time jank in shipped games. A 15 ms GC stop-the-world, a cache miss chain, or a fragmented heap turns a 60 FPS target into slideshow. This skill covers the full memory stack of a production game engine: from the raw allocator hierarchy, through cache-aware data layout, to memory tracking and GPU memory management.

## Agent Protocol

### Trigger
"game memory", "arena allocator", "pool allocator", "frame allocator", "memory fragmentation", "memory tracking", "cache layout", "GC spikes".

### Input Context
- Language/runtime (C++, C# with GC, Rust)
- Platform memory limits
- Profiler/tracker data

### Output Artifact
Allocator design and code plus a memory budget table. No file unless requested.

### Response Format
```
Allocator: {type, lifetime scope}
Budget: {category -> MB}
Code: {snippet}
Tracking: {how leaks/overruns are caught}
```

## 1. The Memory Model of a Game

### 1.1 Where Memory Goes

| Region | Owner | Illustrative budget (large PC title; set your own per platform) |
|--------|-------|--------------------------|
| Code + read-only data | OS loader | 50–200 MB |
| Simulation (ECS archetypes) | World/systems | 200–800 MB |
| Assets (textures, meshes, audio) | Asset manager | 1–4 GB |
| Render resources (VB/IB/UBO, RT) | Rendering backend | 1–3 GB |
| Per-frame scratch | Frame allocators | 32–256 MB (transient) |
Read the full skill on GitHub

Details

Skill name
memory-management
Path
skills/game/game-engine/memory-management/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Memory Management skill do?

Use when the user asks about game engine memory, arena allocators, pool allocators, frame allocators, fragmentation, memory tracking and budgets, cache-friendly layout or GC spikes. Produces an allocator hierarchy and budget tracking. Not for embedded static-only allocation (use c-cpp-patterns).

How do I install the Memory Management skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill memory-management. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Memory Management popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Rtos

45

j4flmao/agent-skills

Use when the user asks about FreeRTOS, task priorities, xTaskCreate, ISR-safe queues, mutex vs semaphore, priority inversion, task notifications, task stack overflow or Zephyr threads. Produces RTOS task design, ISR deferral and timing analysis. Not for bare-metal superloops (use c-cpp-patterns or bare-metal-rust).

Productivity & Notes

Enterprise Vendor Management

45

j4flmao/agent-skills

Use when the user asks about selecting a vendor or SaaS supplier, an RFP, vendor risk assessment, contract and SLA negotiation, vendor scorecards or exit planning. Produces vendor evaluation, risk and performance management plans. Not for build vs buy financials (use planning-cost-benefit) or hiring people (use management-hiring).

Productivity & Notes

Ask First

23

nathanonn/agent-skills

Ask clarifying questions before executing tasks. Use this skill whenever the user says "ask me questions first", "clarify before doing", "ask before you start", invokes /ask-first, or wants Claude to gather requirements through Q&A before taking action. Also trigger when the user provides a task prefixed with "ask:" or says things like "I need help figuring out how to..." or "help me think through...". This skill ensures nothing is assumed — Claude asks until 95% confident, then executes.

Productivity & Notes

Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.