tippinggame/f8framework/f8-features-event-workflow
Claude Code and agent skill by tippinggame/f8framework
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when implementing or troubleshooting Event feature workflows — message dispatching, event listening, EventDispatcher auto-cleanup, and strongly typed zero-GC event parameters (0-7 args, no object[] compatibility path) in F8Framework.
Install
npx vskill@latest install tippinggame/f8framework/f8-features-event-workflowSKILL.md
The same SKILL.md was published earlier as tippinggame/f8framework/f8-features-event-workflow.
Event Feature Workflow
⚠️ IMPORTANT: Before using this feature, you MUST formally initialize F8Framework in the launch sequence. EnsureModuleCenter.Initialize(this);has run first, then create the required module, for exampleFF8.Message = ModuleCenter.CreateModule<MessageManager>();.
Use this skill when
- The task is about event/message dispatching and listening.
- The user asks about decoupled communication between components.
- The user needs EventDispatcher auto-cleanup on UI or entities.
- Troubleshooting event dead loops or missing callbacks.
Path resolution
- Prefer project source at Assets/F8Framework.
- If F8Framework is installed as a package, use Packages/F8Framework.
- For usage docs, read: Assets/F8Framework/Tests/Event/README.md
Sources of truth
- Runtime module: Assets/F8Framework/Runtime/Event
- Editor module: Assets/F8Framework/Editor/Event
- Test docs: Assets/F8Framework/Tests/Event
Key classes and interfaces
| Class | Role | |
|---|---|---|
MessageManager | Core module. Access via FF8.Message. Global event bus. | |
EventDispatcher | Mixin base class for auto-cleanup event listeners. Used by BaseView. |
API quick reference
Define events
Global event listening (via FF8.Message)
EventDispatcher pattern (auto-cleanup)
Zero-GC recommendation
Workflow
- Define event IDs as enum (start from 10000 to avoid framework conflicts).
- Choose pattern: global
FF8.MessageorEventDispatchermixin. - For UI/entity classes, prefer
EventDispatcherfor automatic cleanup. - Use the strongly typed overload matching the event payload size; the event module now supports 0~7 fixed parameters.
- If you need to spread callback cost across frames, use
DispatchEventAsync(...); the current implementation executes 1 listener per frame. - Always pass
thisas the last parameter toAddEventListenerfor lifecycle binding. - The framework has built-in dead-loop prevention.
- Use the Event System Monitor editor window to debug active listeners.
Common error handling
| Error | Cause | Solution | |
|---|---|---|---|
| Event not received | Listener added after dispatch | Ensure listener registration before dispatch | |
| Dead loop warning | Event A dispatches Event B which dispatches Event A | Break the cycle, use intermediate state | |
| Memory leak | Listeners not removed on destroy | Use EventDispatcher or pass this for auto-cleanup | |
| Wrong callback signature | Params mismatch | Match the overload exactly: void(), void(T1), void(T1,T2) ... void(T1,T2,T3,T4,T5,T6,T7) |
Cross-module dependencies
- UI: BaseView extends EventDispatcher for auto-cleanup.
- Timer: Application focus events used by Timer module.
Output checklist
- Event ID enum defined with proper range.
- Listener pattern selected (global / EventDispatcher).
- Files changed and why.
- Validation status and remaining risks.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingTests/AISkills/f8framework-skills/features/f8-features-event-workflow/SKILL.md
Popularity
- Repository stars
- 870
- Repository forks
- 139
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tippinggame/f8framework/f8-features-event-workflow)