agentsclimarketplace

Garbage collection

Skill a5c-ai/babysitter/library/specializations/programming-languages/skills/garbage-collection

Expert skill for garbage collector design and implementation including various collection algorithmsFrom its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill garbage-collection

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

SKILL.md

2.1 KB, 391 tokens by cl100k_base, as published. Nobody here has run it

Garbage Collection Skill

Overview

Expert skill for garbage collector design and implementation including various collection algorithms.

Capabilities

  • Implement mark-sweep collection
  • Implement copying/semi-space collectors
  • Implement generational collection with write barriers
  • Implement concurrent/incremental marking (tri-color)
  • Design object header layouts and type info
  • Implement precise vs conservative root scanning
  • Design card table and remembered set implementations
  • Implement finalizers and weak references

Target Processes

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

Dependencies

GC Handbook literature (Jones, Hosking, Moss)

Usage Guidelines

  1. Algorithm Selection: Start with simple mark-sweep, evolve to generational as needed
  2. Write Barriers: Design write barriers early if considering generational/concurrent GC
  3. Root Scanning: Implement precise root scanning for safety
  4. Pause Times: Measure pause times and optimize for application requirements
  5. Testing: Build GC stress tests and allocation-heavy benchmarks

Output Schema

{
  "type": "object",
  "properties": {
    "algorithm": {
      "type": "string",
      "enum": ["mark-sweep", "copying", "mark-compact", "generational", "concurrent"]
    },
    "writeBarrier": {
      "type": "string",
      "enum": ["none", "card-table", "remembered-set", "snapshot-at-beginning", "incremental-update"]
    },
    "rootScanning": {
      "type": "string",
      "enum": ["conservative", "precise"]
    },
    "generatedFiles": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}

What ships with it: 1 file

905 B alongside SKILL.md

Keep looking

Skills are one crate of 326,059. 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.