Agent skill

Configure REST Cache

by strapi-community in strapi-community/plugin-rest-cache

Choose and write a Strapi REST Cache configuration for a specific use case.

MITAuto-check passedDatabases

Install Configure REST Cache

skills CLI
$ npx skills add strapi-community/plugin-rest-cache --skill configure-rest-cache -a claude-code

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

GitHub CLI
$ gh skill install strapi-community/plugin-rest-cache configure-rest-cache --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/strapi-community/plugin-rest-cache.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/rest-cache-helper/skills/configure-rest-cache .claude/skills/configure-rest-cache && 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
configure-rest-cache
GitHub stars
155
Token cost
~1.1k tokens
SKILL.md length
456 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Choose and write a Strapi REST Cache configuration for a specific use case.

  • Works in 4 steps: How many Strapi instances run in… → Is the traffic public, authenticated, or… → Which routes actually hurt? Caching… → …
  • Setting up @strapi-community/plugin-rest-cache
  • SKILL.md covers Establish first, Then pick a starting point, Rules that are not negotiable and Sanity-check the result, plus 1 more section
  • Calls curl

What it does

Configure REST Cache is an agent skill from strapi-community/plugin-rest-cache. Choose and write a Strapi REST Cache configuration for a specific use case. Use when setting up @strapi-community/plugin-rest-cache, deciding what to cache and for how long, picking between the memory and redis providers, caching authenticated or per-locale responses, or tuning cache keys.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Caching. It works with Redis. The repository describes itself as: Speed-up HTTP requests with LRU cache. The licence is MIT.

When your agent uses it

  • Setting up @strapi-community/plugin-rest-cache
  • Deciding what to cache and for how long
  • Picking between the memory and redis providers
  • Caching authenticated

Example prompts

  • “/configure-rest-cache”

Workflow steps

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

  1. How many Strapi instances run in production? More than one means the
  2. Is the traffic public, authenticated, or both? Authenticated caching is
  3. Which routes actually hurt? Caching everything is rarely the goal.
  4. How stale may content be? Usually the answer is "it may not be" — which

What it can do on your machine

Read from SKILL.md and the folder at commit af0e7d8. 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

    Shell commands in SKILL.md call:

    • curl

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

  • Network

    Links to these hosts (documentation or services it may open):

    • strapi-community.github.io

    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

Configure REST Cache loads about 1.1k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 456 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

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 strapi-community/plugin-rest-cache at commit af0e7d8, republished under its MIT licence (© strapi-community). 456 words, ~1,061 tokens.

