rename-a-c-file-or-header-file

Rename C source and header files while updating ROM mappings and build references.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Renaming a C file or associated header (.h) file in a decompilation project can introduce broken references, mismatched ROM mappings, and build failures if dependent files are not updated consistently.

Core Features & Use Cases

  • Safe renaming of C source and header files with all dependent references updated automatically.
  • Guidance on updating build configurations and ROM mappings to prevent broken builds.
  • Use Case: When reorganizing code into logical modules, rename a file and its header while maintaining ROM references and code segment mappings.

Quick Start

Rename the target C file and its header, then update all dependent ROM references.

Frequently Asked Questions about rename-a-c-file-or-header-file

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

FAQPage Schema
How do I safely rename a C source file and its header in a decompilation project?

To safely rename a C source file and its header, update all dependent references, build rules, and ROM mappings to prevent broken builds. This ensures code segments and includes remain consistent across the decompilation project during code refactors or module reorganization.

Why does renaming a C header file break ROM mappings and build configurations?

Renaming a C header file breaks ROM mappings and build configurations because dependent files are not automatically updated, leading to mismatched ROM references and broken includes. Consistent updates across all related build rules are required to resolve these broken references.

What is the best way to reorganize C code modules without causing build failures?

The best way to reorganize C code modules without causing build failures is to rename the target C file and its header, then enforce the update of all related build configurations and ROM references to reflect the new file name consistently across the project.

Can I update build rules and code segments when renaming C files during a refactor?

Yes, you can update build rules and code segments when renaming C files during a refactor. The process enforces the update of related build configurations and ROM mappings to ensure that all includes and code segment references reflect the new file name.

What happens to dependent includes and ROM references when renaming C sources?

When renaming C sources, dependent includes and ROM references are automatically updated to maintain consistency. This prevents broken references and mismatched ROM mappings by ensuring all dependent files reflect the newly renamed source and header files.