AI & Agents
Agent
js-cache-property-access
Cache object property lookups in hot paths.
Claude Code
$ npx -y skills add calcom/cal.diy --agent claude-code
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
Agent definition
js-cache-property-access.mdtitle: Cache Property Access in Loops impact: LOW-MEDIUM impactDescription: reduces lookups tags: javascript, loops, optimization, caching
Cache Property Access in Loops
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)
} Stats
50,353
Stars
Active
Maintenance
TypeScript
Language
MIT
License
Last commit
Created
50k3 skills95 agents
More agents from other plugins.
CSharpExpert.agent
AgentAn agent designed to assist with software development tasks for .NET projects.
coder
AgentFocused coder - implements exactly the assigned subtask in its worktree
Argon
AgentGoogle cross-vendor agent named for the model it runs — Gemini 4 Argon, Google’s top reasoning model, via…
Questions about js-cache-property-access.
- Which coding agents can use js-cache-property-access?
- js-cache-property-access installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.

