Legends-Of-Heroes: Skill for Codex

.codex/skills/aibridge-prefab-patch/SKILL.md

aibridge-prefab-patch is a skill for Codex from FlameskyDexive/Legends-Of-Heroes. It costs 73 tokens per session (1,232 once invoked), scanned A, original, MIT.

A workflow for making complex changes to Unity Prefab files, which store reusable game-object setups. It groups changes such as adding children, components, properties, arrays, and references into one operation.

In plain words
What is it for?
Use it to find a Prefab, inspect its structure, prepare several edits, validate them with a dry run, and then apply them.
Why use it?
It helps avoid making many fragile manual edits and lets you check the planned changes before saving the Prefab.

Skill for Codex

Written for Codex: installed under .codex/.

This is FlameskyDexive/Legends-Of-Heroes's own configuration. It tells Codex how to work on Legends-Of-Heroes itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Legends-Of-Heroes configures →

Reuse

Borrowing it

Nothing to install: this file belongs to FlameskyDexive/Legends-Of-Heroes. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/FlameskyDexive/Legends-Of-Heroes/master/.codex/skills/aibridge-prefab-patch/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/FlameskyDexive/Legends-Of-Heroes

Made for: Codex.

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 aibridge-prefab-patch

README.md
[![agentmods](https://agentmods.dev/badge/skills/flameskydexive/legends-of-heroes/aibridge-prefab-patch/github.svg)](https://agentmods.dev/skills/flameskydexive/legends-of-heroes/aibridge-prefab-patch)
Your own site
<a href="https://agentmods.dev/skills/flameskydexive/legends-of-heroes/aibridge-prefab-patch"><img src="https://agentmods.dev/badge/skills/flameskydexive/legends-of-heroes/aibridge-prefab-patch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aibridge-prefab-patch

Your own site · 80×15
<a href="https://agentmods.dev/skills/flameskydexive/legends-of-heroes/aibridge-prefab-patch"><img src="https://agentmods.dev/badge/skills/flameskydexive/legends-of-heroes/aibridge-prefab-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,232 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00073 $0.01232
Opus 5 $0.00036 $0.00616
Sonnet 5 $0.00015 $0.00246
Haiku 4.5 $0.00007 $0.00123

Measured 11d ago against content hash 3333ac865ee3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

aibridge-prefab-patch 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 11d 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.

.codex/skills/aibridge-prefab-patch/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AIBridge Prefab Patch

Use prefab patch for complex Prefab asset edits that need multiple operations in one load/save cycle. Use inspector set_property for a single simple serialized field, and inspector set_properties for small batched field edits. Use gameobjecttransforminspector for scene objects. If the requested Prefab/Scene/custom .asset operation is not supported by AIBridge, load unity-yaml-editing and follow its direct UnityYAML rules.

$CLI means the platform-appropriate AIBridge CLI invocation, usually ./.aibridge/cli/AIBridgeCLI.exe on Windows.

参数选择

  • Prefer --ops <file> for multi-step edits, nested JSON, arrays, references, or anything run from PowerShell.
  • Use --ops-json <json> only for one or two very small operations.
  • Put temporary operation files under .aibridge/patch_ops/.
  • Always run --dryRun true before writing the prefab.

标准流程

  1. Find the target prefab with asset find/search --format paths.
  2. Inspect structure with prefab get_hierarchy --prefabPath "<prefab>".
  3. Create .aibridge/patch_ops/<task>.json.
  4. Run dry-run:
$CLI prefab patch --prefabPath "Assets/Prefabs/Player.prefab" --ops ".aibridge/patch_ops/player_hp_patch.json" --dryRun true
  1. If dry-run succeeds, run the same command without --dryRun true.
  2. Re-check hierarchy/properties, then run compile unity and get_logs --logType Error.

操作示例

[
  { "op": "ensure_child", "path": "Player/HP" },
  { "op": "ensure_component", "path": "Player/HP", "typeName": "Animator" },
  {
    "op": "set_property",
    "target": { "path": "Player/HP", "componentName": "Animator" },
    "propertyName": "m_Enabled",
    "value": true
  },
  {
    "op": "set_array",
    "target": { "path": "Player", "componentName": "YourComponent" },
    "propertyName": "items",
    "items": [
      { "key": "HP", "value": { "$gameObject": "Player/HP" } },
      {
        "key": "HPAnimator",
        "value": {
          "$component": { "path": "Player/HP", "typeName": "Animator" }
        }
      }
    ]
  }
]

Read the full file on GitHub · 107 lines

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. 11d ago First seen · 107 lines · 73 tokens per session scan A 3333ac865ee3

Subscribe to this mod's changes

aibridge-prefab-patch is a skill published in the GitHub repository FlameskyDexive/Legends-Of-Heroes (925 stars, last pushed 1mo ago), licensed MIT. It adds 73 tokens to every session and 1,232 once invoked, about $0.0004 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

luban-dev

A guide for Luban, a game-configuration tool that turns spreadsheets and schemas into C# code and binary data for a TEngine project.

Alex-Rachel/TEngine · 149 tokens

html-to-ugui

A pipeline for turning HTML interface prototypes into Unity UGUI Prefabs, which are reusable Unity interface objects. It uses browser-rendered layout data to preserve positions, images, text, controls, and device-adaptation intentions.

Alex-Rachel/TEngine · 150 tokens

tengine-dev

A development guide for TEngine, a framework used to build Unity games. It covers the framework’s modules, user interfaces, events, asset loading, hot updates, configuration, and related tools.

Alex-Rachel/TEngine · 68 tokens

game-development

Game development patterns, architectures, and best practices.

miles990/claude-software-skills · 12 tokens

anti-cheat-systems

Analyze layered game integrity defenses and select repository resources for process-memory reports, acquired-memory forensics, callback scope, behavioral measurement and driver-policy evidence. Use for DMA versus host-mediated acquisition, input provenance, replay fidelity, collector health, detector rollout/recovery…

gmh5225/awesome-game-security · 90 tokens

windows-kernel-security

Analyze Windows driver trust boundaries and kernel evidence for game-security research. Use for IOCTL authorization, callbacks and IRQL, driver provenance, DSE/PatchGuard, VBS/HVCI, build-specific internals, and crash or memory forensics; select repository resources for symbol comparison, ETW metadata, driver-unit…

gmh5225/awesome-game-security · 101 tokens