agentleFS
MomSesImSpclMomSesImSpcl/Unity-Performance/skills/csharp-zero-gc/SKILL.md

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.

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
  1. Distinctive:

    Allocation inventory, remediation or engineering plan: follow the full workflow below.

    line 13
  2. Distinctive:

    Rough lead list: follow inventory and validation requirements.

    line 14
  3. Distinctive:

    Read commitment tiers and rollout before choosing a scope.

    line 20
  4. Distinctive:

    Read only the technical references needed for the current patterns, library choices or regression guards.

    line 22
  5. Very specific:

    Before reporting findings, read the pseudo-optimization checks (shared with unity-performance) and output requirements.

    line 23
  6. Distinctive:

    Before delivering an engineering plan, read and execute independent adversarial review.

    line 24
  7. Distinctive:

    Read a row when the task involves its topic.

    line 28

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Read commitment tiers and rollout before choosing a scope. Declare L1, L2 or L3 and its acceptance boundary.
  2. For an allocation inventory or remediation, read allocation inventory and execution strategy. Follow the committed call chain and classify every allocation site.
  3. Read only the technical references needed for the current patterns, library choices or regression guards.
  4. Before reporting findings, read the pseudo-optimization checks (shared with unity-performance) and output requirements.
  5. 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.

ReferenceTopic / when to read
guardrails.mdZero-GC guardrails: keeping the gains from being eaten by everyday commits
zero-alloc-libraries.mdChoosing frontier zero-allocation libraries (2025–2026 ecosystem)
zero-alloc-patterns.mdZero-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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.