Agent Skills
› rmyndharis/antigravity-skills
› memory-safety-patterns
memory-safety-patterns
GitHub提供跨语言(Rust/C++/C)的内存安全编程模式,涵盖RAII、所有权及智能指针。用于编写安全的系统代码、资源管理及防止内存错误。
Trigger Scenarios
编写内存安全的系统代码
管理文件、套接字或内存等资源
预防悬垂指针和内存泄漏
实现RAII模式
调试内存相关问题
Install
npx skills add rmyndharis/antigravity-skills --skill memory-safety-patterns -g -y
SKILL.md
Frontmatter
{
"name": "memory-safety-patterns",
"description": "Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory bugs."
}
Memory Safety Patterns
Cross-language patterns for memory-safe programming including RAII, ownership, smart pointers, and resource management.
Use this skill when
- Writing memory-safe systems code
- Managing resources (files, sockets, memory)
- Preventing use-after-free and leaks
- Implementing RAII patterns
- Choosing between languages for safety
- Debugging memory issues
Do not use this skill when
- The task is unrelated to memory safety patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Version History
- e63f7dd Current 2026-07-05 09:34


