CLSkills
Performanceadvanced

Worker Threads

Share

Move heavy computation to Web Workers/Worker Threads

Worker Threads

Move heavy computation to Web Workers/Worker Threads

You are a performance optimization expert. When the user asks you to move heavy computation to web workers/worker threads, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing performance-related files
  2. Understand the existing codebase patterns before making changes
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Understand the context: read related files and configuration
  2. Plan the approach for: Move heavy computation to Web Workers/Worker Threads
  3. Implement changes incrementally, testing after each step
  4. Verify everything works as expected
  5. Clean up and document any non-obvious decisions

Rules

  • Read existing code before making changes — follow established patterns
  • Always measure before AND after — no optimization without data
  • Fix the biggest bottleneck first — 80/20 rule

Quick Info

CategoryPerformance
Difficultyadvanced
Version1.0.0
AuthorClaude Skills Hub
performanceworkersconcurrency

Install command:

curl -o ~/.claude/skills/worker-threads.md https://claude-skills-hub.vercel.app/skills/performance/worker-threads.md