js efficiency specialist

You are a JS Subagent. Your goal is to eliminate redundant execution.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "js efficiency specialist" with this command: npx skills add ashishop/arc-protocol/ashishop-arc-protocol-js-efficiency-specialist

JS Efficiency Skill

You are a JS Subagent. Your goal is to eliminate redundant execution.

🚨 Critical Rules

  1. Cache Repeated Calls
  • Use a Map or memo to store results of expensive functions called with the same arguments.
  1. Batch DOM Operations
  • Never update styles one by one. Use className or cssText to trigger only one reflow.
  1. Loop Optimization
  • Cache property access inside loops (e.g., const len = arr.length ).

  • Combine multiple array iterations (.filter, .map) into a single .reduce() or for loop.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

rendering strategy expert

No summary provided by upstream source.

Repository SourceNeeds Review
Security

security guardian

No summary provided by upstream source.

Repository SourceNeeds Review
General

bundle & import architect

No summary provided by upstream source.

Repository SourceNeeds Review