From 7b34233bf2ac4d96f3ba87e44dae78f2cef29a49 Mon Sep 17 00:00:00 2001 From: Christopher Addison Date: Mon, 10 Aug 2026 00:07:54 -0400 Subject: [PATCH] fix(ui-uitk): strip hidden U+FE0F and link orphaned reference files The skills.sh Snyk W021 hidden-Unicode audit (SEC_HIDDEN_UNICODE) flagged a U+FE0F variation selector trailing the warning glyph in skills/ui-uitk/references/custom-elements.md:20. Strip it and keep the visible U+26A0 glyph, which is how the rest of the repo already writes that character. Also convert the reference-list entries in ui-uitk and ui-ugui from backticked paths to markdown links, clearing eight REF_ORPHAN warnings. The validator strips inline code before collecting link targets, so a backticked path never counted as a link and the files read as unreachable. ui-imgui already uses the linked form, and the same conversion landed for levelplay in #38. No reference files were added, removed, or renamed. Co-Authored-By: Claude Opus 5 --- skills/ui-ugui/SKILL.md | 2 +- skills/ui-uitk/SKILL.md | 14 +++++++------- skills/ui-uitk/references/custom-elements.md | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/skills/ui-ugui/SKILL.md b/skills/ui-ugui/SKILL.md index 7134d7a..eff5f51 100644 --- a/skills/ui-ugui/SKILL.md +++ b/skills/ui-ugui/SKILL.md @@ -12,7 +12,7 @@ allowed-tools: Understand existing Unity uGUI, make targeted edits, and generate new Canvas-based hierarchies. When working with ScrollRect/ScrollView, read the reference file: -- `references/scrollview-setup.md` — Required hierarchy, setup rules, and common failures +- [references/scrollview-setup.md](references/scrollview-setup.md) — Required hierarchy, setup rules, and common failures ## Scope diff --git a/skills/ui-uitk/SKILL.md b/skills/ui-uitk/SKILL.md index aad23a2..d1e7cef 100644 --- a/skills/ui-uitk/SKILL.md +++ b/skills/ui-uitk/SKILL.md @@ -14,13 +14,13 @@ Understand existing Unity UI Toolkit code, make targeted edits, generate new UXM ## References Read these as needed: -- `references/uss-guide.md` — USS patterns and examples -- `references/svg-icons.md` — SVG icon generation (only when generating icons) -- `references/common-issues.md` — Common mistakes to avoid -- `references/ui-runtime-binding.md` — Patterns and guide to bind data to UI at runtime (only when requested or when bindings are involved) -- `references/painter2d.md` — Painter2D API for custom visuals: gradients, shapes, arcs, procedural drawing (read this whenever gradients, custom shapes, progress rings, procedural drawing, or any visual beyond what USS can express is needed) -- `references/pointermanipulator-guide.md` — Patterns and guide to create and use Manipulators (only when requested or when manipulators are involved). This helps with setting up drag and drop features or simple event handling for a Visual Element. -- `references/custom-elements.md` — Custom UI Element patterns and guide to create reusable components with UXML, USS, and C#. This helps with creating complex UI components for reuse across the project. +- [references/uss-guide.md](references/uss-guide.md) — USS patterns and examples +- [references/svg-icons.md](references/svg-icons.md) — SVG icon generation (only when generating icons) +- [references/common-issues.md](references/common-issues.md) — Common mistakes to avoid +- [references/ui-runtime-binding.md](references/ui-runtime-binding.md) — Patterns and guide to bind data to UI at runtime (only when requested or when bindings are involved) +- [references/painter2d.md](references/painter2d.md) — Painter2D API for custom visuals: gradients, shapes, arcs, procedural drawing (read this whenever gradients, custom shapes, progress rings, procedural drawing, or any visual beyond what USS can express is needed) +- [references/pointermanipulator-guide.md](references/pointermanipulator-guide.md) — Patterns and guide to create and use Manipulators (only when requested or when manipulators are involved). This helps with setting up drag and drop features or simple event handling for a Visual Element. +- [references/custom-elements.md](references/custom-elements.md) — Custom UI Element patterns and guide to create reusable components with UXML, USS, and C#. This helps with creating complex UI components for reuse across the project. Paths are relative to this skill's folder — read `references/uss-guide.md` directly. diff --git a/skills/ui-uitk/references/custom-elements.md b/skills/ui-uitk/references/custom-elements.md index 923f794..b79651c 100644 --- a/skills/ui-uitk/references/custom-elements.md +++ b/skills/ui-uitk/references/custom-elements.md @@ -17,7 +17,7 @@ Guide for creating custom VisualElements using Unity 6+ `[UxmlElement]` and `[Ux Unity 6+ uses attribute-based custom elements. The old factory pattern (`IUxmlFactory`, `UxmlTraits`) is **deprecated**. -### ⚠️ CRITICAL: Namespace Declaration +### ⚠ CRITICAL: Namespace Declaration **Never include assembly names in UXML namespace declarations:**