| name | urp-keyword-audit |
| description | Audit shader keywords and variant usage for the URP FX shader system. Use when reviewing shader_feature vs multi_compile choices, keyword consistency, stripping issues, or suspected variant explosion. |
URP Keyword Audit
Focus on Packages/NB_FX.
Audit workflow:
- Find all relevant keyword declarations in shaders and includes.
- Find all runtime and editor-side code that reads, sets, or synchronizes those keywords.
- Group keywords by purpose:
- feature toggles
- lighting or pass behavior
- debug or editor-only state
- Identify problems:
- unnecessary
multi_compile
- duplicate or overlapping keywords
- keywords enabled without matching property or UI state
- stripping gaps
- combinations that inflate variants without shipping value
- Recommend the smallest safe correction.
When reporting, include:
- where the keyword is declared
- where it is controlled
- whether it should remain
shader_feature or multi_compile
- possible compatibility or content-authoring risks if changed
Do not add new keywords unless there is a strong reason and the variant cost is justified.
Load additional context from:
D:\UnityProject\NBUnityProject\.codex\rules.md
D:\UnityProject\NBUnityProject\.codex\project.md