CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/redis-cache-tests

Wraps Redis cache testing: EXPIRE / PEXPIRE / TTL verification (Redis 7+ NX/XX/GT/LT flags), cache-aside write-then-invalidate (write source → DEL key → assert fresh read), eviction under memory pressure (maxmemory + allkeys-lru), pub/sub invalidation across nodes, and tenant key-namespacing. Use when Redis is the app's primary cache. For a Memcached app-tier store use memcached-tests; for the browser/HTTP tier use browser-cache-control-tests; a runnable test, not the cache-stampede-reference or cache-coherence-patterns-reference catalogs.

75

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

Quality

Content

85%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A dense, executable code-skill body that assumes Claude's competence and covers each capability with runnable tests and an anti-pattern table. Workflow clarity is the weak spot: a couple of flows rely on unresolved app-side placeholders and none include explicit validate/retry checkpoints.

Suggestions

Resolve the placeholder 'update_user_via_app' in the cache-aside test — supply the concrete write path or a stub fixture so the example runs as written.

Add an explicit validation/retry checkpoint to at least one risky flow (e.g. assert eviction actually occurred before declaring key:5 evicted, or verify the stampede lock was released) to support a workflow_clarity of 3.

The stampede test's inline '__import__("time").sleep' is unidiomatic; move the import to the top to keep the example copy-paste-clean.

DimensionReasoningScore

Conciseness

Lean throughout: no concept-padding, jumps straight to executable fixtures and tests, with the only prose being targeted 'why' justifications (e.g. not mocking Redis). Every section earns its tokens.

3 / 3

Actionability

Provides complete, copy-paste-ready executable code for every claimed capability (install snippets, pytest fixtures, TTL/NX-XX-GT-LT tests, cache-aside, eviction, stampede, tenant-namespacing, pub/sub, CI yaml).

3 / 3

Workflow Clarity

Sections are well sequenced but there are no explicit validation checkpoints or feedback loops: the cache-aside write→invalidate test and eviction/stampede flows assert outcomes without a validate-then-retry loop, and 'Update via the app's write path' is an unresolved placeholder.

2 / 3

Progressive Disclosure

Single-file skill (no references/scripts/assets bundles) under ~290 lines, well organized into clearly-headed sections (Install, TTL, Conditional expire, Cache-aside, Eviction, Stampede, Tenant, Running, Pub-sub, Anti-patterns, Limitations, References) — meets the simple-skill threshold for a top score.

3 / 3

Total

11

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A highly specific, third-person description with explicit 'Use when' triggers and proactive disambiguation against sibling cache skills. It satisfies every anchor for the top tier across all four dimensions.

DimensionReasoningScore

Specificity

Lists multiple concrete actions: 'EXPIRE / PEXPIRE / TTL verification', 'cache-aside write-then-invalidate (write source → DEL key → assert fresh read)', 'eviction under memory pressure (maxmemory + allkeys-lru)', 'pub/sub invalidation', and 'tenant key-namespacing'.

3 / 3

Completeness

Clearly answers both 'what' (the enumerated test patterns) and 'when' via the explicit 'Use when Redis is the app's primary cache' trigger clause.

3 / 3

Trigger Term Quality

Strong natural-term coverage users would actually say ('Redis cache', 'TTL', 'EXPIRE', 'cache', 'Redis is the app's primary cache') plus explicit differentiation pointers to sibling skills.

3 / 3

Distinctiveness Conflict Risk

Carves a clear Redis niche and actively disambiguates from siblings ('For a Memcached app-tier store use memcached-tests; for the browser/HTTP tier use browser-cache-control-tests; a runnable test, not the cache-stampede-reference or cache-coherence-patterns-reference catalogs').

3 / 3

Total

12

/

12

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

Table of Contents