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.
npx skills add dykyi-roman/awesome-claude-code --skill check-caching-strategygit clone --depth 1 https://github.com/dykyi-roman/awesome-claude-codeWrote 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.
[](https://agentmods.dev/skills/dykyi-roman/awesome-claude-code/check-caching-strategy)<a href="https://agentmods.dev/skills/dykyi-roman/awesome-claude-code/check-caching-strategy"><img src="https://agentmods.dev/badge/skills/dykyi-roman/awesome-claude-code/check-caching-strategy/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.
<a href="https://agentmods.dev/skills/dykyi-roman/awesome-claude-code/check-caching-strategy"><img src="https://agentmods.dev/badge/skills/dykyi-roman/awesome-claude-code/check-caching-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01759 |
| Opus 5 | $0.00017 | $0.00879 |
| Sonnet 5 | $0.00007 | $0.00352 |
| Haiku 4.5 | $0.00003 | $0.00176 |
Grade A, and why
check-caching-strategy 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Caching Strategy Analysis
Analyze PHP code for caching opportunities and issues.
Detection Patterns
1. Missing Cache Opportunities
// CACHEABLE: Repeated expensive computation
public function getExchangeRate(string $currency): float
{
return $this->api->fetchRate($currency); // API call each time
}
// CACHEABLE: Repeated database query
public function getSettings(): array
{
return $this->repository->findAll(); // Same query repeatedly
}
// CACHEABLE: Configuration that rarely changes
public function getFeatureFlags(): array
{
return $this->configLoader->load(); // File read each request
}
2. Cache Invalidation Issues
// STALE DATA: No invalidation
$cache->set('user_' . $id, $user, 3600);
// Later: user updated but cache not cleared
// STALE DATA: Time-based only
$cache->set('products', $products, 86400);
// Products change but cache lives for 24h
// RACE CONDITION: Invalidate before update
$this->cache->delete('user_' . $id);
$this->repository->update($user);
// Another request may cache old data between these lines
3. Over-Caching
// OVER-CACHED: User-specific data with long TTL
$cache->set('user_dashboard_' . $userId, $data, 86400);
// User dashboard may need fresh data
// OVER-CACHED: Rapidly changing data
$cache->set('stock_count_' . $productId, $count, 3600);
// Stock changes frequently
// OVER-CACHED: Huge cache entries
$cache->set('all_products', $allProducts); // 10MB cache entry
4. Cache Stampede
// STAMPEDE: Many requests rebuild cache simultaneously
public function getData(): array
{
$data = $this->cache->get('key');
if (!$data) {
$data = $this->expensiveOperation(); // All concurrent requests hit this
$this->cache->set('key', $data, 3600);
}
return $data;
}
// FIXED: Lock during rebuild
public function getData(): array
{
$data = $this->cache->get('key');
if (!$data) {
$lock = $this->lockFactory->createLock('key_rebuild');
if ($lock->acquire()) {
$data = $this->expensiveOperation();
$this->cache->set('key', $data, 3600);
$lock->release();
} else {
$data = $this->cache->get('key'); // Wait for other process
}
}
return $data;
}
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.
- 8d ago First seen · 273 lines · 34 tokens per session scan A 09a5c7f991af
check-caching-strategy is a skill published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 26d ago), licensed MIT. It adds 34 tokens to every session and 1,759 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
laravel-specialist
Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…
create-powergrid-plugin
Create a complete PowerGrid plugin from scratch, including PHP class, Column macro, Blade view, Alpine.js component, and registration.
owl-admin-devtools-generator
A development guide for Owl Admin, a Laravel-based administration system, covering its code generator, API templates, relationships, and visual pages.
llamaindex-development
Expert guidance for LlamaIndex development including RAG applications, vector stores, document processing, query engines, and building production AI applications.
craftcms
Craft CMS 5 plugin and module development — extending Craft with PHP. Covers elements, element queries, services, models, records, controllers, migrations, queue jobs, console commands, field types, native fields, events, behaviors, Twig extensions, widgets, filesystems, permissions, project config, GraphQL, testing…
laravel-expert
Laravel & PHP Development Instructions for GitHub Copilot.