guardian-cache

guardian-cache is a skill for Codex from 1999AZZAR/project-guardian-mcp-server. It costs 41 tokens per session (376 once invoked), scanned A, original, MIT.

A Redis-based way to store temporary agent session data and cached results. Redis is a fast data store commonly used for short-lived information.

In plain words
What is it for?
Use it to save, retrieve, scan, and check temporary data under required mema: namespaces. It also supports positive time-to-live limits and reading values from standard input.
Why use it?
It avoids repeating expensive work and lets multiple task steps or agents share temporary state with automatic expiration.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents.

Good fit Use it to save, retrieve, scan, and check temporary data under required mema: namespaces. It also supports positive time-to-live limits and reading values from standard input.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/1999azzar/project-guardian-mcp-server/guardian-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 1999AZZAR/project-guardian-mcp-server --skill guardian-cache
Clone the repo
git clone --depth 1 https://github.com/1999AZZAR/project-guardian-mcp-server

Made for: Codex.

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 guardian-cache

README.md
[![agentmods](https://agentmods.dev/badge/skills/1999azzar/project-guardian-mcp-server/guardian-cache/github.svg)](https://agentmods.dev/skills/1999azzar/project-guardian-mcp-server/guardian-cache)
Your own site
<a href="https://agentmods.dev/skills/1999azzar/project-guardian-mcp-server/guardian-cache"><img src="https://agentmods.dev/badge/skills/1999azzar/project-guardian-mcp-server/guardian-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 guardian-cache

Your own site · 80×15
<a href="https://agentmods.dev/skills/1999azzar/project-guardian-mcp-server/guardian-cache"><img src="https://agentmods.dev/badge/skills/1999azzar/project-guardian-mcp-server/guardian-cache.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 376 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 original No closer match found 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.00041 $0.00376
Opus 5 $0.00020 $0.00188
Sonnet 5 $0.00008 $0.00075
Haiku 4.5 $0.00004 $0.00038

Measured 9d ago against content hash 6fc38b20fa5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

guardian-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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/cache_manager.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/guardian-cache/SKILL.md · 35 lines

What it actually says

Guardian Cache

Standardized Redis-backed caching for agents.

Prerequisites

  • Binary: Python 3.9+ must be available on the host.
  • Credentials: REDIS_URL environment variable (e.g., redis://localhost:6379/0).

Setup

  1. Install dependencies with python3 -m pip install -r skills/guardian-cache/requirements.txt.
  2. Export REDIS_URL; use .env.example only as a configuration reference.

Core Workflows

1. Store and Retrieve

  • Store: printf '%s' "$VALUE" | python3 $WORKSPACE/skills/guardian-cache/scripts/cache_manager.py set mema:cache:<name> --stdin --ttl 3600
  • Fetch: python3 $WORKSPACE/skills/guardian-cache/scripts/cache_manager.py get mema:cache:<name>

2. Search & Maintenance

  • Scan: python3 $WORKSPACE/skills/guardian-cache/scripts/cache_manager.py scan [pattern]
  • Ping: python3 $WORKSPACE/skills/guardian-cache/scripts/cache_manager.py ping

Prefer --stdin for values so secrets and private data do not appear in process listings or shell history. Explicit TTL values must be positive.

Key Naming Convention

Strictly enforce the mema: prefix:

  • mema:context:* – Session state.
  • mema:cache:* – Volatile data.
  • mema:state:* – Persistent state.
Files

What ships with it

6 files 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. 9d ago First seen · 35 lines · 41 tokens per session scan A 6fc38b20fa5d

Subscribe to this mod's changes

guardian-cache is a skill published in the GitHub repository 1999AZZAR/project-guardian-mcp-server (3 stars, last pushed 9d ago), licensed MIT. It adds 41 tokens to every session and 376 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-08-31.

Related

Other skills, from other repositories

brainctl

Unified agent memory CLI — read, write, search, and maintain the shared memory spine (brain.db). Use for persistent cross-session memory, knowledge graph, event logging, decisions, affect tracking, and consolidation.

TSchonleber/brainctl · 45 tokens

sfcc-caching

Unified caching playbook for SFCC (page cache vs custom cache vs service response cache). Use this when improving performance, reducing external calls, designing cache keys/TTLs, or debugging stale cache behavior.

taurgis/sfcc-dev-mcp · 46 tokens

adk-redis

Redis backends for Google's Agent Development Kit (ADK). Use this skill when the user wants to back an ADK agent with Redis: persistent sessions and long-term memory via Redis Agent Memory Server, RAG search tools over a RedisVL index (vector / hybrid / range / text / SQL), MCP toolsets for RedisVL or Agent Memory…

redis-developer/adk-redis · 92 tokens

orchardcore-ai-memory-elasticsearch

Skill for indexing CrestApps Orchard Core AI Memory with Elasticsearch. Covers memory field mappings, dense vectors, k-nearest-neighbor retrieval, default query fields, user isolation, and Elasticsearch operations. Use this skill when requests mention AI Memory Elasticsearch, AIMemoryElasticsearchIndexProfileHandler…

CrestApps/CrestApps.AgentSkills · 130 tokens

redis

Use Redis correctly as a cache, queue, rate limiter, and ephemeral store — pick the right data structure, caching pattern, eviction policy, and atomicity model. Use when adding caching, designing a key schema, choosing cache-aside vs write-through, setting TTLs/eviction, building a rate limiter or queue, debugging low…

kouroshez/coding-os · 155 tokens

slm-cache

KV cache for repeated reads — call slmcacheget(key) first; on a miss do the expensive operation then slmcacheset(key, value, ttlseconds) to store it; on a hit use the returned value directly; always fail-open (hit:false on any error, never raises); saves tokens when the same file, query result, or tool output is read…

qualixar/superlocalmemory · 86 tokens