memory-safety-patterns – skill Agent & Tự động hóa cho agent AI
Các mẫu lập trình an toàn bộ nhớ đa ngôn ngữ, bao gồm RAII, ownership, smart pointer và quản lý tài nguyên.
Cài skill memory-safety-patterns bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-safety-patterns-823ff.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /memory-safety-patterns – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-safety-patterns-823ff.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $memory-safety-patterns – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-safety-patterns-823ff.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /memory-safety-patterns – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-safety-patterns-823ff.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /memory-safety-patterns – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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.
Skill liên quan
- memory-systems – Thiết kế kiến trúc bộ nhớ ngắn hạn, dài hạn và dựa trên đồ thị. Dùng khi xây dựng agent…
- mercury-mcp – Bảng tra cứu nhanh cho các công cụ MCP của Mercury (proton). Dùng khi kết nối với máy…
- mesh-memory – Bộ nhớ ngữ nghĩa tự lưu trữ cho AI agent qua MCP. Lưu worklog, quyết định và ghi chú…
- microsoft-teams-automation – Tự động hóa tác vụ Microsoft Teams qua Rube MCP (Composio): gửi tin nhắn, quản lý kênh…
- miro-automation – Tự động hóa tác vụ Miro qua Rube MCP (Composio): board, item, sticky note, frame, chia…
- mixpanel-automation – Tự động hóa tác vụ Mixpanel qua Rube MCP (Composio): event, phân khúc, phễu, cohort, hồ…
- monday-automation – Tự động hóa quản lý công việc trên Monday.com gồm bảng, mục, cột, nhóm, subitem và cập…
- monte-carlo-analyze-root-cause – Hướng dẫn upstream đã được chọn lọc cho Monte Carlo Analyze Root Cause; dùng khi quy…