Agent skill
Garbage Collection
Expert skill for garbage collector design and implementation including various collection algorithms
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/garbage-collection
SKILL.md
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
- 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" }
}
}
}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?