best-practice

Review modified Unity C# files for anti-patterns and performance bottlenecks.

10|2|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/tykisgod/quick-question --skill best-practice-tykisgod
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: best-practice
Source: https://github.com/tykisgod/quick-question/tree/main/skills/best-practice
Command: npx skills add https://github.com/tykisgod/quick-question --skill best-practice-tykisgod

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually reviewing Unity C# code for hidden anti-patterns, performance bottlenecks, and runtime safety issues is slow and unreliable, often letting critical bugs and performance problems reach production game builds.

Core Features & Use Cases

  • Intelligent Scope Detection: Automatically targets only recently edited, user-specified, or uncommitted C# files to avoid wasteful full codebase scans.
  • Dual-Pass Review Pipeline: Runs a deterministic policy check first to flag high-confidence issues, then uses contextual AI analysis for prioritization, detailed explanations, and tailored fix suggestions.
  • Use Case: After updating a Unity enemy AI script, run this skill to immediately catch issues like uncached GetComponent calls in Update loops or missing event unsubscriptions that would cause memory leaks or silent failures in gameplay.

Quick Start

Use the best-practice skill to review all C# files you modified in your current Unity project for code quality and safety issues.

Frequently Asked Questions about best-practice

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Unity C# code for performance bottlenecks and anti-patterns?

Run a dual-pass review pipeline on recently modified Unity C# files to identify performance bottlenecks and anti-patterns. It combines deterministic policy checks with AI analysis to deliver prioritized fix recommendations without scanning the full codebase.

What are common Unity C# anti-patterns to catch before shipping a game?

Common Unity C# anti-patterns include uncached GetComponent calls in Update loops and missing event unsubscriptions. Scanning recently modified files against 18 predefined best-practice rules catches these runtime safety defects and memory leaks before they reach production game builds.

How do I run a code review on only recently modified Unity C# files?

Run a code review on recently modified Unity C# files using intelligent scope detection. The review automatically targets uncommitted or user-specified files to eliminate full codebase review overhead, ensuring only relevant code is scanned for safety defects and performance issues.

Can I automatically detect missing event unsubscriptions in Unity gameplay scripts?

Yes, automatically detect missing event unsubscriptions in Unity gameplay scripts by enforcing 18 predefined best-practice rules. This catches memory leaks and silent failures in recently edited C# files before they impact production game builds.

Does this code review tool integrate with external deterministic policy checkers for Unity projects?

Yes, this Unity C# code review integrates with external deterministic policy checkers. It runs a dual-pass pipeline that flags high-confidence issues first, then applies contextual AI analysis for prioritization and tailored fix suggestions.

What is the best way to catch runtime safety defects in Unity C# code post-edit?

The best way to catch runtime safety defects in Unity C# code post-edit is a dual-pass review pipeline. It enforces 18 predefined best-practice rules on recently modified files and delivers prioritized fix recommendations for all identified issues.