Skip to main content

API Caching

Establishes comprehensive API caching strategies and performance optimization patterns for efficient cache management.

Install this skill

or
38/100

Security score

The API Caching skill was audited on Mar 1, 2026 and we found 14 security issues across 2 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 191

Template literal with variable interpolation in command context

SourceSKILL.md
191console.error(`Error fetching data for key ${key}:`, error);
medium line 219

Template literal with variable interpolation in command context

SourceSKILL.md
219console.error(`Error updating data provider for key ${key}:`, error);
medium line 386

Template literal with variable interpolation in command context

SourceSKILL.md
386return `user:${userId}:${resource}:${context.version || 'v1'}`;
medium line 415

Template literal with variable interpolation in command context

SourceSKILL.md
415return `api:${method}:${endpoint}:${params}:${context.version || 'v1'}`;
medium line 604

Template literal with variable interpolation in command context

SourceSKILL.md
604console.error(`Error in cache event listener for ${event}:`, error);
medium line 613

Template literal with variable interpolation in command context

SourceSKILL.md
613const key = `resource:${data.resource}:${data.id}`;
medium line 619

Template literal with variable interpolation in command context

SourceSKILL.md
619const pattern = `user:${data.userId}:*`;
medium line 760

Template literal with variable interpolation in command context

SourceSKILL.md
760console.log(`🔥 Warming up cache for ${endpoints.length} endpoints`);
medium line 788

Template literal with variable interpolation in command context

SourceSKILL.md
788console.log(`🔥 Warming endpoint: ${endpoint.path}`);
medium line 976

Template literal with variable interpolation in command context

SourceSKILL.md
976message: `Low cache hit rate: ${(this.metrics.hitRate * 100).toFixed(2)}%`,
medium line 988

Template literal with variable interpolation in command context

SourceSKILL.md
988message: `High eviction rate: ${(evictionRate * 100).toFixed(2)}%`,
medium line 999

Template literal with variable interpolation in command context

SourceSKILL.md
999message: `Large cache size: ${(this.metrics.cacheSize / 1024 / 1024).toFixed(2)}MB`,
low line 371

Buffer.from base64 decode

SourceSKILL.md
371const json = Buffer.from(padded, 'base64').toString();
low line 457

Buffer.from base64 decode

SourceSKILL.md
457const json = Buffer.from(padded, 'base64').toString();
Scanned on Mar 1, 2026
View Security Dashboard