
Recommendation System
This is a full production recommendation system architecture with Redis feature stores, multi-tier caching, and A/B testing built in. You get FastAPI serving, cache invalidation strategies, and monitoring for CTR, conversion rate, and diversity metrics. It handles the annoying stuff like cold start fallback to popular items, thundering herd prevention with TTL jitter, and cache invalidation on user actions. The code examples are practical, showing exactly how to set up tiered caching and serve multiple models simultaneously. If you're building personalization at scale and need sub-200ms latency with proper experiment tracking, this gives you the patterns without reinventing infrastructure.
- skills.sh installs
- 412
- GitHub stars
- 248
- last updated
- Aug 21, 2026
Install
$ npx -y skills add secondsky/claude-skills --skill recommendation-system --agent claude-codeInstalls into .claude/skills of the current project.
Files
Recommendation System
Production-ready architecture for scalable recommendation systems with feature stores, multi-tier caching, A/B testing, and comprehensive monitoring.
When to Use This Skill
Load this skill when:
- Building Recommendation APIs: Serving personalized recommendations at scale
- Implementing Caching: Multi-tier caching for sub-millisecond latency
- Running A/B Tests: Experimenting with recommendation algorithms
- Monitoring Quality: Tracking CTR, conversion, diversity, coverage
- Optimizing Performance: Reducing latency, increasing throughput
- Feature Engineering: Managing user/item features with feature stores
Quick Start: Recommendation API in 5 Steps
# 1. Install dependencies
pip install "fastapi>=0.109.0" "redis>=5.0.0" "prometheus-client>=0.19.0"
# 2. Start Redis (for caching and feature store)
docker run -d -p 6379:6379 redis:alpine
# 3. Create recommendation service: app.py
cat > app.py << 'EOF'
from fastapi import FastAPI
from pydantic import BaseModel
from typing import List
import redis
import json
app = FastAPI()
cache = redis.Redis(host='localhost', port=6379, decode_responses=True)
Sponsors
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Testing & QA, DevOps & CI/CD, Code Review & Quality, Release Management
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 146- Api Versioning Strategy410
- Claude Code Bash Patterns408
- Claude Hook Writer408
- Logging Best Practices408
- Cloudflare Manager407
- Plan Interview406
- Ml Pipeline Automation402
- Nuxt Core401
- Nuxt Data400
- Microservices Patterns398
- Multi Ai Consultant397
- Graphql Implementation393
- Mcp Management393
- Model Deployment393
- Jest Generator391
- Cloudflare Agents389
- Cloudflare Mcp Server388
- Thesys Generative Ui384
- Access Control Rbac381
- Maz Ui380
- React Best Practices380
- Woocommerce Backend Dev379
- Woocommerce Code Review379
- Bun Hono Integration376