/qq:best-practicefrom qq
Quick Unity best-practice check for C# code — catches anti-patterns, performance issues, and runtime safety problems after editing.
Ships in qq. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run qq scripts as
${CLAUDE_PLUGIN_ROOT}/bin/<name>: they are not on PATH, so a bareqq-policy-check.shexits 127.
Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).
Quick best-practice check for Unity C# code: anti-patterns, performance traps and runtime safety issues in what just changed.
Arguments: $ARGUMENTS
With --auto, first make sure a pipeline tracks this run, so the handoff at the end can advance it: qq-execute-checkpoint.py pipeline-start --project . --type feature --current-skill "/qq:best-practice" --branch "$(git branch --show-current)" --if-not-running. It starts one only when none is running here (you were invoked on your own) and leaves a running one alone.
git diff --name-only HEAD -- '*.cs'If qq-policy-check.sh is available, run it first against the selected scope:
qq-policy-check.sh --json <files...>
Treat those results as established findings — don't rediscover them; add contextual review, prioritization, explanation and fix suggestions on top.
FindObjectOfType / FindObjectsOfType
Assets/Editor/, inside #if UNITY_EDITOR blocks) may use theseMessage system calls with untyped object[] parameters
Accessing shared data in Awake/Start
Caching a read-only interface reference then mutating through it
SendMessage / BroadcastMessage / SendMessageUpwards
Unsolicited UI code changes
GetComponent in Update / FixedUpdate / LateUpdate
[SerializeField]Per-frame heap allocations
new List, new Dictionary, string + or $"" interpolation, .ToString(), LINQ queries (.Where, .Select, .ToList), lambda closuresCoroutines started without cleanup
gameObject.tag == string comparison
CompareTag() (allocation-free)Event subscription without unsubscription
+= needs a matching -= (subscribe in OnEnable, unsubscribe in OnDisable)Missing [RequireComponent] for GetComponent dependencies
GetComponent<T>() and the result is used without null check, the class should have [RequireComponent(typeof(T))]Circular dependency risk
using directives do not violate the project's established dependency directionMissing .asmdef references
Incorrect namespace conventions
Public fields instead of [SerializeField] private
[SerializeField] private for Inspector-assigned fieldsExcessive null checks
Missing documentation comments
Also apply the project's own coding rules from CLAUDE.md and AGENTS.md (read AGENTS.md if it exists).
Group output by severity:
## 🔴 Critical (High severity — must fix)
- [file:line] Issue description → suggested fix
## 🟠 Moderate (Medium severity — should fix)
- [file:line] Issue description → suggested fix
## 🟡 Suggestions (Notice — nice to fix)
- [file:line] Issue description → suggested fix
## ✅ Code Quality Highlights
- Brief list of things done well
qq-policy-check.sh --json if availableAfter the check completes, recommend the next step:
/qq:test to verify, or /qq:claude-code-review for a deeper review?"/qq:test?"/qq:test anyway, or fix first?"--auto mode: skip asking, take the strictest path:
auto-fix all issues, then run qq-execute-checkpoint.py pipeline-advance --project . --completed-skill "/qq:best-practice" --next-skill "/qq:claude-code-review", then invoke /qq:claude-code-review --auto.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tykisgod/quick-question --plugin qq28 skills in this plugin
/add-tests0. Read qq project state first when availableAuthor Unity EditMode, PlayMode, or regression tests for the current change without conflating that with test execution./bootstrapPhase 1: Understand the VisionDecompose a high-level game vision (pillars + rules + references) into executable epics, then orchestrate the full qq pipeline for each. Use when starting a new project, bootstrapping a prototype from a pitch, or breaking a large initiative into parallel workstreams./briefExecution StepsCompare the current branch against its base branch and generate two review documents: architecture change diagram + PR review checklist./changesBehaviorSummarize all changes Claude Code made during this conversation./claude-code-reviewReview Scope Selection (no scope argument)Deep code review via a separate Claude CLI run — reviews uncommitted changes by default, loops until no critical issues remain. Use after implementation (e.g. /qq:execute), before /qq:test and /qq:commit-push./claude-plan-reviewExecution FlowSend a design document to a separate Claude CLI run for review, then revise the document based on findings. Automatically loops until no critical issues remain or 5 rounds are complete.Other plugins' skills for the same job