runtime-bootstrap-keeper

Orchestrate DiscordPHP runtime bootstrapping, gateway connection, and ready flow.

1.1k|250|Updated Aug 12, 2015
One-click install
npx skills add https://github.com/discord-php/DiscordPHP --skill runtime-bootstrap-keeper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: runtime-bootstrap-keeper
Source: https://github.com/discord-php/DiscordPHP/tree/main/.agents/skills/runtime-bootstrap-keeper
Command: npx skills add https://github.com/discord-php/DiscordPHP --skill runtime-bootstrap-keeper

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintain Discord.php runtime bootstrapping, startup options, event loop, gateway connection, reconnection, member chunking, cache configuration, and process lifecycle. Use when touching Discord.php, startup wiring, intents, or root repositories.

Core Features & Use Cases

  • Centralizes option resolution and dependency wiring for DiscordPHP bootstrapping.
  • Manages gateway connection, reconnection, and ready flow with member chunking and repositories lifecycle.
  • Helps coordinate root repositories and lifecycle flags to ensure a stable long-running CLI process.

Quick Start

Use this skill when implementing or modifying DiscordPHP startup and gateway wiring to ensure correct bootstrapping and readiness.

Frequently Asked Questions about runtime-bootstrap-keeper

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bootstrap a DiscordPHP runtime and manage its startup options?

DiscordPHP startup orchestration handles bootstrapping by centralizing option resolution and performing one-time factory wiring. This manages startup options and establishes the event loop for a stable CLI process.

How does the DiscordPHP gateway connection and reconnection lifecycle work?

DiscordPHP gateway connection lifecycle uses an eager connection approach followed by a guarded ready flow. It handles reconnection automatically to maintain a stable long-running CLI process during network interruptions.

What is member chunking in DiscordPHP and when is it applied?

Member chunking in DiscordPHP is applied during the guarded ready flow after gateway connection. It coordinates loading members into cache repositories to ensure accurate server state before emitting initial events.

Can I use DiscordPHP lifecycle orchestration to manage root repositories and cache configuration?

Yes, DiscordPHP lifecycle orchestration manages root repositories and cache configuration. It wires these dependencies during bootstrapping to ensure the runtime maintains correct state throughout the long-running process.

Why does my DiscordPHP CLI process drop during startup or fail to reach ready state?

A DiscordPHP CLI process may fail to reach ready state if lifecycle orchestration lacks a guarded ready flow or member chunking. Centralizing startup option resolution and eager gateway connection prevents these startup failures.