card-callback-performance

Community

Keep IM card callbacks snappy with robust caching.

Authorliuyu520
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Use when encountering IM platform card callback timeouts (error 200340), "card interaction timeout", "card page turn slow", "renderListCard slow", "renderDeleteModeCard slow", "ListSessions slow", "3 second timeout", "session list cache", "sessionListCache", "listSessionsCached", or when adding new card rendering code that calls expensive I/O operations (ListSessions, file scanning, JSONL parsing) in card callback paths.

Core Features & Use Cases

  • Document the 3-second timeout constraint on card interactions (e.g., next/prev page, checkbox toggles, form submissions) and the need to render quickly.
  • Provide a robust caching pattern for expensive card data (e.g., ListSessions), including a TTL-based cache and invalidation hooks on mutations.
  • Serve as a guide for adding new card rendering code that relies on cached data to avoid blocking I/O.

Quick Start

Use the card-callback-performance skill to implement a session data cache to ensure card callbacks stay under 3 seconds and invalidate on mutation.

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: card-callback-performance
Download link: https://github.com/liuyu520/cc-connect-fork/archive/main.zip#card-callback-performance

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.