src-tree-reorganize
Installation
SKILL.md
Src tree reorganize
When to use
- User wants sources moved from repo root into
src/(or similar tidy-up) - "make the project neat", scattered
.c/.hat top level - After MVU refactor when file layout is still messy
Steps
- Glob all
*.c,*.h, andCMakeLists.txtunder{REPO_ROOT}. - Grep includes and
add_executable/target_sourcesreferences. - Propose target layout (e.g.
src/,include/) — minimal moves per step. - Write / StrReplace paths in CMake and
#includelines together. - Shell
cmake --build(or project build command) after each batch of moves. - Summarize what moved and what still references old paths.