Agent skill

Optimizing Cache Performance

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Execute this skill enables AI assistant to analyze and improve application caching strategies.

MITAuto-check passedBackend & APIs

Install Optimizing Cache Performance

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill optimizing-cache-performance -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace optimizing-cache-performance --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/optimizing-cache-performance .claude/skills/optimizing-cache-performance && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
optimizing-cache-performance
GitHub stars
2.8k
Token cost
~839 tokens
SKILL.md length
352 words
Files
4 (incl. scripts, references, assets)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Execute this skill enables AI assistant to analyze and improve application caching strategies.

  • Works in 3 steps: Identify Caching Implementation: Locates… → Analyze Cache Configuration: Examines… → Recommend Optimizations: Suggests…
  • The user requests to optimize cache performance..
  • SKILL.md covers Overview, How It Works, When to Use This Skill and Examples, plus 7 more sections
  • Optimizing performance

What it does

Optimizing Cache Performance is an agent skill from jeremylongshore/tons-of-skills-marketplace. Execute this skill enables AI assistant 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"... Use when optimizing performance. Trigger with phrases like 'optimize', 'performance', or 'speed up'.

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts, reference files and assets (for example `assets/README.md`, `references/README.md` and `scripts/README.md`). Compatibility notes: Designed for Claude Code

It sits in Backend & APIs, covering Caching and Performance optimization. It works with Redis. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • The user requests to optimize cache performance..
  • Optimizing performance
  • With phrases like optimize

Example prompts

  • “optimize cache performance”
  • “optimize”
  • “performance”
  • “/optimizing-cache-performance”

Requirements

  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Bash(cmd:*), Grep

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  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.

What it can do on your machine

Read from SKILL.md and the folder at commit 23ea8d4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Bash(cmd:*)
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Optimizing Cache Performance loads about 839 tokens when it runs, and up to ~857 if it reads all its reference files. Until then it costs about 99 tokens; SKILL.md has 352 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~99
When it runs · the whole SKILL.md, loaded when a task matches
~839
With references · SKILL.md plus every file in references/, read only if the agent opens them
~857

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit 23ea8d4, republished under its MIT licence (© jeremylongshore). 352 words, ~839 tokens.

Download SKILL.mdSave it as .claude/skills/optimizing-cache-performance/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
optimizing-cache-performance
description
Execute this skill enables AI assistant 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"... Use when optimizing performance. Trigger with phrases like 'optimize', 'performance', or 'speed up'.
allowed-tools
Read, Write, Bash(cmd:*), Grep
compatibility
Designed for Claude Code
version
1.19.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
performance, optimizing-cache

Cache Performance Optimizer

Analyze and optimize caching strategies for Redis, Memcached, and in-memory caches by tuning hit rates, TTL configurations, key design, and invalidation policies.

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.
Show full SKILL.md (139 more words)Show less

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.

Prerequisites

  • Appropriate file access permissions
  • Required dependencies installed

Instructions

  1. Invoke this skill when the trigger conditions are met
  2. Provide necessary context and parameters
  3. Review the generated output
  4. Apply modifications as needed

Output

The skill produces structured output relevant to the task.

Error Handling

  • Invalid input: Prompts for correction
  • Missing dependencies: Lists required components
  • Permission errors: Suggests remediation steps

Resources

  • Project documentation
  • Related skills and commands

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references, assets) in skills/.curated/optimizing-cache-performance of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • assets/README.md
  • references/README.md
  • scripts/README.md

Open the folder on GitHubat commit 23ea8d4

Compare with similar skills

Optimizing Cache Performance next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Optimizing Cache Performance compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Optimizing Cache Performance this skilljeremylongshore/tons-of-skills-marketplace2.8k—~839Automated safety check: PassMIT
Stripe Projectsfossasia/eventyay1.7k5 repos~2kAutomated safety check: NotesApache-2.0
FoundatioFoundatioFx/Foundatio2.1k—~3.9kAutomated safety check: PassApache-2.0
FastAPI-Redis SDK Developmentredis/fastapi-redis-sdk404—~2.5kAutomated safety check: NotesMIT
Performancestatic-web-server/static-web-server2.4k—~3.1kAutomated safety check: PassApache-2.0
Caching Patternsdilolabs/nosia2131 repos~1.9kAutomated safety check: PassMIT

