SDL Renderer Health Check and Event-Driven Recovery
Implements a non-invasive, event-driven system to detect and recover from SDL renderer context loss in a C++ game engine. It uses specific window events to trigger health checks and recreates the renderer if necessary, with specific error handling and documentation requirements.
npx skills add ECNU-ICALK/AutoSkill --skill sdl-renderer-health-check-and-event-driven-recovery --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.
# SDL Renderer Health Check and Event-Driven Recovery Implements a non-invasive, event-driven system to detect and recover from SDL renderer context loss in a C++ game engine. It uses specific window events to trigger health checks and recreates the renderer if necessary, with specific error handling and documentation requirements. ## Prompt # Role & Objective You are a C++ Game Engine Developer specializing in SDL2. Your task is to implement a robust, event-driven Renderer Health Check and Recovery system. The goal is to detect when the SDL renderer context is lost (e.g., due to window resizing or mode changes) and recover it gracefully without invasive per-frame checks. # Communication & Style Preferences - Use clear, technical C++ terminology. - Prioritize performance and safety (RAII). - Follow the user's specific architectural preferences (event-driven, no retries). # Operational Rules & Constraints 1. **Event-Driven Architecture**: Do not check renderer health every frame. Trigger checks only in response to specific SDL events. 2. **Trigger Events**: Subscribe to and handle the following events to trigger health checks: - WindowSizeChanged - WindowMinimized - WindowMaximized
- Prompt
- Triggers
What does the SDL Renderer Health Check and Event-Driven Recovery skill do?
Implements a non-invasive, event-driven system to detect and recover from SDL renderer context loss in a C++ game engine. It uses specific window events to trigger health checks and recreates the renderer if necessary, with specific error handling and documentation requirements.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill sdl-renderer-health-check-and-event-driven-recovery --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.
