·single-or-array-pattern
</>

single-or-array-pattern

epicenterhq/epicenter

Pattern for functions that accept either a single item or an array. Use when creating CRUD operations, batch processing APIs, or factory functions that should flexibly handle one or many inputs.

17Installs·2Trend·@epicenterhq

Installation

$npx skills add https://github.com/epicenterhq/epicenter --skill single-or-array-pattern

SKILL.md

Accept both single items and arrays, normalize internally, delegate to array-only implementation.

| recordingOrRecordings | recordings | | clientOrClients | clients | | itemOrItems | items | | paramsOrParamsArray | paramsArray |

Database Service (apps/whispering/src/lib/services/isomorphic/db/web.ts)

Pattern for functions that accept either a single item or an array. Use when creating CRUD operations, batch processing APIs, or factory functions that should flexibly handle one or many inputs. Source: epicenterhq/epicenter.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/epicenterhq/epicenter --skill single-or-array-pattern
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is single-or-array-pattern?

Pattern for functions that accept either a single item or an array. Use when creating CRUD operations, batch processing APIs, or factory functions that should flexibly handle one or many inputs. Source: epicenterhq/epicenter.

How do I install single-or-array-pattern?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/epicenterhq/epicenter --skill single-or-array-pattern Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/epicenterhq/epicenter

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-01