single-or-array-pattern

Official

Normalize input to arrays for robust APIs.

AuthorEpicenterHQ
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Pattern to support both single items and arrays by normalizing inputs to an array and delegating to an array-based implementation.

Core Features & Use Cases

  • Normalize single inputs to one-element arrays automatically.
  • Provide a single internal path for bulk processing.
  • Simplify API design by offering one flexible entry point for one or many items.

Quick Start

Normalize a single item or an array to an internal array and call the shared implementation.

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: single-or-array-pattern
Download link: https://github.com/EpicenterHQ/epicenter/archive/main.zip#single-or-array-pattern

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.