agentleFS
MomSesImSpclMomSesImSpcl/Unity-Performance/skills/unity-performance/SKILL.md

unity-performance

Skill1 starsChanged 45 days agoMITView on GitHub

Unity performance optimization. Use when the user asks to optimize a class, view, function, folder or an entire module, or mentions stutter, lag, frame drops, low FPS, jank, overheating, battery drain, GC allocation, memory leaks, DrawCalls, batching, overdraw, slow loading, large build size, Profiler, PerfDog, or crash rates. Also covers pure C# micro-optimization: algorithmic complexity, memory layout, SIMD, and compiler-level tuning. Fixing individual allocations found while optimizing belongs here; a committed plan to make a whole system allocation-free with regression guards belongs to csharp-zero-gc.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Focused explanation or technique question: read only the matching technical reference below.

    line 12
  2. Distinctive:

    Symptom diagnosis: read core rules and diagnosis, then the implicated profiling/subsystem reference.

    line 13
  3. Distinctive:

    Project-code review or optimization: follow the full workflow below.

    line 14
  4. Distinctive:

    Device acceptance or live incidents: read core rules, diagnosis, device acceptance, and the implicated field-operations reference.

    line 15
  5. Distinctive:

    Before delivering findings or making changes, read finding validation and reporting.

    line 24
  6. Distinctive:

    Read a row when the task involves its topic.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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

unity-performance

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 or technique question: read only the matching technical reference below. Load runtime premises when the answer depends on runtime/compiler compatibility.
  • Symptom diagnosis: read core rules and diagnosis, then the implicated profiling/subsystem reference. Read runtime premises before runtime-dependent recommendations.
  • Project-code review or optimization: follow the full workflow below; scale the report to the target as the execution rules require.
  • Device acceptance or live incidents: read core rules, diagnosis, device acceptance, and the implicated field-operations reference. Follow the full workflow if this expands into code optimization.

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. For a project-code review or optimization, read core rules and execution strategy. Confirm the target assembly, platform and scope.
  2. Then read the review method: exploration operators, coverage dimensions and the coverage inventory. Explore first; use the applicable technical references below to catch omissions afterward. Read runtime premises and optimization ladder before recommending anything whose support depends on the runtime or compiler (Span, unsafe, SIMD, inlining, new value-type generics, hot-update assemblies), or when choosing which optimization layer to work on.
  3. For symptom diagnosis, read diagnosis; load profiling or the implicated subsystem reference as evidence narrows the problem.
  4. Before delivering findings or making changes, read finding validation and reporting. Preserve the complete-review-before-editing rule, evidence requirements and change tiers.
  5. For device acceptance or live incidents, also read device acceptance.

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
baseline-antipatterns.mdFinal omission sweep after exploration, not the main review loop. Group A: algorithms and redundancy; group B: API and lifecycle anti-patterns. Numbered for citation
benchmarking.mdBenchmarking methodology: no numbers, no optimization
csharp-hotpath.mdHot-path allocation sources and their standard fixes
Allocation inventoryEnumeration/boxing edge cases including Transform children, implicit delegates, and allocation sources missing from the hot-path reference; for a focused explanation, read the matching paragraph only
engine-rendering.mdRendering, physics, asset memory, build size, loading, and Unity 6 features
jit-il2cpp-tricks.mdCompiler-layer techniques: JIT / IL2CPP behavior and how to steer it (including unsafe as a last resort)
jobs-burst-dots.mdJob System / Burst / ECS: moving heavy computation off the main thread and vectorizing it
memory-gc-internals.mdExtreme optimization at the memory layer: GC internals, struct layout, cache friendliness
profiling.mdThe bottleneck isn't located yet, or the user needs to learn how to capture data
span-collections-simd.mdThe Span family, collection internals, SIMD, and concurrency
tencent-optimization-playbook.mdTencent field optimization handbook (integrating UPA / WeTest / Bugly official practice)
ui-ugui-tmp.mdUGUI / TextMeshPro specific optimization
wetest-bugly-fieldops.mdOn-device acceptance and live-ops remediation: WeTest (PerfDog) + Bugly/CrashSight

The references are validated criteria and standard implementations: a safety net and a source for citations, not a ceiling. Propose something better when you have it.

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.