csharp-zero-gc
Skill1 starsChanged 45 days agoMITView on GitHub
C# zero-GC engineering plans. Use when the user asks to make a system allocation-free, or mentions zero-GC, zero allocation, GC spikes, per-frame allocation budgets, object pooling systems, or preventing GC regressions. Produces a plan with commitment levels, acceptance criteria and regression guards, not a one-off code fix. For general stutter or FPS problems, or a single allocation found while optimizing, use unity-performance instead.
In this repository2 other files it gives its agents.
- code-standardsSkill
- unity-performanceSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Allocation inventory, remediation or engineering plan: follow the full workflow below.
- Distinctive: line 14
Rough lead list: follow inventory and validation requirements.
- Distinctive: line 20
Read commitment tiers and rollout before choosing a scope.
- Distinctive: line 22
Read only the technical references needed for the current patterns, library choices or regression guards.
- Very specific: line 23
Before reporting findings, read the pseudo-optimization checks (shared with unity-performance) and output requirements.
- Distinctive: line 24
Before delivering an engineering plan, read and execute independent adversarial review.
- Distinctive: line 28
Read a row when the task involves its topic.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
csharp-zero-gc
Use progressive disclosure: read the required workflow references at the stage where they apply, and only the technical references relevant to the task. Do not bulk-load this directory or sibling skills. References contain binding original rules, not optional background. Loading less must not omit an applicable requirement.
Choose the task
- Focused explanation of an allocation pattern, library or guardrail: read only the corresponding technical reference below. For commitment tiers and acceptance criteria, read commitment tiers.
- Allocation inventory, remediation or engineering plan: follow the full workflow below. Narrow code fixes still require applicable evidence and guardrails.
- Rough lead list: follow inventory and validation requirements; independent review defines the limited exception for this output.
Conceptual answers do not constitute project findings or acceptance. Do not initiate a project review for a conceptual question. Once making project-specific findings, proposing code changes or claiming a path is clean, apply the full relevant evidence, validation and reporting rules below.
Workflow
- Read commitment tiers and rollout before choosing a scope. Declare L1, L2 or L3 and its acceptance boundary.
- For an allocation inventory or remediation, read allocation inventory and execution strategy. Follow the committed call chain and classify every allocation site.
- Read only the technical references needed for the current patterns, library choices or regression guards.
- Before reporting findings, read the pseudo-optimization checks (shared with unity-performance) and output requirements.
- Before delivering an engineering plan, read and execute independent adversarial review. Preserve its required independent reviewer and the explicit rough-lead-list exception. Guardrails and acceptance measurements remain part of delivery.
Technical reference routing
Read a row when the task involves its topic. For broad reviews, select all implicated topics after reconnaissance; for a narrow question, select only that topic.
| Reference | Topic / when to read |
| guardrails.md | Zero-GC guardrails: keeping the gains from being eaten by everyday commits |
| zero-alloc-libraries.md | Choosing frontier zero-allocation libraries (2025–2026 ecosystem) |
| zero-alloc-patterns.md | Zero-allocation architecture pattern library (structural replacement, cures rebound) |
Related skills: unity-performance covers bottlenecks and engine optimization; csharp-zero-gc covers system allocation commitments and regression guards; code-standards covers conventions, design and orchestrated reviews. Load a sibling only when that distinct workflow is needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

