·m02-resource
</>

m02-resource

zhanghandong/rust-skills

중요: 스마트 포인터 및 리소스 관리에 사용합니다. 트리거: Box, Rc, Arc, Weak, RefCell, Cell, 스마트 포인터, 힙 할당, 참조 카운팅, RAII, Drop, Box 또는 Rc를 사용해야 하는지, Arc 대 Rc를 사용해야 하는 경우, 智能指针, 引用计数, 堆分配

267설치·8트렌드·@zhanghandong

설치

$npx skills add https://github.com/zhanghandong/rust-skills --skill m02-resource

SKILL.md

| Error | Don't Just Say | Ask Instead |

| "Need heap allocation" | "Use Box" | Why can't this be on stack? | | Rc memory leak | "Use Weak" | Is the cycle necessary in design? | | RefCell panic | "Use tryborrow" | Is runtime check the right approach? | | Arc overhead complaint | "Accept it" | Is multi-thread access actually needed? |

| Rc vs Arc confusion | m07-concurrency | What's the concurrency model? | | RefCell panics | m03-mutability | Is interior mutability right here? | | Memory leaks | m12-lifecycle | Where should cleanup happen? |

중요: 스마트 포인터 및 리소스 관리에 사용합니다. 트리거: Box, Rc, Arc, Weak, RefCell, Cell, 스마트 포인터, 힙 할당, 참조 카운팅, RAII, Drop, Box 또는 Rc를 사용해야 하는지, Arc 대 Rc를 사용해야 하는 경우, 智能指针, 引用计数, 堆分配 출처: zhanghandong/rust-skills.

원본 보기

인용 가능한 정보

AI/검색 인용용 안정적인 필드와 명령어.

설치 명령어
npx skills add https://github.com/zhanghandong/rust-skills --skill m02-resource
카테고리
</>개발 도구
인증됨
최초 등록
2026-02-01
업데이트
2026-02-18

빠른 답변

m02-resource이란?

중요: 스마트 포인터 및 리소스 관리에 사용합니다. 트리거: Box, Rc, Arc, Weak, RefCell, Cell, 스마트 포인터, 힙 할당, 참조 카운팅, RAII, Drop, Box 또는 Rc를 사용해야 하는지, Arc 대 Rc를 사용해야 하는 경우, 智能指针, 引用计数, 堆分配 출처: zhanghandong/rust-skills.

m02-resource 설치 방법은?

터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/zhanghandong/rust-skills --skill m02-resource 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다

소스 저장소는 어디인가요?

https://github.com/zhanghandong/rust-skills