add-event

Official

Add events and listeners to Bespoke packages.

Authorbespoke-uk
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The tool provides a quick scaffold to add an event and optional listener to a Bespoke package, enabling consistent event-driven behavior across packages.

Core Features & Use Cases

  • Generates an Event class at src/Events/{EventName}.php.
  • Generates a Listener class at src/Listeners/{ListenerName}.php (if requested).
  • Updates registration in config/{package-name}.php for the event/listener.
  • Demonstrates event naming conventions and typical usage patterns.

Quick Start

Provide a package path, an EventName in PascalCase, and an optional ListenerName to scaffold, following the documented conventions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-event
Download link: https://github.com/bespoke-uk/bespoke-mono/archive/main.zip#add-event

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.