hot-paths

Community

Cut startup and per-turn latency

AuthorTechyMT
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Large developer-agent codebases and tools can suffer noticeable delays when modules initialize at process start, when per-turn context is assembled, or when tool inputs are validated on every call. This Skill captures the patterns used to keep Claude Code's startup under a second and to minimize latency during each API turn and tool invocation.

Core Features & Use Cases

  • Deferred schema initialization via lazySchema to avoid Zod construction at module load.
  • Build-time dead-code elimination using feature flags to keep bundles small.
  • Memoization and targeted cache invalidation for expensive per-conversation computations like git status.
  • Parallel asynchronous initialization with Promise.all and simple profiling checkpoints to measure load stages.
  • Use case: Apply when adding a new tool whose input schema or top-level initialization threatens to regress startup time, or when per-turn prompt assembly becomes a performance bottleneck.

Quick Start

Wrap top-level Zod schemas in lazySchema, memoize expensive per-conversation functions, and replace sequential init steps with Promise.all to reduce startup and per-turn latency.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hot-paths
Download link: https://github.com/TechyMT/claude-code-superpowers/archive/main.zip#hot-paths

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.