prefab-reference-repair

prefab-reference-repair is a skill for Claude Code, Codex from tyunta/prefab-sentinel. It costs 101 tokens per session (606 once invoked), scanned A, original, MIT.

A Unity workflow for finding and repairing broken references in prefabs and other assets. A reference is a stored link to another asset or object; the workflow only proposes a replacement when there is one clear match.

In plain words
What is it for?
Use it to scan for missing GUID or file ID references, find which assets use them, filter known harmless missing references, and verify the project afterward.
Why use it?
It helps locate missing assets or object links without making risky guesses or editing serialized files directly.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the prefab-sentinel plugin — 6 skills shipped together

Good fit Use it to scan for missing GUID or file ID references, find which assets use them, filter known harmless missing references, and verify the project afterward.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tyunta/prefab-sentinel/prefab-reference-repair
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tyunta/prefab-sentinel --skill prefab-reference-repair
Clone the repo
git clone --depth 1 https://github.com/tyunta/prefab-sentinel

Made for: Claude Code, Codex.

Or install prefab-sentinel, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prefab-reference-repair

README.md
[![agentmods](https://agentmods.dev/badge/skills/tyunta/prefab-sentinel/prefab-reference-repair.svg)](https://agentmods.dev/skills/tyunta/prefab-sentinel/prefab-reference-repair)
Your own site
<a href="https://agentmods.dev/skills/tyunta/prefab-sentinel/prefab-reference-repair"><img src="https://agentmods.dev/badge/skills/tyunta/prefab-sentinel/prefab-reference-repair.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 606 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.00606
Opus 5 $0.00051 $0.00303
Sonnet 5 $0.00020 $0.00121
Haiku 4.5 $0.00010 $0.00061

Measured 8d ago against content hash 281b88b0c18e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

prefab-reference-repair scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/prefab-reference-repair/SKILL.md · 40 lines

What it actually says

Prefab Reference Repair

インターフェース

MCP ツールを直接呼び出す(CLI は廃止済み)。

Overview

Detect and repair broken references while avoiding unsafe auto-fixes.

Workflow

  1. validate_refs MCP ツールで missing assets / fileIDs を特定する。
  2. find_referencing_assets で壊れた参照の使用箇所を調査する。
  3. 一意で決定的な置換先が存在すれば safe_fix を提案する。
  4. 複数候補がある場合は decision_required として保留する。
  5. ノイズの多い missing GUID は validate_refsignore_asset_guids パラメータで除外し、<scope>/config/ignore_guids.txt を更新する。
  6. validate_refs を再実行してスコープがクリーンになったことを確認する。

MCP ツール

  • validate_refs — 壊れた GUID/fileID 参照のスキャン(scope, ignore_asset_guids パラメータ)
  • find_referencing_assets — GUID/パスの参照元アセット検索(asset_or_guid, scope パラメータ)

Guardrails

  • Do not edit YAML directly.
  • Only apply safe_fix when the candidate is unique and unambiguous.
  • Ignore-guid updates in CI are restricted to allowlisted branches.

次にこれ

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 40 lines · 101 tokens per session scan A 281b88b0c18e

Subscribe to this mod's changes

prefab-reference-repair is a skill published in the GitHub repository tyunta/prefab-sentinel (11 stars, last pushed 23d ago), licensed MIT. It adds 101 tokens to every session and 606 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

minecraft-debug-mcp

Operate and debug the live Minecraft bot through its built-in MCP REPL server. Use when work requires starting the bot with pnpm dev, connecting to the local MCP endpoint, inspecting cognitive state/logs/history, injecting synthetic chat/events, or running targeted REPL code against the running brain during…

moeru-ai/airi · 68 tokens

graphics-api-hooking

Guide for graphics API interception, overlay rendering, and render-pipeline analysis across DirectX, OpenGL, and Vulkan. Use this skill when working with Present or SwapBuffers hooks, DXGI swap chains, shader or draw-call interception, screenshot-sensitive overlays, or graphics debugging in game security research.

gmh5225/awesome-game-security · 64 tokens

console-get-logs

Retrieve Unity Editor logs from the MCP plugin's LogCollector, optionally filtered by log type or time window. Useful for debugging and monitoring Editor activity.

IvanMurzak/Unity-MCP · 35 tokens

editor-application-get-state

Return the current state of UnityEditor.EditorApplication — playmode, paused state, compilation state, and related flags.

IvanMurzak/Unity-MCP · 31 tokens

console-clear-logs

Clear the MCP log cache (used by 'console-get-logs') and the Unity Editor Console window. Useful for isolating logs to a specific action by clearing the slate first.

IvanMurzak/Unity-MCP · 41 tokens

profiler-start

Enable Unity's runtime profiler and open the Profiler window. Idempotent: calling when already enabled returns the current enabled state without error.

IvanMurzak/Unity-MCP · 32 tokens