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 tedivm/robs_awesome_python_template --skill aiocachegit clone --depth 1 https://github.com/tedivm/robs_awesome_python_templateWrote 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/tedivm/robs_awesome_python_template/aiocache)<a href="https://agentmods.dev/skills/tedivm/robs_awesome_python_template/aiocache"><img src="https://agentmods.dev/badge/skills/tedivm/robs_awesome_python_template/aiocache/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/tedivm/robs_awesome_python_template/aiocache"><img src="https://agentmods.dev/badge/skills/tedivm/robs_awesome_python_template/aiocache.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.00047 | $0.01933 |
| Opus 5.5 | $0.00019 | $0.00773 |
| Sonnet 5.5 | $0.00009 | $0.00387 |
| Haiku 4.5 | $0.00005 | $0.00193 |
Grade A, and why
aiocache 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 3mo 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 — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.
aiocache Caching
context7: If the
context7tools are available, resolve and load the fullaiocachedocumentation before making changes:context7_resolve-library-id: "aiocache" context7_query-docs: /aio-libs/aiocache
The caching layer is defined in {{cookiecutter.__package_slug}}/services/cache.py. It provides helper functions and a NoOpCache fallback for when caching is disabled.
Cache Aliases
Three cache backends are configured by configure_caches():
| Alias | Backend | Default TTL |
|---|---|---|
memory |
Always in-memory | cache_default_ttl (300s) |
persistent |
Redis if configured, else memory | cache_persistent_ttl (3600s) |
default |
Same as memory |
cache_persistent_ttl (3600s)* |
* Note: set_cached() applies cache_default_ttl only when alias == "memory", so default falls through to cache_persistent_ttl.
Using the Helpers
from {{cookiecutter.__package_slug}}.services.cache import get_cached, set_cached, delete_cached, clear_cache
# Get (returns None on miss)
value = await get_cached("user:123")
# Set with default TTL
await set_cached("user:123", user_data)
# Set with custom TTL
await set_cached("user:123", user_data, ttl=600, alias="persistent")
# Delete
await delete_cached("user:123", alias="persistent")
# Clear entire cache
await clear_cache(alias="persistent")
Direct Cache Access
For operations not covered by the helpers:
from {{cookiecutter.__package_slug}}.services.cache import get_cache
cache = get_cache("memory")
exists = await cache.exists("key")
Cache Decorator
Use @cached to automatically cache function return values. The decorator takes a cache instance (not an alias string) as its first argument. Retrieve the instance with get_cache():
from aiocache import cached
from {{cookiecutter.__package_slug}}.services.cache import get_cache
@cached(get_cache("memory"), ttl=300, key_builder=lambda f, *args, **kwargs: f"user:{args[0]}")
async def get_user(user_id: int) -> dict[str, str] | None:
# Expensive DB call — cached for 300s
return await fetch_user_from_db(user_id)
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.
- 3mo ago First seen · 225 lines · 47 tokens per session scan A e46507e20206
aiocache is a skill published in the GitHub repository tedivm/robs_awesome_python_template (317 stars, last pushed 6mo ago), licensed MIT. It adds 47 tokens to every session and 1,933 once invoked, about $0.0002 per session on Opus 5.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-08-30.
aiocache compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aiocachetedivm/robs_awesome_python_template | Skill | 317 | 6mo ago | MIT | A | 47 | Claude Code, Codex |
| 后端编码jianchen08/Agent-os-open | Skill | 8 | yesterday | Apache-2.0 | A | 49 | Claude Code, Codex |
| background-taskvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | yesterday | MIT | A | 62 | Claude Code |
| alembic-migrationvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | yesterday | MIT | A | 56 | Claude Code |
| channel-botvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | yesterday | MIT | A | 53 | Claude Code |
| using-redis-token-bucketsPostHog/posthog-foss | Skill | 736 | today | MIT | A | 148 | Claude Code, Codex |
| event-drivenpiomin/claude-ai-spring-boot | Skill | 1.5k | 5d ago | Apache-2.0 | A | 133 | Claude Code |