acc-create-composite
Installation
SKILL.md
Composite Pattern Generator
Creates Composite pattern infrastructure for treating individual objects and compositions uniformly.
When to Use
| Scenario | Example |
|---|---|
| Tree structures | Menus, file systems, organization charts |
| Part-whole hierarchies | UI components, product categories |
| Recursive operations | Calculate totals, render trees |
| Uniform treatment | Same interface for leaf and composite |
Component Characteristics
Component Interface
- Defines operations for all objects
- Shared by leaf and composite
- Enables uniform treatment