create-aggregation

Official

Create Elasticsearch aggregation classes quickly

Authorbonu-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill automates the generation of new Elasticsearch aggregation classes, handling boilerplate, custom exceptions, and unit tests so developers avoid repetitive manual coding.

Core Features & Use Cases

  • Automated class scaffolding: Generates the aggregation PHP class with appropriate traits.
  • Exception scaffolding: Creates custom exception files when needed.
  • Unit test generation: Provides ready‑to‑run PHPUnit tests covering basic, filterable, globalizable, and size features.
  • Documentation update: Inserts the new aggregation into the project’s AGENTS.md file.

Use case example: When extending a PHP project with a custom metric or bucket aggregation, run this skill to instantly produce all required files following the project’s conventions.

Quick Start

Use the create‑aggregation skill to add a new aggregation named “average_sales” to the project.

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: create-aggregation
Download link: https://github.com/bonu-dev/php-elasticsearch-builder/archive/main.zip#create-aggregation

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 471,000+ vetted skills library on demand.