secondsky avatar

Recommendation Engine

This is a solid foundation for building product or content recommenders with collaborative filtering, matrix factorization (SVD), and hybrid approaches. You get practical code for handling the usual pain points: cold start problems with fallback chains, data sparsity using dimensionality reduction instead of naive similarity, and popularity bias through diversity re-ranking. The evaluation section covers precision@k, recall@k, and NDCG for measuring recommendation quality. What I like is the realistic approach to production issues, like always filtering already-interacted items and implementing graceful degradation when personalization fails. If you're building a recommendation system from scratch or fixing one that only shows bestsellers, this gives you the patterns that actually matter.

skills.sh installs
437
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill recommendation-engine --agent claude-code

Installs into .claude/skills of the current project.

Files

Recommendation Engine

Build recommendation systems for personalized content and product suggestions.

Recommendation Approaches

ApproachHow It WorksProsCons
CollaborativeUser-item interactionsDiscovers hidden patternsCold start
Content-basedItem featuresWorks for new itemsLimited discovery
HybridCombines bothBest of bothComplex

Collaborative Filtering

import numpy as np
from scipy.sparse import csr_matrix
from sklearn.metrics.pairwise import cosine_similarity

class CollaborativeFilter:
    def __init__(self):
        self.user_similarity = None
        self.item_similarity = None

    def fit(self, user_item_matrix):
        # User-based similarity
        self.user_similarity = cosine_similarity(user_item_matrix)
        # Item-based similarity
        self.item_similarity = cosine_similarity(user_item_matrix.T)

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Categories
DevOps & CI/CD, Code Review & Quality
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1youmind-openlab avataryoumind-wechat-articleyoumind-openlab/skillsWrite and publish WeChat Official Account articles end-to-end with AI, or take an existing draft straight into the skill's built-in formatting + direct-send cap437skills.sh installs
2dhruvanbhalara avatarflutter-uidhruvanbhalara/skillsBuild performant, accessible UIs with strict design tokens and reusable widget patterns. Use when implementing layouts, responsive breakpoints, theming, widget 435skills.sh installs
3alirezarezvani avatarc-level-agentsalirezarezvani/claude-skillsFounder-mode executive team. 13 cs-* C-suite agents (CFO, CMO, CRO, CPO, COO, CHRO, CISO, GC, CDO, CAIO, CCO, VPE, Chief of Staff) and 21 /cs:* slash commands f434skills.sh installs
4davila7 avatarvercel-deploymentdavila7/claude-code-templatesExpert knowledge for deploying to Vercel with Next.js Use when: vercel, deploy, deployment, hosting, production.433skills.sh installs
5alirezarezvani avatarchief-ai-officer-advisoralirezarezvani/claude-skillsChief AI Officer advisory for startups: model build-vs-buy decisions (API vs fine-tune vs in-house), AI risk classification under EU AI Act + US state patchwork432skills.sh installs
6deveshpunjabi avatarmodern-frontend-designdeveshpunjabi/modern-frontend-skillHow to design and build modern, premium-quality frontend interfaces that look like high-end SaaS products, modern AI tools, and award-winning design websites — 432skills.sh installs