Guide secure migration of code from memory-unsafe languages (C, C++, Assembly) to memory-safe languages (Rust, Go, Java, C#, Swift). Use when migrating or rewriting legacy C/C++ code, designing FFI boundaries between safe and unsafe code, writing new modules in existing C/C++ codebases, reviewing mixed-language projects, planning memory safety roadmaps, or when an AI agent is about to generate new C/C++ code that could be written in a memory-safe language instead. Also triggers on CISA/NSA memory safety compliance discussions.
$npx -y skills add cosai-oasis/project-codeguard --skill memory-safe-migrationInstalls into the current project.
Run `npx skills use "https://github.com/cosai-oasis/project-codeguard" --skill "cosai-oasis/project-codeguard/memory-safe-migration"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/cosai-oasis/project-codeguard" that are relevant to the current task. Run `npx skills add "https://github.com/cosai-oasis/project-codeguard"` and select the relevant skills, then follow their instructions.