/unity-coding-skills:resolve-diagnostics <file paths>from unity-coding-skills
Resolves compiler errors, Roslyn analyzer findings, and IDE inspections at warning or higher severity for specified C# files. Use when asked to fix warnings or static analysis findings.
Ships in unity-coding-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Resolves diagnostics from the compiler, Roslyn analyzers, and IDE inspections at the warning or higher severity level for the given files, reformats them to the solution's code style, then runs the tests.
One or more file or directory path arguments.
Resolve them with ${CLAUDE_SKILL_DIR}/scripts/resolve_targets.sh <unity-project-root> <path>... — it prints the project-root-relative path of every .cs file in the solution, one per line, in the form lint_files, get_file_problems, and reformat_file expect, and reports each dropped path (docs, .meta, .asmdef, assets, files outside the solution) on stderr.
Use that list as-is.
If no path argument is given, use AskUserQuestion to ask the user for the targets.
Do not derive targets from git status — that would silently widen the scope beyond what was requested.
If the script exits with code 3, stop and report that — there is nothing to resolve.
code-writing-guide skill — do not rely on automatic skill triggering.
Every fix applied in Step 2 must follow it.resources/diagnostics-review-feedback.md before deciding any diagnostic in Step 2.Never leave a warning-or-higher diagnostic unaddressed — each one is either fixed or explicitly suppressed per the criteria just read.
Resolve diagnostics at the warning or higher severity level, collecting them for all resolved files via lint_files rather than one file at a time.
By default the tools also return suggestion- and hint-level results — those are out of scope, with one exception: a suggestion-level diagnostic related to performance (execution speed, memory allocation, boxing, etc.) should be considered for fixing too, though it never requires suppression when declined.
Both lint_files and its fallback get_file_problems require Rider 2026.2 or later.
lint_files — pass every resolved file in one call
get_file_problems, called once per filetimedOut or more result, retry the outstanding file(s) with get_file_problemsAskUserQuestion to confirm the user is running Rider 2026.2 or later before retrying furtherrename_refactoring / safe_delete so references are updated across the solutionDo not use mcp__ide__getDiagnostics (limited to files open in editor tabs) or the Unity compiler output (does not reflect .editorconfig severity settings).
Call reformat_file once with the full list of files resolved in Input (not one call per file), passing rootFolder as the project/solution root.
If any file was modified in Step 2 — a fix or a suppression — load the run-tests skill (do not rely on automatic skill triggering) and run the tests for the affected assemblies, then confirm they still pass.
Step 3's reformatting alone does not change behavior, so skip this step when Step 2 applied no changes.
If any diagnostic was suppressed rather than fixed, list each one for the user together with its reason. The suppression site itself already carries a "why not" comment per the Step 1 criteria.
Also list any files skipped in Step 2 as not analyzed, together with the reason given.
Also list any diagnostics handled under the Gotchas below, each with the user-verification request described there.
Known issues in lint_files / get_file_problems as of Rider 2026.2.1:
#pragma warning disable for the diagnostic is in place, treat it as resolved and move on even if the tools keep reporting it — do not re-fix or re-suppress.
In Step 5, ask the user to confirm the suppression is effective in the editor.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/code-writing-guideProvides coding guidelines for Unity projects. Make sure to use this skill whenever writing, creating, editing, or modifying code files. This includes implementing new features, fixing bugs, refactoring, adding tests, or any task that results in code changes. Even for small edits or one-line fixes, load this skill to ensure project conventions are followed./design-testsDesigns tests from a specification, whatever document states it — a requirements document, design docs, or an ADR: extracts the test targets, then creates test cases for each target at the test level of its subject — e.g., integration tests for a scene or prefab, unit tests for a class's API. Use this skill whenever the specification is settled and the next step is to design the tests./edit-sceneCreates and modifies Unity scene and prefab files. Use this skill whenever creating, editing, or modifying .unity scene files or .prefab prefab files. This includes adding GameObjects, building uGUI hierarchies, wiring up components, and any task that results in changes to .unity or .prefab files./find-and-setup-analysis-ruleFinds an analysis rule that flags a given coding pattern — a Roslyn analyzer package, an IDE inspection, an IDE plugin, or a custom Roslyn analyzer — and sets it up in the Unity project at `warning` or higher severity. Use this skill when the user wants a coding pattern flagged as the code is written, e.g., to keep a fixed bug from recurring, to ban an API, to cap method complexity, or to enforce a coding rule. Also use it when the user wants a named Roslyn analyzer package installed in the Unity project./fix-bugDiagnoses and fixes bugs using a test-first workflow (reproduce, diagnose, fix). Use this skill whenever the user reports a bug, describes unexpected behavior, or asks to investigate or fix a defect./implementImplements a feature or a specification change test-first, phase by phase from the parts with no dependencies up: each phase designs its missing test cases, then writes failing tests and the production code that passes them. Use this skill whenever the user asks to implement or add a feature, or to change an existing specification.npx claudepluginhub nowsprinting/unity-coding-skills --plugin unity-coding-skillsOther plugins' skills for the same job