agentsclimarketplace

Memory allocator

Skill a5c-ai/babysitter/library/specializations/programming-languages/skills/memory-allocator

Babysitter enforces obedience on agentic workforces and enables them to manage extremely complex tasks and workflows through deterministic, hallucination-free self-orchestration

Install
npx -y skills add a5c-ai/babysitter --skill memory-allocator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Expert skill for custom memory allocator design optimized for language runtime needs

SKILL.md

1.9 KB, as published. Nobody here has run it

Memory Allocator Skill

Overview

Expert skill for custom memory allocator design optimized for language runtime needs.

Capabilities

  • Implement bump/arena allocators
  • Implement free-list allocators with size classes
  • Design slab allocators for fixed-size objects
  • Implement thread-local allocation buffers (TLAB)
  • Handle large object allocation strategies
  • Implement memory pooling and recycling
  • Design memory profiling and statistics
  • Implement address space layout optimization

Target Processes

  • memory-allocator-design.js
  • garbage-collector-implementation.js
  • interpreter-implementation.js
  • bytecode-vm-implementation.js

Dependencies

jemalloc, tcmalloc references

Usage Guidelines

  1. Size Classes: Design size classes to minimize internal fragmentation
  2. Thread Safety: Use thread-local allocation for hot paths
  3. Large Objects: Handle large objects separately from small allocations
  4. Profiling: Build allocation statistics from the start
  5. GC Integration: Design allocator API with GC integration in mind

Output Schema

{
  "type": "object",
  "properties": {
    "allocatorType": {
      "type": "string",
      "enum": ["bump", "free-list", "slab", "hybrid"]
    },
    "sizeClasses": {
      "type": "array",
      "items": { "type": "integer" }
    },
    "threadSafety": {
      "type": "string",
      "enum": ["single-threaded", "tlab", "lock-free"]
    },
    "generatedFiles": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.