Similar skills

  • Stripe Projects

    fossasia/eventyay

    A skill your agent uses when the user wants to provision infrastructure or third-party services using Stripe Projects.

    1.7k GitHub starsUsed in 5 repos~2k tokens
    Backend & APIsAuto-check: notes
  • Foundatio

    FoundatioFx/Foundatio

    A skill your agent uses when working with Foundatio infrastructure abstractions for .NET -- caching, queuing, messaging, file storage, distributed locking, or background jobs.

    2.1k GitHub stars~3.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • FastAPI-Redis SDK Development

    redis/fastapi-redis-sdk

    Official

    Guides development on the fastapi-redis-sdk library itself - its connection lifecycle, dependency-injected caching, and async/sync bridging.

    404 GitHub stars~2.5k tokensUpdated 6 days ago
    Backend & APIsAuto-check: notes
  • Performance

    static-web-server/static-web-server

    Optimize or review performance for the Static Web Server (SWS) project — profiling, bottlenecks, resource usage, compression, and caching

    2.4k GitHub stars~3.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Caching Patterns

    dilolabs/nosia

    Implements HTTP caching with ETags, fragment caching, Russian doll caching, and Solid Cache configuration.

    213 GitHub starsUsed in 1 repo~1.9k tokens
    Backend & APIsAuto-check passed
  • Caching

    codewithmukesh/dotnet-claude-kit

    Caching strategies for .NET 10 applications. An agent skill from codewithmukesh/dotnet-claude-kit.

    751 GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Analyzing Text With NLP

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to perform natural language processing and text analysis using the nlp-text-analyzer plugin.

    2.8k GitHub starsUsed in 1 repo~819 tokens
    Auto-check passed
  • Building Neural Networks

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill allows AI assistant to construct and configure neural network architectures using the neural-network-builder plugin.

    2.8k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Detecting Data Anomalies

    jeremylongshore/tons-of-skills-marketplace

    Process identify anomalies and outliers in datasets using machine learning algorithms.

    2.8k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Explaining Machine Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill enables AI assistant to provide interpretability and explainability for machine learning models.

    2.8k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Optimizing Prompts

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill optimizes prompts for large language models (llms) to reduce token usage, lower costs, and improve performance.

    2.8k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed

Works with

Categories

Questions about Optimizing Cache Performance

What does Optimizing Cache Performance do?

Execute this skill enables AI assistant to analyze and improve application caching strategies. Optimizing Cache Performance is an agent skill from jeremylongshore/tons-of-skills-marketplace. Execute this skill enables AI assistant to analyze and improve application caching strategies.

When should I use Optimizing Cache Performance?

Optimizing Cache Performance fits situations like: the user requests to optimize cache performance.; optimizing performance; with phrases like optimize.

How do I install Optimizing Cache Performance in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill optimizing-cache-performance -a claude-code`. Or copy the skill folder (skills/.curated/optimizing-cache-performance in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/optimizing-cache-performance in your project. Claude Code loads it when a task matches its description.

How do I install Optimizing Cache Performance in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill optimizing-cache-performance -a codex`. Or copy the skill folder (skills/.curated/optimizing-cache-performance in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/optimizing-cache-performance in your project. Codex loads it when a task matches its description.

Can I use Optimizing Cache Performance in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill optimizing-cache-performance -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/optimizing-cache-performance, .gemini/skills/optimizing-cache-performance, .github/skills/optimizing-cache-performance and .opencode/skills/optimizing-cache-performance in your project.

What does Optimizing Cache Performance need to run?

SKILL.md names no scripts, command-line tools or credentials: Optimizing Cache Performance is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Bash(cmd:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Optimizing Cache Performance access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Optimizing Cache Performance safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Optimizing Cache Performance use?

Optimizing Cache Performance is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Optimizing Cache Performance use?

About 839 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 18 tokens, read only when the agent opens those files.

What are the alternatives to Optimizing Cache Performance?

Skills that share tags, products or a category with Optimizing Cache Performance: Stripe Projects (fossasia/eventyay, 1.7k stars), Foundatio (FoundatioFx/Foundatio, 2.1k stars), FastAPI-Redis SDK Development (redis/fastapi-redis-sdk, 404 stars) and Performance (static-web-server/static-web-server, 2.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Optimizing Cache Performance?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,821 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 8, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.