caching-cdn-strategy-planner — community caching-cdn-strategy-planner, openai-cli, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Cloud Optimization Agents needing advanced caching and CDN configuration capabilities. gemini cli, codex cli, claude cli 個人環境設定(windows

monkey1sai monkey1sai
[1]
[0]
Updated: 2/18/2026

Agent Capability Analysis

The caching-cdn-strategy-planner skill by monkey1sai is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Cloud Optimization Agents needing advanced caching and CDN configuration capabilities.

Core Value

Empowers agents to design effective caching at all layers, leveraging CloudFront for CDN configuration and optimizing cache behaviors with ViewerProtocolPolicy and CustomHeaders, while utilizing environment variables like process.env.CDN_SECRET for secure secret management.

Capabilities Granted for caching-cdn-strategy-planner

Configuring CDN distributions with custom headers and origins
Optimizing cache behaviors for secure HTTPS redirection
Designing multi-layer caching strategies for improved performance

! Prerequisites & Limits

  • Requires CloudFront configuration knowledge
  • Limited to environments supporting TypeScript and process.env variable usage
  • Needs secure secret management for CDN secrets
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

caching-cdn-strategy-planner

Install caching-cdn-strategy-planner, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command...

SKILL.md
Readonly

Caching & CDN Strategy Planner

Design effective caching at all layers.

Caching Layers

Client → CDN (Edge) → Server Cache → Database

CDN Configuration (CloudFront)

typescript
1const distribution = { 2 Origins: [ 3 { 4 DomainName: "api.example.com", 5 CustomHeaders: [ 6 { 7 HeaderName: "X-CDN-Secret", 8 HeaderValue: process.env.CDN_SECRET, 9 }, 10 ], 11 }, 12 ], 13 DefaultCacheBehavior: { 14 ViewerProtocolPolicy: "redirect-to-https", 15 AllowedMethods: ["GET", "HEAD", "OPTIONS"], 16 CachedMethods: ["GET", "HEAD"], 17 Compress: true, 18 DefaultTTL: 86400, // 1 day 19 MaxTTL: 31536000, // 1 year 20 MinTTL: 0, 21 ForwardedValues: { 22 QueryString: true, 23 Cookies: { Forward: "none" }, 24 Headers: ["Accept", "Accept-Encoding"], 25 }, 26 }, 27 CacheBehaviors: [ 28 { 29 PathPattern: "/api/static/*", 30 DefaultTTL: 31536000, // 1 year - never changes 31 }, 32 { 33 PathPattern: "/api/dynamic/*", 34 DefaultTTL: 300, // 5 min - changes frequently 35 }, 36 ], 37};

Server-side Caching (Redis)

typescript
1import Redis from 'ioredis'; 2 3const redis = new Redis(process.env.REDIS_URL); 4 5async function getCachedOrFetch<T>( 6 key: string, 7 fetcher: () => Promise<T>, 8 ttl: number = 3600 9): Promise<T> { 10 // Try cache 11 const cached = await redis.get(key); 12 if (cached) { 13 return JSON.parse(cached); 14 } 15 16 // Fetch and cache 17 const data = await fetcher(); 18 await redis.setex(key, ttl, JSON.stringify(data)); 19 20 return data; 21} 22 23// Usage 24app.get('/api/user/:id', async (req, res) => { 25 const user = await getCachedOrFetch( 26 \`user:\${req.params.id}\`, 27 () => prisma.user.findUnique({ where: { id: req.params.id } }), 28 3600 29 ); 30 31 res.json(user); 32});

Cache Invalidation

typescript
1// Invalidate on update 2app.put('/api/user/:id', async (req, res) => { 3 const user = await prisma.user.update({ 4 where: { id: req.params.id }, 5 data: req.body, 6 }); 7 8 // Invalidate cache 9 await redis.del(\`user:\${req.params.id}\`); 10 11 // Invalidate CDN 12 await cloudfront.createInvalidation({ 13 DistributionId: DISTRIBUTION_ID, 14 InvalidationBatch: { 15 Paths: { Items: [\`/api/user/\${req.params.id}\`] }, 16 CallerReference: Date.now().toString(), 17 }, 18 }); 19 20 res.json(user); 21});

Cache Headers

typescript
1app.get("/api/products", (req, res) => { 2 res.set({ 3 "Cache-Control": "public, max-age=3600", // Browser + CDN: 1h 4 ETag: generateETag(products), 5 "Last-Modified": new Date(products.updatedAt).toUTCString(), 6 }); 7 8 res.json(products); 9}); 10 11app.get("/api/user/profile", (req, res) => { 12 res.set({ 13 "Cache-Control": "private, no-cache", // No caching (sensitive) 14 }); 15 16 res.json(profile); 17});

Output Checklist

  • CDN configured
  • Server cache implemented
  • Invalidation strategy
  • Cache headers set
  • Monitoring configured ENDFILE

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is caching-cdn-strategy-planner?

Perfect for Cloud Optimization Agents needing advanced caching and CDN configuration capabilities. gemini cli, codex cli, claude cli 個人環境設定(windows

How do I install caching-cdn-strategy-planner?

Run the command: npx killer-skills add monkey1sai/openai-cli. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for caching-cdn-strategy-planner?

Key use cases include: Configuring CDN distributions with custom headers and origins, Optimizing cache behaviors for secure HTTPS redirection, Designing multi-layer caching strategies for improved performance.

Which IDEs are compatible with caching-cdn-strategy-planner?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for caching-cdn-strategy-planner?

Requires CloudFront configuration knowledge. Limited to environments supporting TypeScript and process.env variable usage. Needs secure secret management for CDN secrets.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add monkey1sai/openai-cli. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use caching-cdn-strategy-planner immediately in the current project.

Related Skills

Looking for an alternative to caching-cdn-strategy-planner or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI