build-game-inventory
하는 일
이 스킬은 게임의 아이템과 장비 시스템을 만드는 과정을 에이전트가 안내합니다. 아이템을 줍거나 장비를 바꾸거나 교환할 때 아이템을 잃거나 복제하지 않고 항상 작동해야 하는 게임 개발자를 위한 스킬입니다.
사용하는 경우
- ✓게임에 아이템, 전리품, 묶음, 장비 슬롯이 필요할 때.
- ✓드래그, 교환, 장착 중에도 아이템을 절대 잃으면 안 될 때.
- ✓저장된 게임의 인벤토리 데이터를 버전 사이에서 안전하게 옮겨야 하는 경우.
스킬 링크
https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-game-inventory/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 게임에 장비 슬롯과 드래그 앤 드롭 교환이 있는 인벤토리를 추가하고, 아이템이 사라지지 않게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 타입이 정해진 하나의 아이템 목록을 유지하고, 무엇이든 바꾸기 전에 모든 이동을 확인한 뒤 각 변경을 한 번만 적용합니다. 유효한 결과를 저장하고, 아이템 손실, 가득 찬 인벤토리, 반복 동작을 테스트합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Build Game Inventory
Use one typed, serializable item source of truth and make every transfer atomic.
Define the item contract
Model stable IDs, item definitions, ownership, stack limits, equipment compatibility, effects, rarity, presentation data, and migration version separately. Runtime UI must reference definitions by ID rather than duplicate stats or descriptions.
Implement transfers as transactions
For pickup, equip, unequip, swap, drag/drop, consume, and sell:
- Validate source ownership and destination legality.
- Compute the entire next inventory/equipment state.
- Commit once or reject without changing either side.
- Persist only after the committed state is valid.
Never remove an item before confirming a legal destination. Preserve item identity across a swap and prevent duplicate effect registration.
Build usable UI
Expose slot compatibility, equipped state, quantity, tooltip facts, and failure feedback. Support keyboard and touch alternatives to drag-only interactions. Keep focus behavior, dialogs, and tooltips accessible.
Test loss boundaries
Cover invalid destinations, full inventory, duplicate pickup, equip swap, mid-action swap, save/load, schema migration, reset/new game, tooltip updates, and repeated dispatch. Validate that total owned item identity is conserved except for explicit consumption or reward rules.
자주 묻는 질문
이동이 허용되지 않으면 어떻게 되나요?
이 스킬은 양쪽 어느 쪽도 바꾸지 않고 이동을 거부하도록 해서 아이템이 사라지지 않게 합니다.
드래그 앤 드롭만 아이템을 옮기는 방법인가요?
아닙니다. 이 스킬은 키보드와 터치 대체 조작도 요구합니다.
저장 데이터는 어떻게 다루나요?
저장된 인벤토리 데이터에는 버전이 있으며, 이 스킬은 이전 저장 데이터를 옮기는 방법도 다룹니다.
상세 정보
작성자의 원본 설명
Build or repair game inventory, loot, equipment, tooltips, drag-and-drop, persistence, and progression systems. Use for item schemas, pickup flows, stack rules, equipment slots, atomic swaps, save migration, and no-loss regression testing.
repo: MengTo/Skills
인기도
- GitHub 스타
- 7.2k
- 순위
- #13355
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
3d-cloth-material
7.2k에이전트가 Three.js에서 실 짜임, 부드러운 광택, 자연스러운 주름, 단, 솔기를 갖춘 실제 직물처럼 보이는 천을 만들도록 돕습니다.
3d-falling-leaves
7.2k에이전트가 3D 장면에 나뭇잎이 구르고 바람에 흩날리며 카메라 움직임에 따라 재사용되는 낙엽 효과를 추가하도록 돕습니다.
3d-four-seasons
7.2k에이전트가 3D 장면의 나무, 빛, 하늘, 눈을 바꿔 장면을 다시 만들지 않고 봄, 여름, 가을, 겨울을 표현하도록 돕습니다.
3d-high-poly-models
7.2k에이전트가 매끄러운 형태와 자연스러운 모서리를 가진 세밀한 3D 모델을 만들고, 웹에서 잘 돌아가는 가벼운 버전을 준비하도록 돕습니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.