Garbage Collection
SkillMediaExpert skill for garbage collector design and implementation including various collection algorithms
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Garbage Collection skill
What this skill tells your AI
The instructions your AI receives, as published by a5c-ai/babysitter in library/specializations/programming-languages/skills/garbage-collection/SKILL.md and read by ahel’s review.
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
- Algorithm Selection: Start with simple mark-sweep, evolve to generational as needed
- Write Barriers: Design write barriers early if considering generational/concurrent GC
- Root Scanning: Implement precise root scanning for safety
- Pause Times: Measure pause times and optimize for application requirements
- 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" }
}
}
}
Signals
- GitHub stars
- 2k
- Forks
- 112
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
garbage-collection- Source
- github.com/a5c-ai/babysitter