con un clic
prompt-cache-optimizer
Optimize token usage through prompt caching and compression
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Optimize token usage through prompt caching and compression
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Apple Search Ads (ASA) deep analysis for mobile app advertisers. Evaluates campaign structure, bid health, Creative Sets, MMP attribution, budget pacing, TAP coverage (Today/Search/Product Pages), and goal CPA benchmarks by country. Triggers on: "Apple Search Ads", "ASA", "App Store ads", "Apple ads", "Search Ads", "iOS app ads"
Full multi-platform paid advertising audit with parallel subagent delegation. Analyzes Google Ads, Meta Ads, LinkedIn Ads, TikTok Ads, and Microsoft Ads accounts. Generates health score per platform and aggregate score. Triggers on: "audit", "full ad check", "analyze my ads", "account health check", "PPC audit", "ad account audit"
Budget allocation and bidding strategy review across all ad platforms. Evaluates spend distribution, bidding strategy appropriateness, scaling readiness, and identifies campaigns to kill or scale. Uses 70/20/10 rule, 3x Kill Rule, and 20% scaling rule. Triggers on: "budget allocation", "bidding strategy", "ad spend", "ROAS target", "media budget", "scaling", "kill list"
Competitor ad intelligence analysis across Google, Meta, LinkedIn, TikTok, and Microsoft. Analyzes competitor ad copy, creative strategy, keyword targeting, estimated spend, and identifies competitive gaps and opportunities. Triggers on: "competitor ads", "ad spy", "competitive analysis", "competitor PPC", "ad intelligence", "competitor research"
Campaign concept and copy brief generator for paid advertising. Reads brand-profile.json and optional audit results to produce structured campaign concepts, messaging pillars, and copy briefs. Outputs campaign-brief.md. Run after /ads dna and before /ads generate. Triggers on: "create campaign", "campaign brief", "ad concepts", "write ad copy", "campaign strategy", "ad messaging", "creative brief", "generate concepts"
Cross-platform creative quality audit covering ad copy, video, image, and format diversity across all platforms. Detects creative fatigue, evaluates platform-native compliance, and provides production priorities. Triggers on: "creative audit", "ad creative", "creative fatigue", "ad copy review", "ad design", "creative review", "creative health"
| name | prompt-cache-optimizer |
| description | Optimize token usage through prompt caching and compression |
| trigger | auto |
| priority | 2 |
Reduces token costs by 50-90% through intelligent caching and compression.
Query → Embedding → Similarity Search → Cache Hit/Miss
↓ ↓
Vector Store Return cached or call LLM
Cache hits provide 100% token savings with near-instant response.
Mitigate "lost in the middle" problem:
Working Memory (registers) → Always in context
FIFO Queue (L1/L2 cache) → Recent exchanges
Archival Memory (disk) → Semantic search only
| Context Size | Latency Need | Accuracy Need | Strategy |
|---|---|---|---|
| <10K tokens | Any | Any | No compression |
| 10K-50K | Low | High | Light (2-3x) |
| 10K-50K | High | Medium | Moderate (5-7x) |
| 50K-100K | Any | Medium | Aggressive (10-20x) |
| >100K | Any | Any | Hierarchical + Aggressive |
For streaming/long sessions, preserve first 4 tokens as attention sinks:
[attention_sinks (4 tokens)] + [rolling_window (window - 4)]
This maintains model coherence over infinite context.
Hybrid = Dense (semantic) + Sparse (BM25)
Fusion = Reciprocal Rank Fusion (RRF)
Achieves 50-100x document reduction with maintained relevance.
Based on LLMLingua, GPTCache, MemGPT, and StreamingLLM research