Agent skill

Opensearch Personalize Caching Strategies

by pproenca in pproenca/dot-skills

Caching strategies in front of AWS OpenSearch (Elasticsearch) or AWS Personalize — search, recommenders, multi-recommender pages, anon vs logged-in traffic.

MITAuto-check passedBackend & APIs

Install Opensearch Personalize Caching Strategies

skills CLI
$ npx skills add pproenca/dot-skills --skill opensearch-personalize-caching-strategies -a claude-code

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

GitHub CLI
$ gh skill install pproenca/dot-skills opensearch-personalize-caching-strategies --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/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/opensearch-personalize-caching-strategies .claude/skills/opensearch-personalize-caching-strategies && 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
opensearch-personalize-caching-strategies
GitHub stars
215
Token cost
~4.8k tokens
SKILL.md length
1,353 words
Files
57 (incl. references, assets)
Skills in repo
41
Repo updated
First seen
Licence
MIT

At a glance

Caching strategies in front of AWS OpenSearch (Elasticsearch) or AWS Personalize — search, recommenders, multi-recommender pages, anon vs logged-in traffic.

  • Works in 9 steps: Decision & Cost Calculus (CRITICAL) → Cache Key Design (CRITICAL) → Personalisation Boundary (HIGH) → …
  • Personalize throttling
  • SKILL.md covers When to Apply, The Caching Pipeline, Rule Categories by Priority and Quick Reference, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Opensearch Personalize Caching Strategies is an agent skill from pproenca/dot-skills. Caching strategies in front of AWS OpenSearch (Elasticsearch) or AWS Personalize — search, recommenders, multi-recommender pages, anon vs logged-in traffic. Covers ROI decision (TPS/minProvisionedTPS, Zipf, amplification), key design (canonicalisation, cohort vs user, solution-version pinning, bucketing), personalisation boundary (anon/logged split, fan-out coalescing), strategies (cache-aside, refresh-ahead, write-through, batch precompute, L1+L2), TTL (volatility, soft/hard, jitter, event-driven invalidation)…

Its SKILL.md is about 4.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 59 other files, including reference files and assets (for example `AGENTS.md`, `assets/templates/_template.md` and `metadata.json`).

It sits in Backend & APIs, covering Caching, Event-driven systems and Search implementation. It works with OpenSearch, Amazon Web Services, Elasticsearch and Redis. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.

When your agent uses it

  • Personalize throttling
  • ElastiCache sizing

Example prompts

  • “/opensearch-personalize-caching-strategies”

Requirements

  • Python 3

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Decision & Cost Calculus (CRITICAL)
  2. Cache Key Design (CRITICAL)
  3. Personalisation Boundary (HIGH)
  4. Strategies & Write Paths (HIGH)
  5. TTL & Freshness (HIGH)
  6. Stampede Protection (HIGH)
  7. Observability & Empirical Measurement (HIGH)
  8. Negative & Defensive Caching (MEDIUM-HIGH)
  9. Tiered & Edge Caching (MEDIUM-HIGH)

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    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.

Context cost

Opensearch Personalize Caching Strategies loads about 4.8k tokens when it runs, and up to ~64k if it reads all its reference files. Until then it costs about 252 tokens; SKILL.md has 1,353 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 1,353 words, ~4,782 tokens.

Download SKILL.mdSave it as .claude/skills/opensearch-personalize-caching-strategies/SKILL.md (or your agent's skills folder). This skill also uses 56 other files; get the full folder from GitHub.
name
opensearch-personalize-caching-strategies
description
Caching strategies in front of AWS OpenSearch (Elasticsearch) or AWS Personalize — search, recommenders, multi-recommender pages, anon vs logged-in traffic. Covers ROI decision (TPS/minProvisionedTPS, Zipf, amplification), key design (canonicalisation, cohort vs user, solution-version pinning, bucketing), personalisation boundary (anon/logged split, fan-out coalescing), strategies (cache-aside, refresh-ahead, write-through, batch precompute, L1+L2), TTL (volatility, soft/hard, jitter, event-driven invalidation), stampede protection (single-flight, XFetch, stale-while-revalidate, circuit breaker), observability (hit-rate, cost-per-1k, cardinality drift, log-replay), defensive caching (negative, Bloom filter), and tier composition (LRU, ElastiCache Redis, CloudFront, OpenSearch request/filter cache). Triggers on cache hit rate, Personalize throttling, stampede, single-flight, L1/L2, ElastiCache sizing. Complements opensearch-function-scoring-algorithms.

Marketplace-Research OpenSearch + Personalize Caching Best Practices

A reference distillation of caching strategies for two-sided marketplaces running AWS OpenSearch (search) and AWS Personalize (recommendations behind a microservice). Contains 52 rules across 9 categories, ordered by cascade effect — from the upstream decision of whether to cache, through key design, personalisation boundary, strategy selection, TTL design, stampede protection, observability, and the lower-cascade categories of negative caching and tier composition. Each rule explains the WHY (the cost, latency, or correctness mechanism), shows incorrect-vs-correct code (TypeScript/Node for the microservice layer, Python for batch and analytics, OpenSearch JSON for OS-specific queries, YAML for CDN/Kubernetes), and cites the canonical source — AWS Personalize/OpenSearch/ElastiCache documentation, the XFetch paper (Vattani et al. VLDB 2015), RFC 5861 (stale-while-revalidate), and the engineering blogs of cache infrastructure teams (Netflix EVCache, Pinterest Cachelib, Twitter Twemcache, Cloudflare).

This is the complement to opensearch-function-scoring-algorithms — that skill answers "what should the ranking compute?", this skill answers "how do you scale it to production traffic without burning down OpenSearch or Personalize?"

When to Apply

Reach for this skill when:

The rules apply to any AWS-based marketplace with OpenSearch and Personalize fronted by an application microservice, regardless of vertical — accommodation, food delivery, fashion, services, jobs, secondhand goods, real estate. Triggers include "cache hit rate", "cache miss storm", "Personalize throttling", "Personalize cost", "multi-recommender page", "cohort caching", "single-flight", "stale-while-revalidate", "XFetch", "OpenSearch slow queries", "ElastiCache sizing", "CloudFront search caching", "Bloom filter cache penetration", and "thundering herd".

The Caching Pipeline

Categories are derived from the request-time caching pipeline. Earlier stages cascade: a wrong "should we cache?" decision wastes everything below; un-canonicalised keys cap hit rate at a fraction of the achievable ceiling; without observability you can't tell whether any of the rules helped.

text
Request → [1] Decide → [2] Key construction → [3] Personalisation boundary
        → [4] Strategy (read/write path) → [5] TTL/freshness → [6] Stampede protection
        → [8] Negative/defensive → [9] Tier composition (L1/L2/CDN/OS-internal) → Response
                                                ↑
                                [7] Observability (meta-layer applied to all stages:
                                    hit rate by key class, latency-with-and-without,
                                    cost-per-1k, cardinality, staleness, log-replay)

Rule Categories by Priority

PriorityCategoryImpactPrefixRules
1Decision & Cost CalculusCRITICALdecide-7
2Cache Key DesignCRITICALkey-7
3Personalisation BoundaryHIGHpers-6
4Strategies & Write PathsHIGHstrat-6
5TTL & FreshnessHIGHttl-6
6Stampede ProtectionHIGHstamp-5
7Observability & Empirical MeasurementHIGHobs-6
8Negative & Defensive CachingMEDIUM-HIGHneg-4
9Tiered & Edge CachingMEDIUM-HIGHtier-5

Quick Reference

1. Decision & Cost Calculus (CRITICAL)
2. Cache Key Design (CRITICAL)
3. Personalisation Boundary (HIGH)
4. Strategies & Write Paths (HIGH)
5. TTL & Freshness (HIGH)
Show full SKILL.md (530 more words)Show less
6. Stampede Protection (HIGH)
7. Observability & Empirical Measurement (HIGH)
8. Negative & Defensive Caching (MEDIUM-HIGH)
9. Tiered & Edge Caching (MEDIUM-HIGH)

How to Use

For a focused question ("should I cache this?", "why is my hit rate low?", "how do I survive Personalize throttling?"), jump directly to the relevant rule — each is self-contained with the WHY, code, and citation.

For a full caching-design review of a new or struggling surface, work the categories top-to-bottom. The cascade is real: a wrong decide-cache-roi-calculation wastes engineering effort on a cache that doesn't pay; a leaky key-canonicalize-query caps the achievable hit rate; a missing pers-cohort-precomputation keeps Personalize bills proportional to MAU. Stampede and observability are mandatory once hit rate exceeds 90% — the 10% miss in a thundering herd kills the origin, and without per-class hit-rate dashboards you can't tell.

For tuning an existing cache empirically, start with obs-cache-simulation-from-logs (replay your logs through what-if configs) and pair with obs-hit-rate-by-key-class, obs-cost-attribution, and obs-stale-served-ratio for the dashboards. The trio answers: is the cache doing its job, what does it cost, and are users seeing stale data?

For the multi-recommender homepage problem specifically (the most common Personalize cost-explosion pattern), the priority order is: decide-amplification-multiplier → pers-cohort-precomputation → pers-recommender-fan-out-coalescing → pers-anonymous-vs-logged-split. These four typically cut Personalize spend by 70-90% on consumer marketplaces.

For the "Personalize is throttling under load" incident, the priority is: stamp-circuit-breaker-on-origin-error → neg-cache-throttled-personalize → decide-personalize-quota-budget. The first two stabilise the user-facing impact; the third right-sizes minProvisionedTPS so it doesn't happen again.

For sibling-skill cross-reference, see opensearch-function-scoring-algorithms — that skill covers what to compute in OpenSearch (function_score, kNN, RRF, rank_feature, decay, LTR, MMR, evaluation). This skill covers how to cache it so the cluster survives production traffic.

Read section definitions for the cascade-impact rationale, or the rule template when adding a new rule.

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering by cascade impact
AGENTS.mdCompact TOC navigation (auto-built; do not edit by hand)
assets/templates/_template.mdTemplate for authoring new rules
metadata.jsonVersion and authoritative reference URLs

© pproenca, 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 56 other files (references, assets) in skills/.experimental/opensearch-personalize-caching-strategies of pproenca/dot-skills.

  • SKILL.md
  • AGENTS.md
  • assets/templates/_template.md
  • metadata.json
  • references/_sections.md
  • references/decide-amplification-multiplier.md
  • references/decide-cache-roi-calculation.md
  • references/decide-cardinality-floor.md
  • references/decide-hot-key-distribution.md
  • references/decide-latency-budget.md
  • references/decide-personalize-quota-budget.md
  • references/decide-search-vs-personalize-asymmetry.md
  • references/key-bucket-numerical-ranges.md
  • references/key-canonicalize-query.md
  • references/key-locale-currency-explicit.md
  • references/key-segment-not-user.md
  • references/key-stable-hash-algorithm.md
  • references/key-strip-volatile-params.md
  • … and 39 more

Open the folder on GitHubat commit cf93c57

Compare with similar skills

Opensearch Personalize Caching Strategies 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.

Opensearch Personalize Caching Strategies compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Opensearch Personalize Caching Strategies this skillpproenca/dot-skills215—~4.8kAutomated safety check: PassMIT
FoundatioFoundatioFx/Foundatio2.1k—~3.9kAutomated safety check: PassApache-2.0
Vss Setup Video Analytics APINVIDIA-AI-Blueprints/video-search-and-summarization1.9k—~2.6kAutomated safety check: NotesApache-2.0
Infra AuditSethGammon/Citadel924—~2.1kAutomated safety check: NotesMIT
Amazon Opensearch Serviceaws/agent-toolkit-for-aws2.8k—~2.4kAutomated safety check: PassApache-2.0
Analytics Opensearch Expertiseaws/tools-for-devops-agent103—~6.9kAutomated safety check: PassApache-2.0

Similar skills

  • 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 2 days ago
    Backend & APIsAuto-check passed
  • Vss Setup Video Analytics API

    NVIDIA-AI-Blueprints/video-search-and-summarization

    A skill your agent uses to deploy the vss-video-analytics-api REST service standalone with its Elasticsearch ingest-pipeline, selectable Kafka/Redis stream type, and Kafka-topic readiness gates when…

    1.9k GitHub stars~2.6k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Infra Audit

    SethGammon/Citadel

    Reads docker-compose, env files, ORM configs, and connection strings to map current infrastructure.

    924 GitHub stars~2.1k tokensUpdated yesterday
    DatabasesAuto-check: notes
  • Amazon Opensearch Service

    aws/agent-toolkit-for-aws

    Official

    Guides migration, provisioning, search, log-analytics, trace-analytics, and Agentic AI Assistant workflows for Amazon OpenSearch Service and Serverless across six capabilities — migration…

    2.8k GitHub stars~2.4k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Analytics Opensearch Expertise

    aws/tools-for-devops-agent

    Official

    Amazon OpenSearch Service domain health assessment. An agent skill from aws/tools-for-devops-agent.

    103 GitHub stars~6.9k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • 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

More from pproenca/dot-skills

All 41 skills in this repo
  • Audio Voice Recovery

    pproenca/dot-skills

    Audio forensics and voice recovery guidelines for CSI-level audio analysis.

    215 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Codemod React Pipeline

    pproenca/dot-skills

    Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.

    215 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev Rfc

    pproenca/dot-skills

    Create well-structured RFCs and technical proposals for software projects.

    215 GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Dx Harness

    pproenca/dot-skills

    Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.

    215 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Language Spec Author

    pproenca/dot-skills

    Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…

    215 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Python Pep Author

    pproenca/dot-skills

    Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…

    215 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Opensearch Personalize Caching Strategies

What does Opensearch Personalize Caching Strategies do?

Caching strategies in front of AWS OpenSearch (Elasticsearch) or AWS Personalize — search, recommenders, multi-recommender pages, anon vs logged-in traffic. Opensearch Personalize Caching Strategies is an agent skill from pproenca/dot-skills. Caching strategies in front of AWS OpenSearch (Elasticsearch) or AWS Personalize — search, recommenders, multi-recommender pages, anon vs logged-in traffic.

When should I use Opensearch Personalize Caching Strategies?

Opensearch Personalize Caching Strategies fits situations like: personalize throttling; elastiCache sizing.

How do I install Opensearch Personalize Caching Strategies in Claude Code?

Run `npx skills add pproenca/dot-skills --skill opensearch-personalize-caching-strategies -a claude-code`. Or copy the skill folder (skills/.experimental/opensearch-personalize-caching-strategies in pproenca/dot-skills) into .claude/skills/opensearch-personalize-caching-strategies in your project. Claude Code loads it when a task matches its description.

How do I install Opensearch Personalize Caching Strategies in Codex?

Run `npx skills add pproenca/dot-skills --skill opensearch-personalize-caching-strategies -a codex`. Or copy the skill folder (skills/.experimental/opensearch-personalize-caching-strategies in pproenca/dot-skills) into .agents/skills/opensearch-personalize-caching-strategies in your project. Codex loads it when a task matches its description.

Can I use Opensearch Personalize Caching Strategies 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 pproenca/dot-skills --skill opensearch-personalize-caching-strategies -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/opensearch-personalize-caching-strategies, .gemini/skills/opensearch-personalize-caching-strategies, .github/skills/opensearch-personalize-caching-strategies and .opencode/skills/opensearch-personalize-caching-strategies in your project.

What does Opensearch Personalize Caching Strategies need to run?

SKILL.md names no scripts, command-line tools or credentials: Opensearch Personalize Caching Strategies is instructions for the agent only. Our summary lists: Python 3.

Does Opensearch Personalize Caching Strategies 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 Opensearch Personalize Caching Strategies 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. Review the folder before installing.

What licence does Opensearch Personalize Caching Strategies use?

Opensearch Personalize Caching Strategies is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Opensearch Personalize Caching Strategies use?

About 4.8k tokens (SKILL.md is roughly 19k 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 59k tokens, read only when the agent opens those files.

What are the alternatives to Opensearch Personalize Caching Strategies?

Skills that share tags, products or a category with Opensearch Personalize Caching Strategies: Foundatio (FoundatioFx/Foundatio, 2.1k stars), Vss Setup Video Analytics API (NVIDIA-AI-Blueprints/video-search-and-summarization, 1.9k stars), Infra Audit (SethGammon/Citadel, 924 stars) and Amazon Opensearch Service (aws/agent-toolkit-for-aws, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Opensearch Personalize Caching Strategies?

pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 215 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on August 15, 2026.

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