helpers-and-infra-keeper

Coordinate DiscordPHP infrastructure utilities for caching, endpoint binding, and exceptions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Work with DiscordPHP's infrastructure utilities — CacheWrapper, CacheConfig, BigInt, Multipart, Endpoint::bind URL templates, Collection base class, and domain Exceptions. Use when changing cache behavior, REST endpoint routing, file uploads, big-integer ID math, or adding/modifying exceptions.

Core Features & Use Cases

  • Cache infrastructure management: CacheWrapper, CacheConfig, LegacyCacheWrapper.
  • Utility helpers: BigInt, Multipart, Endpoint::bind patterns, and Collection-based repositories.
  • Domain errors: centralized Exceptions under src/Discord/Exceptions/.

Quick Start

Review and modify the cache infrastructure by updating CacheWrapper and CacheConfig to tailor caching for your DiscordPHP deployment.

Frequently Asked Questions about helpers-and-infra-keeper

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

FAQPage Schema
How do I manage DiscordPHP cache behavior and configure CacheWrapper?

To manage DiscordPHP cache behavior, update CacheWrapper and CacheConfig to tailor caching for your deployment. You can also use LegacyCacheWrapper to maintain backward compatibility while enforcing the three-class cache hierarchy.

What is the correct way to bind REST endpoint URLs in DiscordPHP?

DiscordPHP enforces strict Endpoint::bind URL template usage for REST endpoint routing. You must use this pattern to modify endpoint routing templates and ensure stable infrastructure across repositories and helpers.

How do I handle big integer ID math and file uploads in DiscordPHP?

Use BigInt for big-integer ID math and Multipart for file uploads in DiscordPHP. These utility helpers support Collection-based repositories to coordinate cross-cutting infrastructure tasks.

Where do I add or modify domain exceptions in a DiscordPHP project?

DiscordPHP centralizes domain errors under src/Discord/Exceptions/. You add or modify exceptions in this directory to handle domain-specific errors consistently across the infrastructure utilities.

Can I use DiscordPHP infrastructure helpers for caching and endpoint binding without external dependencies?

Yes, DiscordPHP infrastructure helpers operate without external dependencies. They coordinate caching, endpoint binding, and exceptions natively, enforcing the three-class cache hierarchy and strict routing templates internally.