kv-optimization-advisor

Analyze Cloudflare KV operations and recommend parallelization, caching, and storage choices.

3|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/hirefrank/claude-plugins --skill kv-optimization-advisor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kv-optimization-advisor
Source: https://github.com/hirefrank/claude-plugins/tree/main/plugins/edge-stack/skills/kv-optimization-advisor
Command: npx skills add https://github.com/hirefrank/claude-plugins --skill kv-optimization-advisor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces KV access latency and unnecessary reads by suggesting parallelism, caching strategies, and storage choices for Cloudflare KV patterns.

Core Features & Use Cases

  • Performance Optimization: Detects sequential KV calls and proposes parallel patterns.
  • Caching Guidance: Recommends request-scoped caching and TTL strategies.
  • Storage Guidance: Advises when to use KV vs R2 vs D1 based on use case.

Quick Start

Run the advisor to analyze common KV patterns in your function and receive optimization recommendations.

Frequently Asked Questions about kv-optimization-advisor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Cloudflare KV performance in my functions?

KV optimization identifies sequential operations that could run in parallel, recommends caching strategies to reduce redundant reads, and suggests appropriate storage placement between KV, R2, and D1 based on your access patterns and data size.

Can I parallelize KV operations instead of running them sequentially?

Yes. The advisor detects sequential get, put, delete, and list operations and recommends parallelization patterns to reduce cumulative latency and improve throughput in your Cloudflare Workers functions.

When should I use KV versus R2 versus D1 for Cloudflare storage?

KV suits low-latency key-value access; R2 handles large binary objects cost-effectively; D1 provides relational queries. The advisor analyzes your access patterns and data characteristics to guide the right choice.

What caching strategies reduce KV read costs?

Request-scoped caching stores frequently accessed values within a single request lifecycle, and TTL tuning balances freshness against read frequency. The advisor detects missing caching opportunities and recommends configurations for your patterns.

How do I detect KV anti-patterns in my code?

KV anti-patterns include repeated reads of the same key, missing batch operations, and incorrect storage choice for your data type. The advisor scans function code to surface these inefficiencies and proposes fixes.