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

actions-and-doafter

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

インストール方法を見る

含まれるファイル(4)

  • SKILL.md1.9 KB
  • agents/openai.yaml245 B
  • references/action-lifecycle.md440 B
  • references/doafter-checklist.md430 B

SKILL.md(原文)

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

Use actions for reusable player abilities and DoAfter flows for interruptible, time-based completion.

Action lifecycle

  1. Find the owner component and system.
  2. Decide whether the action is granted by prototype, component startup, equipment, role, or runtime state.
  3. Keep action identity and event contract in Shared when client prediction or UI needs it.
  4. Validate user, target, cooldown, range, access, and current state on the server.
  5. Start the action or DoAfter exactly once.
  6. Apply resources, cooldowns, and persistent effects only at the correct authoritative point.
  7. Remove or disable the action when its source disappears.

DoAfter design

Define interruption rules deliberately: movement, damage, hand changes, target movement, target deletion, range, incapacitation, and duplicate requests. Use the established DoAfter event pattern in the current codebase.

Do not mutate valuable state before completion unless rollback is explicit. Completion handlers must revalidate state because the world may have changed during the delay.

Prediction

Immediate local animation, popup, or sound may be predicted. The final protected outcome remains authoritative. Prevent duplicate feedback when the server confirms or rejects the action.

Common failures

  • action remains after the granting component is removed;
  • cooldown is applied before a rejected attempt;
  • two concurrent DoAfters complete the same operation;
  • target deletion leaves stale state;
  • completion trusts conditions checked only at start;
  • predicted sound or popup plays twice.

Verification

Test success, cancellation by every configured interrupt, repeated requests, target deletion, disconnect, source removal, cooldown, and rejection under latency.

レビュー

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

同じリポジトリのスキル

概要と使いどころ

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

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

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

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

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

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

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

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

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

atmos

無料

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

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

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

audio

無料

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

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

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

Implement BUI contracts, server validation, localized client windows, lifecycle cleanup, and state refresh.

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

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

ArcaneSS14 のスキルをすべて見る

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