add-asset-to-yaml

Convert raw ROM addresses to named YAML assets in snowboardkids2.yaml.

178|10|Updated Sep 28, 2024
One-click install
npx skills add https://github.com/cdlewis/snowboardkids2-decomp --skill add-asset-to-yaml
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-asset-to-yaml
Source: https://github.com/cdlewis/snowboardkids2-decomp/tree/main/.claude/skills/add-asset
Command: npx skills add https://github.com/cdlewis/snowboardkids2-decomp --skill add-asset-to-yaml

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill documents how to add and convert binary ROM assets to named entries in snowboardkids2.yaml, ensuring assets are ordered and properly declared for use in code.

Core Features & Use Cases

  • Convert raw ROM addresses to named YAML assets and update the code to reference them via USE_ASSET.
  • Maintain strict numerical ordering when adding assets, preserving segment integrity in the YAML.
  • Prepare asset definitions for straightforward integration into the decompilation workflow and build process.

Quick Start

Identify the raw asset address in code, convert it to a named asset entry in snowboardkids2.yaml, then insert the asset in numerical order.

Frequently Asked Questions about add-asset-to-yaml

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a binary ROM asset to a YAML file for decompilation?

To add a binary ROM asset, you convert the raw ROM address into a named YAML asset entry and insert it in strict numerical order to preserve segment integrity. You then update the code to reference this entry using USE_ASSET.

What naming convention should I use for ROM assets in a YAML decompilation project?

ROM assets in a YAML decompilation project should use a conventional _<addr> naming format. This ensures precise, ordered asset definitions that are ready for straightforward integration into the build process.

Why do YAML asset entries need to be ordered numerically?

YAML asset entries need numerical ordering to preserve segment integrity within the file. Maintaining this strict order ensures the decompilation workflow and build process can correctly parse and integrate the declared assets.

How do I update code references after declaring a new ROM asset in YAML?

After declaring the ROM asset in YAML, you update the code references by applying USE_ASSET-ready directives. This replaces raw address pointers with the newly defined named asset entries for proper compilation.

Can I use this approach to organize assets for any ROM decompilation workflow?

This approach is designed for decompilation workflows requiring precise, ordered asset definitions, specifically targeting snowboardkids2.yaml. It satisfies YAML asset declarations and numerical ordering within that repository context.