skill-candidates/vrm-material-lighting-debug/SKILL.md
Diagnose and fix a desktop VRM app's avatar lighting and MToon material failures when a VRM looks washed out, has bright edges, shows inverted-looking cloth shadows, or shades clothing differently from skin and legs. Use when you need to inspect the live .vrm, separate scene-light problems from material problems, patch the correct layer, and verify with a rebuilt packaged app.
npx skillsauth add grtninja/skill-arbiter vrm-material-lighting-debugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill for private desktop VRM rendering bugs where the avatar looks overlit, cloth materials glow on the dark side, dress shading disagrees with skin or legs, or scene-light tweaks are not fixing the real problem.
.vrm instead of guessing from screenshots alone.
scripts/inspect_vrm_materials.py on the live avatar under the app's roaming avatar store.<PRIVATE_REPO_D>/packages/engine/src/index.ts.
applyMtoonCompatibilityFixes.shadeColorFactor from the base color and darken it hard.npm --workspace <PRIVATE_PACKAGE_SCOPE>/desktop run pack.explorer.exe, not cmd /c start.http://127.0.0.1:5175/health is green.Inspect live VRM materials:
python scripts/inspect_vrm_materials.py \
--vrm "$env:USERPROFILE/AppData/Roaming/<PRIVATE_PACKAGE_SCOPE>/avatars/<avatar-id>/<avatar>.vrm" \
--name-filter "cloth|dress|onepiece|bottoms|skin|body|leg" \
--json-out .tmp/vrm-materials.json
Rebuild and relaunch the packaged desktop app cleanly:
Get-Process "<PRIVATE_DESKTOP_APP>" -ErrorAction SilentlyContinue | Stop-Process -Force
npm --workspace <PRIVATE_PACKAGE_SCOPE>/desktop run pack
Start-Process explorer.exe "$env:USERPROFILE\\Documents\\GitHub\\<PRIVATE_REPO_D>\\apps\\desktop\\release\\win-unpacked\\<PRIVATE_DESKTOP_APP>.exe"
Read references/material-triage.md when the problem is not obviously global lighting.
Focus on these material fields first:
doubleSidedshadeColorFactorgiEqualizationFactormatcapFactorrimLightingMixFactorparametricRimLiftFactorshadingToonyFactorshadingShiftFactorUse references/vrm-sandbox-engine-hotspots.md when you need the code locations that normally own the fix.
shadeColorFactor near white when the dress base color is dark red.cmd /c start to relaunch the desktop VRM app on Windows.If the dress or cloth still shows a bright dark-side band after the first material pass:
tools
Run a defender-first security sweep on code, configs, prompts, model/tooling surfaces, or third-party contribution lanes. Use when a request involves safe bug, leak, zero-day-class, exploit, or hack hunting for protection, when contributing to outside repositories and you want a focused security pass, or when touching auth, secrets, permissions, network exposure, prompt/tool boundaries, data flow, or update/build surfaces. This skill is defensive only and must never be used for weaponization or unauthorized access.
development
Validate and repair VRM Sandbox startup acceptance with shim-first local model authority, frontend/backend bring-up, and avatar-runtime launch proof. Use when launch behavior, chat handoff, voice fallback, or runtime bridge acceptance must be verified end to end.
documentation
Align documented voice-command catalogs, endpoint action allowances, and live runtime handlers so operator-visible voice surfaces match what the stack can actually execute. Use when voice command docs, parser matrices, endpoint permissions, or runtime action routing drift apart.
development
Track SkillHub trend and topic drift, maintain a bounded rewrite watchlist, and surface emerging gaps worth turning into repo-owned skills. Use when the marketplace query set shows new families or when the current shortlist has gone stale.