CtrlK
BlogDocsLog inGet started
Tessl Logo

caching-strategies

Implements Rails caching patterns for performance optimization. Use when adding fragment caching, Russian doll caching, low-level caching, cache invalidation, or when user mentions caching, performance, cache keys, or memoization.

Install with Tessl CLI

npx tessl i github:ThibautBaissac/rails_ai_agents --skill caching-strategies
What are skills?

90

Does it follow best practices?

Agent success when using this skill

Validation for skill structure

SKILL.md
Review
Evals

Evaluation results

100%

Event Portal Performance Optimization

Fragment and Russian doll caching

Criteria
Without context
With context

Fragment cache in partial

100%

100%

Outer cache on show

100%

100%

Inner cache on children

100%

100%

Collection caching syntax

100%

100%

touch on Comment

100%

100%

touch on EventVendor

100%

100%

Production cache store

100%

100%

Development cache store

100%

100%

No manual key building for model fragments

100%

100%

No null_store in production

100%

100%

Without context: $0.2459 · 48s · 14 turns · 15 in / 2,580 out tokens

With context: $0.3883 · 52s · 19 turns · 19 in / 2,923 out tokens

100%

16%

Dashboard Analytics Caching Service

Low-level caching service objects

Criteria
Without context
With context

CACHE_KEY constant

75%

100%

CACHE_TTL constant

75%

100%

Rails.cache.fetch in service

100%

100%

invalidate method

100%

100%

Namespaced cache key

100%

100%

Query use_cache parameter

66%

100%

Query cache_key helper

88%

100%

Query fetch with expires_in

100%

100%

after_commit in Event model

20%

100%

Invalidation called from model

100%

100%

No manual key in fetch call

100%

100%

Without context: $0.1997 · 36s · 12 turns · 12 in / 2,263 out tokens

With context: $0.3959 · 1m 3s · 17 turns · 18 in / 3,950 out tokens

100%

10%

API HTTP Caching and Cache Observability

HTTP caching and monitoring

Criteria
Without context
With context

stale? on show

100%

100%

stale? on index

100%

100%

public: true for CDN

100%

100%

private: true for browser-only

100%

100%

Fragment cache logging

100%

100%

Notifications.subscribe call

100%

100%

Correct notification name

100%

100%

Hit/miss logging

100%

100%

Cache key in log

100%

100%

Event wrapping

0%

100%

Without context: $0.1868 · 36s · 11 turns · 11 in / 2,238 out tokens

With context: $0.2883 · 44s · 14 turns · 63 in / 2,351 out tokens

Evaluated
Agent
Claude Code

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.