本文へ移動
cccskills
無料GitHub で公開

entity-lifecycle-and-spawning

Spawn, initialize, replace, transfer, and delete entities without breaking lifecycle, transforms, containers, or ownership.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md2.0 KB
  • agents/openai.yaml234 B
  • references/replacement-checklist.md477 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Entity creation and removal affect components, maps, containers, networking, and cleanup.

Spawning

Choose the spawn API from placement semantics: attached to an entity, placed on a grid, positioned in map coordinates, or created for a container/system owner. Prefer prototype-driven initialization and existing system helpers.

Do not spawn from the client for authoritative gameplay. Do not manually reconstruct a prototype's component set in code unless runtime composition is the intended design.

Initialization

Account for component initialization, startup, map initialization, and system subscriptions. Values needed before map initialization must be available at the correct earlier lifecycle point. Avoid assuming optional components exist merely because common prototypes include them.

Replacement and transfer

When replacing an entity, define which state transfers: position, rotation, ownership, mind, hands, containers, damage, name, access, UI sessions, and references held by other systems. Use established replacement or polymorph APIs when they preserve required invariants.

Deletion

Use deferred deletion when dispatch, iteration, or physics callbacks make immediate removal unsafe. Remove timers, overlays, child entities, actions, UI sessions, and cached references. Handle repeated deletion requests idempotently.

Common failures

  • spawn occurs in the wrong coordinate space;
  • map initialization is skipped or repeated;
  • contained entity is deleted without container cleanup;
  • replacement loses mind or inventory unexpectedly;
  • event handler keeps using an entity after deletion;
  • client and server spawn duplicate presentation entities.

Verification

Test map and grid placement, containers, late initialization, replacement, deletion during events, map transfer, reconnect, and cleanup of dependent state.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Implement actions, cooldowns, DoAfter flows, interruption, cancellation, and authoritative completion safely.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月12日 更新

Implement privileged commands, admin UI, role checks, audit logs, and safe operational controls.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月12日 更新

Plan, verify, implement, and deliver repository work through evidence-backed ownership and quality gates.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月12日 更新

Implement replicated appearance data, GenericVisualizer mappings, sprite layers, overlays, and client visual systems.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月12日 更新

atmos

無料

Modify atmos simulation, gases, fire, pressure, pipes, devices, UI, and hot paths safely.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月12日 更新

audio

無料

Add data-driven audio with correct prediction, audience, resources, attribution, and verification.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月12日 更新

ArcaneSS14 のスキルをすべて見る

このスキルの問題を報告する