본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)7.2k · #13355

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-game-inventory/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:

  1. Validate source ownership and destination legality.
  2. Compute the entire next inventory/equipment state.
  3. Commit once or reject without changing either side.
  4. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