symfony-cache

symfony-cache is a skill for Claude Code from dev-toolings/superpowers-symfony. It costs 24 tokens per session (447 once invoked), scanned A, a copy of messenger-retry-failures, MIT.

A Symfony workflow for adding application caching with the Symfony Cache component. It covers cache pools, tags for invalidating related entries, and protection against many requests rebuilding the same expired value at once.

In plain words
What is it for?
Use it to design cache storage, group entries for invalidation, and add caching to Symfony application workflows.
Why use it?
It helps avoid repeated expensive work while keeping cached data manageable when underlying data changes. It also addresses a cache stampede, where simultaneous requests overload a system after an entry expires.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the superpowers-symfony plugin — 44 skills, 13 commands, 7 agents, 1 hook shipped together

Good fit Use it to design cache storage, group entries for invalidation, and add caching to Symfony application workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dev-toolings/superpowers-symfony/symfony-cache
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dev-toolings/superpowers-symfony --skill symfony-cache
Clone the repo
git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony

Made for: Claude Code.

Or install superpowers-symfony, the plugin that ships this one along with the rest of its 44 skills, 13 commands, 7 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for symfony-cache

README.md
[![agentmods](https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/symfony-cache/github.svg)](https://agentmods.dev/skills/dev-toolings/superpowers-symfony/symfony-cache)
Your own site
<a href="https://agentmods.dev/skills/dev-toolings/superpowers-symfony/symfony-cache"><img src="https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/symfony-cache/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for symfony-cache

Your own site · 80×15
<a href="https://agentmods.dev/skills/dev-toolings/superpowers-symfony/symfony-cache"><img src="https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/symfony-cache.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 447 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00447
Opus 5.5 $0.00010 $0.00179
Sonnet 5.5 $0.00005 $0.00089
Haiku 4.5 $0.00002 $0.00045

Measured 1mo ago against content hash 9e68aa25f4eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

symfony-cache scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to messenger-retry-failures — 45 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

content/skills/symfony-cache/SKILL.md · 50 lines

What it actually says

Symfony Cache (Symfony)

Use when

  • Caching expensive reads: repository results, computed values, third-party responses.
  • Choosing or configuring a pool and its adapter (filesystem, Redis, APCu, chained).
  • Invalidating by tag rather than clearing everything.
  • A hot key expires under load and every request recomputes it at once.
  • Adding HTTP cache headers, a cache warmer, or clearing pools on deploy.

Default workflow

  1. Identify what is recomputed and how often, and whether it can go stale.
  2. Pick the pool and adapter for the access pattern and the deployment shape.
  3. Read through CacheInterface::get() with an explicit expiry.
  4. Tag every entry by the data it derives from, and invalidate by tag on write.
  5. Enable early expiration on keys whose recomputation is expensive.

Guardrails

  • Set an expiry on every entry. An entry without one never leaves the pool.
  • Never put user input in a cache key unhashed, and never put secrets in one.
  • Invalidate by tag, not by clearing the pool: a full clear is a cold start.
  • A cached value is stale by definition. Do not cache what must be exact.
  • Tag invalidation needs a tag-aware adapter, so decide it when configuring the pool.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • Pool and adapter configuration, with the expiry chosen for each entry.
  • The tag map: which write invalidates which tags.
  • Stampede protection where recomputation is expensive.
  • Evidence that a write invalidates what it should.

References

  • reference.md
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +5 lines 9e68aa25f4eb
  2. 2mo ago Changed · +2 lines · -3 tokens per session 48a55e3a5fa5
  3. 3mo ago First seen · 43 lines · 27 tokens per session scan A 64f568372eb2

Subscribe to this mod's changes

symfony-cache is a skill published in the GitHub repository dev-toolings/superpowers-symfony (235 stars, last pushed 19d ago), licensed MIT. It adds 24 tokens to every session and 447 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to messenger-retry-failures, differing in 45 lines, and is treated as a copy.

Related

symfony-cache compared with skills from other repositories

symfony-cache next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
symfony-cachedev-toolings/superpowers-symfonySkill23519d agoMITA24Claude Code
Cache Strategy Consistency Guards977043/river-reviewSkill8todayMITA29Claude Code
java-cacheducpm2303/claude-java-pluginsSkill177mo agononeA46Claude Code
architecture-paradigm-cqrs-esathola/claude-night-marketSkill358yesterdayMITA33Claude Code
spine-designtonone-ai/tononeSkill842d agoMITA62Claude Code
warden-hardentonone-ai/tononeSkill842d agoMITA61Claude Code
cortex-integratetonone-ai/tononeSkill842d agoMITA58Claude Code