Download SKILL.mdSave it as .claude/skills/configure-rest-cache/SKILL.md (or your agent's skills folder).
name
configure-rest-cache
description
Choose and write a Strapi REST Cache configuration for a specific use case. Use when setting up @strapi-community/plugin-rest-cache, deciding what to cache and for how long, picking between the memory and redis providers, caching authenticated or per-locale responses, or tuning cache keys.

Configuring REST Cache

Do not write a configuration before establishing the four things below. Most bad cache configurations are bad because one of them was assumed.

Establish first

  1. How many Strapi instances run in production? More than one means the memory provider is wrong — each process would hold its own cache and a purge would only reach one of them. That decision is not tunable later without changing infrastructure.
  2. Is the traffic public, authenticated, or both? Authenticated caching is safe only with per-caller keys, and is off by default for that reason.
  3. Which routes actually hurt? Caching everything is rarely the goal. A few expensive endpoints often account for most of the load.
  4. How stale may content be? Usually the answer is "it may not be" — which is fine, because invalidation is automatic. maxAge is a backstop for changes nothing observed, not the primary mechanism.

Ask the user these if the answers are not already evident from their project.

Then pick a starting point

Each of these is a complete, copy-pasteable configuration with the trade-offs written out. Prefer sending the user to the matching one over inventing a config from scratch.

SituationRecipe
Public, read-heavy content APIpublic-content
Per-user or token-authenticated responsesauthenticated
Several instances behind a load balancermulti-instance
Only a few slow endpointsexpensive-routes
i18n, or heavy filter/pagination/populate usei18n-and-query
Preview or draft workflowspreviews-drafts

Full option reference: https://strapi-community.github.io/plugin-rest-cache/guide/reference/config.html

Show full SKILL.md (221 more words)Show less

Rules that are not negotiable

Durations are milliseconds. maxAge: 3600 is 3.6 seconds. One hour is 3600000. Write the value with a comment saying what it is in human units.

Never set hitpass: false without keys.useAuth: true. Together they cache authenticated traffic keyed per caller. hitpass: false alone means two callers authorised for the same route share one entry, and whoever misses first decides what everybody else sees. The server logs a warning at boot if you do this, and the admin panel flags the content type — but by then it is already serving.

Custom route paths must include the API prefix, exactly as Strapi registered them: /api/articles/slug/:slug.

Match keysPrefix to your Redis keyPrefix if the connection sets one. A mismatch means the plugin enumerates nothing, and every purge silently does nothing.

Sanity-check the result

Have the user turn on enableXCacheHeaders, then:

bash
curl -sI http://localhost:1337/api/articles | grep -i x-cache   # MISS
curl -sI http://localhost:1337/api/articles | grep -i x-cache   # HIT

Then edit that content in the admin panel and request again — it should be MISS, proving invalidation works.

HITPASS means the request bypassed the cache; with the default hitpass a browser session will always do that. Test with curl.

If any of that does not behave, switch to the diagnose-rest-cache skill.

Writing the config

Both ./config/plugins.js and ./config/plugins.ts are supported. Match whichever the project already uses, and keep the plugin's block under the rest-cache key with everything inside config.

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

Files

Just SKILL.md in plugins/rest-cache-helper/skills/configure-rest-cache of strapi-community/plugin-rest-cache.

Open the folder on GitHubat commit af0e7d8

Compare with similar skills

Configure REST Cache 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.

Configure REST Cache compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Configure REST Cache this skillstrapi-community/plugin-rest-cache155—~1.1kAutomated safety check: PassMIT
Commandkit Cacheneplexlabs/commandkit165—~506Automated safety check: PassMIT
Redissickn33/agentic-awesome-skills47k2 repos~2.6kAutomated safety check: NotesMIT
Scalingericrisco/rsc-harness174—~2.8kAutomated safety check: PassMIT
Caching Strategy Selectorrevfactory/harness-1001.3k—~925Automated safety check: PassApache-2.0
Redis Coreredis/agent-skills1652 repos~759Automated safety check: PassMIT

Similar skills

  • Commandkit Cache

    neplexlabs/commandkit

    Implement deterministic caching with @commandkit/cache. An agent skill from neplexlabs/commandkit.

    165 GitHub stars~506 tokensUpdated 12 days ago
    DatabasesAuto-check passed
  • Redis

    sickn33/agentic-awesome-skills

    Configure Redis for caching and data storage. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~2.6k tokens
    DatabasesAuto-check: notes
  • Scaling

    ericrisco/rsc-harness

    A skill your agent uses when traffic is growing or about to spike and the system bends under concurrency — deciding what to add and in what order (cache, connection pool, async queue, read replica…

    174 GitHub stars~2.8k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Caching Strategy Selector

    revfactory/harness-100

    캐싱 전략(Cache Aside, Write Through, Write Behind 등) 선택 매트릭스와 Redis/Memcached 활용, TTL 설계, 캐시 무효화 패턴 가이드.

    1.3k GitHub stars~925 tokensUpdated 6 mo ago
    DatabasesAuto-check passed
  • Redis Core

    redis/agent-skills

    Official

    Core Redis modeling guidance — choose the right data structure (String, Hash, List, Set, Sorted Set, JSON, Stream, Vector Set) and use consistent colon-separated key names.

    165 GitHub starsUsed in 2 repos~759 tokens
    DatabasesAuto-check passed
  • Redis Connections

    redis/agent-skills

    Official

    Redis client and connection guidance covering connection pooling, multiplexing, pipelining, client-side caching with RESP3, avoiding slow commands (KEYS, SMEMBERS, HGETALL), and tuning socket…

    165 GitHub starsUsed in 1 repo~1.3k tokens
    DatabasesAuto-check passed

More from strapi-community/plugin-rest-cache

  • Add A Provider

    strapi-community/plugin-rest-cache

    Add a new cache provider package to this repository, or modify an existing one.

    155 GitHub stars~960 tokensUpdated 11 days ago
    Auto-check passed
  • Cut A Release

    strapi-community/plugin-rest-cache

    Publish this plugin to npm - a production release, a pre-release, or an experimental build from a branch.

    155 GitHub stars~2.2k tokensUpdated 11 days ago
    Auto-check passed
  • Diagnose REST Cache

    strapi-community/plugin-rest-cache

    Diagnose why Strapi REST Cache is not caching, is serving stale content, or is caching the wrong thing.

    155 GitHub stars~1.2k tokensUpdated 11 days ago
    Auto-check passed
  • Verify A Change

    strapi-community/plugin-rest-cache

    Verify a change to this plugin before opening a PR. An agent skill from strapi-community/plugin-rest-cache.

    155 GitHub stars~779 tokensUpdated 11 days ago
    Auto-check passed

Works with

Questions about Configure REST Cache

What does Configure REST Cache do?

Choose and write a Strapi REST Cache configuration for a specific use case. Configure REST Cache is an agent skill from strapi-community/plugin-rest-cache. Choose and write a Strapi REST Cache configuration for a specific use case.

When should I use Configure REST Cache?

Configure REST Cache fits situations like: setting up @strapi-community/plugin-rest-cache; deciding what to cache and for how long; picking between the memory and redis providers; caching authenticated.

How do I install Configure REST Cache in Claude Code?

Run `npx skills add strapi-community/plugin-rest-cache --skill configure-rest-cache -a claude-code`. Or copy the skill folder (plugins/rest-cache-helper/skills/configure-rest-cache in strapi-community/plugin-rest-cache) into .claude/skills/configure-rest-cache in your project. Claude Code loads it when a task matches its description.

How do I install Configure REST Cache in Codex?

Run `npx skills add strapi-community/plugin-rest-cache --skill configure-rest-cache -a codex`. Or copy the skill folder (plugins/rest-cache-helper/skills/configure-rest-cache in strapi-community/plugin-rest-cache) into .agents/skills/configure-rest-cache in your project. Codex loads it when a task matches its description.

Can I use Configure REST Cache 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 strapi-community/plugin-rest-cache --skill configure-rest-cache -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/configure-rest-cache, .gemini/skills/configure-rest-cache, .github/skills/configure-rest-cache and .opencode/skills/configure-rest-cache in your project.

What does Configure REST Cache need to run?

Going by SKILL.md and its folder, Configure REST Cache needs the command-line tools its instructions call (curl).

Does Configure REST Cache access the network?

SKILL.md names 1 domain. As links in the text: strapi-community.github.io. This is read from the text; nothing was executed.

Is Configure REST Cache 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 Configure REST Cache use?

Configure REST Cache 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 Configure REST Cache use?

About 1.1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Configure REST Cache?

Skills that share tags, products or a category with Configure REST Cache: Commandkit Cache (neplexlabs/commandkit, 165 stars), Redis (sickn33/agentic-awesome-skills, 47k stars), Scaling (ericrisco/rsc-harness, 174 stars) and Caching Strategy Selector (revfactory/harness-100, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Configure REST Cache?

strapi-community (a GitHub organization) maintains it in strapi-community/plugin-rest-cache, which has 155 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 28, 2026.

Source: strapi-community/plugin-rest-cache on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.