memory-safe-migration

memory-safe-migration is a skill for Claude Code, Codex from cosai-oasis/project-codeguard. It costs 117 tokens per session (1,279 once invoked), scanned A, original, no licence file.

A guide for moving code from memory-unsafe languages such as C, C++, or Assembly to languages such as Rust, Go, Java, C#, or Swift.

In plain words
What is it for?
Migrating or rewriting legacy systems, designing connections between safe and unsafe code, and adding safer modules to existing C or C++ projects.
Why use it?
It provides a way to plan the rewrite while reducing bugs caused by incorrect memory handling and keeping boundaries between old and new code clear.

Skill for Claude CodeCodex

Part of the codeguard-security plugin — 4 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cosai-oasis/project-codeguard/memory-safe-migration
Any agent
npx skills add cosai-oasis/project-codeguard --skill memory-safe-migration
Clone the repo
git clone --depth 1 https://github.com/cosai-oasis/project-codeguard

Made for: Claude Code, Codex.

Or install codeguard-security, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-safe-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosai-oasis/project-codeguard/memory-safe-migration.svg)](https://agentmods.dev/skills/cosai-oasis/project-codeguard/memory-safe-migration)
Your own site
<a href="https://agentmods.dev/skills/cosai-oasis/project-codeguard/memory-safe-migration"><img src="https://agentmods.dev/badge/skills/cosai-oasis/project-codeguard/memory-safe-migration.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,279 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00117 $0.01279
Opus 5 $0.00059 $0.00639
Sonnet 5 $0.00023 $0.00256
Haiku 4.5 $0.00012 $0.00128

Measured 4d ago against content hash 8b34d5518c2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

memory-safe-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/assess-migration.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sources/skills/memory-safe-migration/SKILL.md · 132 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 132 lines · 117 tokens per session scan A 8b34d5518c2d

Subscribe to this mod's changes

memory-safe-migration is a skill published in the GitHub repository cosai-oasis/project-codeguard (329 stars, last pushed 3d ago), with no licence file. It adds 117 tokens to every session and 1,279 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

agent-device

Automates Apple-platform apps (iOS, tvOS, macOS), Android devices, and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, collecting evidence, or planning agent-device CLI commands.

callstack/agent-device · 69 tokens

android-emulator

Verify and debug native, React Native, Expo, or Flutter apps on an Android Emulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an Android virtual device.

callstack/agent-device · 65 tokens

ios-simulator

Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.

callstack/agent-device · 69 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

ios-simulator-preview

Show a live iOS Simulator in the dashboard's Browser side panel while building or testing an iOS app. Use when the user asks to preview an iOS/SwiftUI app, run an app in the simulator, "show me the app", test in the iOS simulator, or watch you drive an iOS app. macOS + Xcode only.

kirodotdev/KiroCrew · 78 tokens

remind-capture

Write durable memories to Remind while working. Use when a decision is made, an approach succeeds or fails (outcome), the user states a preference or corrects you, a concrete fact surfaces (config value, name, date, owner), or an open question is raised.

sandst1/remind · 61 tokens