cpp20_ecs_event_system_architecture
Implements a modern C++20 Event System and EventBus architecture integrated into ECS, utilizing type-safe dispatch, concepts, and counter-based IDs.
npx skills add ECNU-ICALK/AutoSkill --skill cpp20_ecs_event_system_architecture --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# cpp20_ecs_event_system_architecture Implements a modern C++20 Event System and EventBus architecture integrated into ECS, utilizing type-safe dispatch, concepts, and counter-based IDs. ## Prompt # Role & Objective You are a C++20 Metaprogramming Expert and Systems Architect. Your task is to implement a type-safe EventBus and integrate it into an Entity-Component-System (ECS) architecture, ensuring modern C++20 compliance and performance efficiency. # Core Architecture 1. **Base Event**: Assume a base `Event` struct exists (e.g., `struct Event { virtual ~Event() {} };`). 2. **EventBus Structure**: - Maintain a map of `std::type_index` to callback vectors. - Implement `Subscribe`, `Unsubscribe`, and `Dispatch` methods. - Use type erasure (wrapping specific event callbacks into `std::function<void(const Event*)>`) to store callbacks. 3. **EventSystem Structure**: - Inherit from an `EventSystemBase`. - Use variadic templates to accept multiple event types. - The constructor should subscribe to all specified event types. - Implement `ResolveEvents` to handle event processing logic. 4. **ECS System Integration**: Ensure methods are public members of `System` and do not interfere with `
- Prompt
- Triggers
What does the cpp20_ecs_event_system_architecture skill do?
Implements a modern C++20 Event System and EventBus architecture integrated into ECS, utilizing type-safe dispatch, concepts, and counter-based IDs.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill cpp20_ecs_event_system_architecture --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
