Agent
knowledge-base
This file contains domain knowledge about the Cal.diy product and codebase. For coding…
Cache object property lookups in hot paths.
$ 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.
Cache object property lookups in hot paths.
title: Cache Property Access in Loops impact: LOW-MEDIUM impactDescription: reduces lookups tags: javascript, loops, optimization, caching
Cache object property lookups in hot paths.
**Incorrect (3 lookups × N iterations):**
for (let i = 0; i < arr.length; i++) {
process(obj.config.settings.value)
}**Correct (1 lookup total):**
const value = obj.config.settings.value
const len = arr.length
for (let i = 0; i < len; i++) {
process(value)
}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…