Match decompiled C code to original PowerPC assembly for Super Smash Bros Melee. Use this skill when asked to match, decompile, or fix a function to achieve 100% match against target assembly. Invoked with /decomp <function_name> or automatically when working on decompilation tasks.
The 'decomp' skill is designed to assist with the process of matching decompiled C code to PowerPC assembly for the Super Smash Bros Melee project. This tool is used to achieve a byte-for-byte identical match between the source code and the target assembly, which is crucial for maintaining the accuracy and integrity of the game's decompiled functions. This process ensures that the generated code mirrors the behavior of the original assembly code exactly, which is essential for proper gameplay functionality in Melee.
To claim a function, simply use the 'melee-agent claim add' command followed by the function name. For example, you can claim the function 'lbColl_80008440' with the command 'melee-agent claim add lbColl_80008440'. The source file is auto-detected, so no additional flags are needed.
If the subdirectory is locked, you should not work on functions within it. Subdirectory locks exist to prevent blocking other agents. If you're unsure whether the subdirectory is locked, check the 'High-contention zone' section or consult the worktree state tracking steps.
If the build validation fails, the system will display errors. You can use the '/decomp-fixup' skill to diagnose and fix the issues. It's important to address these errors before committing any changes.
Quick Setup:
.claude/skills/Repository
itsgrimetime/melee-decomp