memory-safety-patterns – Agents & Automation skill for AI agents
Cross-language patterns for memory-safe programming including RAII, ownership, smart pointers, and resource management.
Install the memory-safety-patterns skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-safety-patterns-823ff.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /memory-safety-patterns – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-safety-patterns-823ff.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $memory-safety-patterns – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-safety-patterns-823ff.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /memory-safety-patterns – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-safety-patterns-823ff.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /memory-safety-patterns – then describe the task you want done.
SKILL.md content
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.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Related skills
- memory-systems – Design short-term, long-term, and graph-based memory architectures. Use when building…
- mercury-mcp – Cheatsheet for the Mercury (proton) MCP tools. Use when connected to the Mercury MCP…
- mesh-memory – Self-hosted semantic memory for AI agents via MCP. Save worklogs, decisions, and notes…
- microsoft-teams-automation – Automate Microsoft Teams tasks via Rube MCP (Composio): send messages, manage channels…
- miro-automation – Automate Miro tasks via Rube MCP (Composio): boards, items, sticky notes, frames…
- mixpanel-automation – Automate Mixpanel tasks via Rube MCP (Composio): events, segmentation, funnels, cohorts…
- monday-automation – Automate Monday.com work management including boards, items, columns, groups, subitems…
- monte-carlo-analyze-root-cause – Curated upstream guidance for Monte Carlo Analyze Root Cause; use when the workflow…