CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

testland/cache-key-discriminator-audit

Use whenever a user saw another user's or tenant's data, or a per-user response goes through a shared cache, Redis or a CDN, or a cache key is designed or changed. Checks the key holds every value the response depends on (tenant, user, scope, locale), writes the fixed key, Vary header and tests.

Quality

92%

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

92%Weight 40%Scale 1-5

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

An exceptionally well-constructed audit skill: a concrete derivation procedure with checkpoints, a severity table, executable fix code, a worked before/after example, and a report template, with spec citations correctly offloaded to two well-signaled reference files. The only weakness is minor rhetorical and background prose that could be tightened for token efficiency.

DimensionReasoningScore

Conciseness

The body is dense and expert-level (severity bands, the lru_cache mechanism correction, Vary edge cases) with almost no filler, but the poisoning/deception definitions and rhetorical framing like "The worst version of this is not slow, and it is not stale" restate concepts Claude already knows and could be trimmed. Not 5 for these minor over-explanations; well above 3 because nearly every paragraph carries audit-relevant decision content.

4 / 5

Actionability

Fully executable guidance: a copy-paste-ready cache_key() builder with design rationale, literal Vary/Cache-Control headers, a before/after worked example with actual key strings ("dashboard:1" → "s:v1:t:acme:u:1:l:en-GB:dashboard"), an ordered fix preference list, and a concrete report template. The common cases are covered end to end.

5 / 5

Workflow Clarity

A numbered six-step derivation with an explicit checkpoint ("Check the tier"), verification-gated classification ("Downgrade to informational only after confirming identifiers are globally unique"), and mandated validation ("A key fix with no test that exercises two distinct principals against the same slot is not finished"). Not 4 because the validation checkpoints are explicit and the test-first closing rule closes the loop.

5 / 5

Progressive Disclosure

Both bundle files exist, are one level deep, and are clearly signaled with purpose statements ("Full mechanism and Python-doc citations: references/lru-cache-trap.md"; "Full RFC and OWASP citations: references/http-cache-directives.md") — the verbatim spec-quote bulk is correctly moved out of the body while usable summaries stay inline. Headers make the 350-line body easy to navigate, and the split is appropriate for an audit procedure.

5 / 5

Total

19

/

20

Passed

Description

87%Weight 40%Scale 1-5

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 tight, high-signal description that pairs concrete symptom triggers (data exposure, shared cache, Redis/CDN) with specific actions (check discriminators, write key, write Vary header, write tests). Both what and when are explicit, and the niche is clearly distinct from generic caching or security skills.

DimensionReasoningScore

Specificity

"Checks the key holds every value the response depends on (tenant, user, scope, locale), writes the fixed key, Vary header and tests" names several concrete actions with specific artifacts. Not 5 because it omits the severity triage and reporting activities that are a substantial part of what the skill does.

4 / 5

Completeness

Explicitly answers when ("Use whenever a user saw another user's or tenant's data, or a per-user response goes through a shared cache, Redis or a CDN, or a cache key is designed or changed") and what ("Checks the key holds every value… writes the fixed key, Vary header and tests") with concrete trigger phrases. A 4 would require the when-clause to be less explicit, which it is not.

5 / 5

Trigger Term Quality

"user saw another user's or tenant's data", "shared cache, Redis or a CDN", and "cache key" are natural phrases a user would say, plus named technologies. Not 5 because common synonyms like Memcached, cache poisoning, or cross-tenant leak are absent.

4 / 5

Distinctiveness Conflict Risk

A clear niche (cache-key discriminator auditing) with distinctive symptom triggers like "user saw another user's or tenant's data". The only breadth comes from the deliberate "cache key is designed or changed" trigger, which is minor and does not create meaningful conflict risk.

5 / 5

Total

18

/

20

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.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

On this page