AGENT SKILL

unreal-build-async-systems

Implement Unreal background computation and asynchronous callbacks with explicit thread ownership, cancellation and stale-result rejection.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 4
Forks
3

01 前言 Front Matter

name
unreal-build-async-systems
engines
[ "UNREAL" ]
description
Implement Unreal background computation and asynchronous callbacks with explicit thread ownership, cancellation and stale-result rejection.

02 资源文件 6

03 SKILL.md 正文

Unreal Build Async Systems

When to use

Implement background computation, task scheduling or delayed callback application in Unreal. Asset identity/loading belongs to asset integration; ability and AI tasks retain their feature-specific rules.

Activation and prerequisites

Run commands/resolve-engine.sh and commands/resolve-skill.sh unreal-build-async-systems before edits or tool launches. Require effective engine UNREAL and compatible: true; revalidate any task override and permitted output scope. A skill never selects its engine.

Read the actual engine version, task APIs, owner lifetime, throughput/latency budget and shutdown behavior. CPU jobs, asset loads, gameplay tasks and network requests do not share one cancellation API. Record observed context under the resolved .hephaera/.cache/tasks/<task>/; ENGINE.md remains the selector.

Workflow

  1. Define a bounded work item: immutable input, owner/request generation, cancellation state, deadline and output-size limit. Snapshot actor/component data on its owning thread before scheduling.
  2. Choose UE::Tasks, Async, an engine subsystem or an existing project queue against the installed release. Bound concurrent work; avoid blocking the game thread on a continuation that needs that thread.
  3. Compute on captured values and synchronized non-UObject shared state. Strong/weak object pointers and FGCScopeGuard address lifetime concerns, not synchronization of game-thread-owned fields. Use only APIs documented for the worker context.
  4. Give cancellation an owner and synchronization protocol. Observe it at bounded checkpoints; retiring a request does not necessarily preempt the underlying operation or free its input immediately.
  5. Marshal application to the owning thread. Revalidate weak owner, world, cancellation, request generation and current authority before mutation. A valid owner with a newer request still rejects an old completion.
  6. Pair delegates/timers with cleanup and define EndPlay, travel, unload and shutdown order. Non-UObject job data may safely outlive the actor; a captured raw this may not.
  7. Measure queue delay, work time, cancellation latency and discarded results. Keep permission to compute separate from permission to mutate world state or write artifacts.

Read task ownership and cancellation when implementing handoffs or teardown.

Verification

Exercise valid completion, superseding requests, queued/running cancellation, owner destruction, travel and shutdown under load. Check both accepted and discarded results, bounded queues and absence of dangling callbacks/deadlock. A stress pass does not by itself prove thread safety.

Output

Thread/ownership diagram, bounded task implementation, cancellation/result-application protocol and scoped evidence. Record environment, expected/observed outcomes and blocked/not-run checks separately. Compilation and structural checks are not runtime evidence.

Boundaries

Do not install plugins, invent preemptive cancellation or change the project engine. Match host headers and target platforms. Preserve budgets, provenance and existing approval/publication gates.

04 同仓库更多 Skills

TimothyMeadows
TimothyMeadows/Hephaera

verify-web3-game-lifecycle

Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

verify-onchain-game-assets

Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

plan-web3-game-assets

Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-wallets

Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-asset-trading

Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

build-evm-game-contracts

Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.

★ 4