AGENT SKILL

optimizing-cache-performance

This skill enables claude to analyze and improve application caching strategies. it optimizes cache hit rates, ttl configurations, cache key design, and invalidation strategies. use this skill when the user requests to "optimize cache performance"...

License 许可
MIT
最近更新
2025-12-18
Stars
★ 29
Forks
9

01 前言 Front Matter

name
optimizing-cache-performance
license
MIT
description
This skill enables claude to analyze and improve application caching strategies. it optimizes cache hit rates, ttl configurations, cache key design, and invalidation strategies. use this skill when the user requests to "optimize cache performance"...
allowed-tools
[ "Read", "Write", "Bash", "Grep" ]

02 资源文件 3

03 SKILL.md 正文

Overview

This skill empowers Claude to diagnose and resolve caching-related performance issues. It guides users through a comprehensive optimization process, ensuring efficient use of caching resources.

How It Works

  1. Identify Caching Implementation: Locates the caching implementation within the project (e.g., Redis, Memcached, in-memory caches).
  2. Analyze Cache Configuration: Examines the existing cache configuration, including TTL values, eviction policies, and key structures.
  3. Recommend Optimizations: Suggests improvements to cache hit rates, TTLs, key design, invalidation strategies, and memory usage.

When to Use This Skill

This skill activates when you need to:

  • Improve application performance by optimizing caching mechanisms.
  • Identify and resolve caching-related bottlenecks.
  • Review and improve cache key design for better hit rates.

Examples

Example 1: Optimizing Redis Cache

User request: "Optimize Redis cache performance."

The skill will:

  1. Analyze the Redis configuration, including TTLs and memory usage.
  2. Recommend optimal TTL values based on data access patterns.

Example 2: Improving Cache Hit Rate

User request: "Improve cache hit rate in my application."

The skill will:

  1. Analyze cache key design and identify potential areas for improvement.
  2. Suggest more effective cache key structures to increase hit rates.

Best Practices

  • TTL Management: Set appropriate TTL values to balance data freshness and cache hit rates.
  • Key Design: Use consistent and well-structured cache keys for efficient retrieval.
  • Invalidation Strategies: Implement proper cache invalidation strategies to avoid serving stale data.

Integration

This skill can integrate with code analysis tools to automatically identify caching implementations and configuration. It can also work with monitoring tools to track cache hit rates and performance metrics.

04 同仓库更多 Skills

BbgnsurfTech
BbgnsurfTech/claude-skills-collection

testing-visual-regression

Detect visual changes in UI components using screenshot comparison. Use when detecting unintended UI changes or pixel differences. Trigger with phrases like "test visual changes", "compare screenshots", or "detect UI regressions".

测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

generating-unit-tests

Automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".

测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

generating-test-reports

Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".

行政与办公人员测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

orchestrating-test-execution

Coordinate parallel test execution across multiple environments and frameworks. Use when performing specialized testing. Trigger with phrases like "orchestrate tests", "run parallel tests", or "coordinate test execution".

测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

managing-test-environments

Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".

测试与质量
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

generating-test-doubles

Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".

测试与质量
★ 29