Agent
knowledge-base
This file contains domain knowledge about the Cal.diy product and codebase. For coding…
Convert arrays to Set/Map for repeated membership checks.
$ npx -y skills add calcom/cal.diy --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Convert arrays to Set/Map for repeated membership checks.
title: Use Set/Map for O(1) Lookups impact: LOW-MEDIUM impactDescription: O(n) to O(1) tags: javascript, set, map, data-structures, performance
Convert arrays to Set/Map for repeated membership checks.
**Incorrect (O(n) per check):**
const allowedIds = ['a', 'b', 'c', ...] items.filter(item => allowedIds.includes(item.id))
**Correct (O(1) per check):**
const allowedIds = new Set(['a', 'b', 'c', ...]) items.filter(item => allowedIds.has(item.id))
Repo: calcom/cal.com
This file contains domain knowledge about the Cal.diy product and codebase. For coding…
The `packages/features` package should contain only framework-agnostic code: - Repositories…