No slash command · from unity-coding-skills
Guides direct editing of Unity YAML-serialized asset files (ScriptableObjects, Materials) without the Unity Editor. Covers allowlisted types, formatting conventions, and post-edit validation.
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.
Guide for directly editing Unity YAML-serialized asset files for Unity projects.
Edit only the following allowlist of simple YAML asset types.
Other YAML assets (AnimationClip, AnimatorController, Texture2D, Mesh, AudioClip, LightingDataAsset, etc.) carry binary-derived data or complex internal structure — open them in Unity Editor instead.
MonoBehaviour, class ID 114) — files *.assetMaterial, class ID 21) — files *.matPhysicsMaterial and PhysicsMaterial2D are excluded due to Unity version naming discrepancies — request user confirmation before editing one.
Never directly edit .unity or .prefab files.
Use edit-scene skill — those carry GameObject/Prefab-instance structure that is unsafe to author by hand.
Never touch .meta files.
Unity owns .meta content (GUIDs, importer settings); hand-edits corrupt asset references project-wide.
Use 2-space indent, LF line endings, UTF-8 without BOM, and a trailing newline at EOF. Tabs, CRLF, or a BOM round-trip badly when Unity re-saves the file.
Do not add comments, YAML aliases (*name), extra tags, or chomping indicators (|, >).
Unity's YAML parser drops or rejects them, and re-save would strip cosmetic formatting anyway — don't bother polishing what Unity will normalize.
After editing, let Unity re-import the asset (focus the Editor, or call AssetDatabase.Refresh() via run_method_in_unity) and confirm successful import using get_unity_compilation_result.
Review the diff Unity produces on next save (git diff) to confirm the edit was accepted as intended and no data was dropped.
After editing a ScriptableObject asset, run its validator with the run-tests skill when the project has one.
A validator is an Edit Mode test that verifies the data of every asset of a ScriptableObject class, e.g., CardValidator for Card.
A project may name it differently, so search the Edit Mode tests for the class name; when none exists, skip this.
.asset or .mat file (header, m_Script, class-typed contents, or unfamiliar field): Read ${CLAUDE_SKILL_DIR}/resources/asset-yaml-format.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nowsprinting/unity-coding-skills --plugin unity-coding-skills12 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.Other plugins' skills for the same job