agentleFS
MomSesImSpclMomSesImSpcl/Unity-Performance/skills/code-standards/SKILL.md

code-standards

Skill1 starsChanged 45 days agoMITView on GitHub

Unity C# coding standards, write-time performance rules and code review. Use whenever writing, editing or refactoring Unity C# scripts (MonoBehaviours, gameplay systems, UI, managers), even if the user doesn't mention performance or standards, so code is written fast and allocation-free from the start. Also use when the user mentions coding standards or conventions, writing code to spec, defining standards for a project, cohesion and coupling, design pattern selection, or naming conventions, or wants a code review on the design and standards dimension. A review aimed at speed, frame rate or memory belongs to unity-performance.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use code-review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 5

    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 convention or design explanation: read the matching technical reference below.

    line 12
  2. Distinctive:

    Writing or editing Unity C# code: follow workflow step 1.

    line 13
  3. Distinctive:

    Defining standards or writing other languages: follow workflow steps 2–3.

    line 14
  4. Distinctive:

    Reviewing project code: follow the complete workflow, including independent final review.

    line 15
  5. Distinctive:

    Read a row when the task involves its topic.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 15 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

code-standards

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 convention or design explanation: read the matching technical reference below. State that these are plugin defaults; project conventions take precedence.
  • Writing or editing Unity C# code: follow workflow step 1.
  • Defining standards or writing other languages: follow workflow steps 2–3.
  • Reviewing project code: follow the complete workflow, including independent final review.

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. Writing or editing Unity C# code: read Unity C# write-time rules. It covers the core rules and the C#/Unity hard rules for writing, so don't also load core-rules or language-hard-rules. Load another reference below only when the code needs that depth (collection choice, pattern choice, naming detail). Write the code to those rules from the start rather than fixing it afterwards.
  2. Defining standards, reviewing code, or writing in another language: read applicability, hard rules and writing requirements and the relevant language section of language-hard-rules.md. Repository conventions govern; preserve the distinction between HARD RULE and DEFAULT.
  3. For defining standards, survey the repository and produce keep / add / correct with toolchain configuration as required by the core rules.
  4. For a code review, read the complete review protocol before dispatching work. Execute its reconnaissance, four perspectives, merge, independent final review, severity and evidence requirements. Writing-only tasks do not load this protocol.
  5. Primary scope is C#/Unity. Consult other-language rules only for an explicit review in that language, adapting the Unity asset-evidence perspective as the preserved protocol requires.

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
unity-write-rules.mdWrite-time C#/Unity performance and correctness rules (workflow step 1). Can also be copied into a Unity project's .claude/rules/ so it loads for every .cs file
algorithm-efficiency.mdAlgorithmic efficiency and space discipline
cohesion-coupling.mdHigh cohesion, low coupling: actionable criteria and refactoring moves
design-patterns.mdDesign patterns: selection criteria and anti-patterns
language-hard-rules.mdLanguage-specific hard rules (C#/Unity · Go · C++ · Java · Lua)
naming-conventions.mdNaming and style: casing quick reference for C#, Go, C++ and Java, plus Lua

For cross-skill handoff details, consult sibling routing when the task crosses into performance or allocation engineering.

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.