gateway-cache-sync-keeper
Skill by discord-php
Guides maintenance of gateway event handlers in the discord-php codebase. It covers payload hydration, cache updates, event return shapes and handler registration. Aimed at developers editing WebSockets event files.
Install gateway-cache-sync-keeper
Built from the published package, never by AI.
git clone --depth 1 https://github.com/discord-php/DiscordPHP /tmp/DiscordPHP && mkdir -p ~/.claude/skills && cp -r /tmp/DiscordPHP/.agents/skills/gateway-cache-sync-keeper ~/.claude/skills/gateway-cache-sync-keeperRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install gateway-cache-sync-keeper in Claude Code
git clone --depth 1 https://github.com/discord-php/DiscordPHP /tmp/DiscordPHP && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/DiscordPHP/.agents/skills/gateway-cache-sync-keeper ~/.gemini/antigravity-cli/skills/gateway-cache-sync-keeperAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install gateway-cache-sync-keeper in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
gateway-cache-sync-keeper is an agent skill for maintaining gateway event handlers in the discord-php codebase. It loads when work touches Handlers.php, Event.php or the WebSockets Events folder. It explains that event classes turn raw payloads into typed parts and update owning repositories and related user and member caches.
The skill sets a read order, a checklist for changing event families, and rules for return shapes, such as MessageUpdate returning new and old values. It also covers partial payloads, intent-gated message content and guild create bootstrap behavior. It lists the three files that usually change together: the constant, the registration and the implementation. It is written for developers who maintain this library's event layer and want to avoid leaving caches out of sync.
Written from the project's SKILL.md and checked against it.
What it can do
- Hydrate payloadsTurns gateway payloads into typed parts using runtime TYPES maps.
- Keep caches in syncUpdates owning repositories and related user and member caches together.
- Check return shapesKeeps values returned to listeners stable, such as MessageUpdate's new and old values.
- Register new event typesCovers adding a constant in Event.php, a registration in Handlers.php and an event class.
- Review partial payloadsWarns against overwriting richer cached state with sparse gateway data.
Try asking
- Add a new gateway event type and register its handler.
- Check that my MessageUpdate change keeps the old and new return values.
- Review my GuildDelete change for unavailable versus removed handling.
Good to know
- Scoped to the WebSockets event files named in the skill.
- Describes internal conventions of the discord-php codebase.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/gateway-cache-sync-keeper/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to gateway-cache-sync-keeper
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
gateway-cache-sync-keeper: common questions
Which files does this skill cover?
It is used when work touches Handlers.php, Event.php and files under WebSockets/Events. It names MessageCreate, GuildCreate and InteractionCreate as representative events.
Does it cover message content intents?
Yes. It notes that message content may be missing without the MESSAGE_CONTENT intent and says handlers should account for that.
Why do event return values matter here?
Userland listeners receive emitted values, so the skill says return shapes should stay stable. For example, MessageCreate returns a new Message.
How do I install gateway-cache-sync-keeper?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gateway-cache-sync-keeper free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gateway-cache-sync-keeper safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gateway-cache-sync-keeper?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
