본문으로 건너뛰기
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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 22일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 22일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 22일 업데이트

atmos

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 22일 업데이트

audio

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 22일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ArcaneSS14/arcane-new112026년 10월 22일 업데이트

ArcaneSS14의 스킬 모두 보기

이 스킬의 문제 신고