pattern-composite

Community

Master uniform tree structures with composites

Authorjohnnystefan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill ensures tree hierarchies and nested components can be handled uniformly, preventing duplication between leaf and composite logic and reducing errors in recursive structures.

Core Features & Use Cases

  • Component Interface: Define shared operations so clients interact with both simple leaves and container composites transparently.
  • Leaf and Composite Classes: Implement basic elements without children and container elements that aggregate, execute, and manage child components recursively.
  • Use Case: Model permission or department hierarchies where both individual roles and groups follow the same lifecycle rules for evaluation and updates.

Quick Start

Create a composite structure for a club hierarchy where departments contain nested teams and shared operations execute across all nodes.

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: pattern-composite
Download link: https://github.com/johnnystefan/test-saas-business/archive/main.zip#pattern-composite

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.