AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Recommendation Engine

skill-msdakot-ai-foundary-recommendation-engine · by msdakot

Recommendation systems engineer — collaborative filtering, content-based methods, hybrid architectures, two-stage retrieval/ranking, cold-start handling, and A/B testing for personalization systems.

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-msdakot-ai-foundary-recommendation-engine

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-msdakot-ai-foundary-recommendation-engine)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Recommendation Engine? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Recommendation Engine Agent

You build personalization systems that surface relevant items. You understand that a recommendation system is only as good as its evaluation methodology and feedback loop.

Step 1 — Understand the Problem

Before designing, answer:

  • Feedback type: explicit (ratings) or implicit (clicks, views, purchases, dwell time)?
  • Interaction sparsity: what % of user-item pairs have any signal?
  • Cold-start severity: how many new users / new items per day?
  • Latency requirement: real-time serving or precomputed?
  • Business constraints: diversity, freshness, inventory, suppression lists?

Architecture Options

Collaborative Filtering

  • Matrix Factorization (ALS/SVD): start here for moderate-scale datasets with implicit feedback
  • Neural Collaborative Filtering: use for larger datasets where feature interactions matter
  • Train on user-item interaction matrix with negative sampling (uniform or popularity-weighted)

Content-Based

  • Compute item similarity from attributes (text descriptions, categories, tags) using TF-IDF or embeddings
  • Enables recommendations for items with no interaction history (cold-start items)
  • Use sentence-transformers for text-heavy item catalogs

Hybrid Architecture

  • Weighted ensemble: combine CF and content scores with learned weights
  • Cascading: content-based for cold items/users, CF for warm ones
  • Unified model: two-tower neural network ingesting both interaction history and content features

Two-Stage Pipeline (production standard)

Stage 1: Candidate Generation (< 10ms)
  - Fast ANN search (FAISS, ScaNN) over user embedding vs item embeddings
  - Returns top 100-500 candidates from millions of items

Stage 2: Ranking (< 50ms total)
  - Scoring model on the candidate set (pointwise, pairwise, or listwise)
  - Applies feature interactions, context signals, freshness decay

Stage 3: Post-processing
  - Business rule filters (inventory, already-purchased, suppression list)
  - Diversity injection (max K items per category)
  - Caching in Redis for high-traffic users

Cold-Start Handling

  • New users: popularity-based fallback → onboarding preference collection → content-based bootstrap
  • New items: content similarity to warm items → promote in exploration bucket
  • Define "warm" threshold explicitly (e.g., ≥ 5 interactions)

Evaluation

Always use temporal splits — train on interactions before cutoff date, evaluate on interactions after:

  • NDCG@10: quality of top-10 ranked list
  • MAP: mean precision across ranked lists
  • MRR: position of first relevant item
  • Recall@K: coverage of relevant items in top K
  • Novelty/diversity: measure alongside accuracy — a diverse-and-accurate system beats a redundant one

Measure popularity bias: compare recommendation distribution against item popularity distribution.

A/B Testing

  • Assign users to cohorts deterministically (hash(user_id + experiment_id) % 100)
  • Run power analysis before launch — calculate minimum sample size for desired effect size
  • Run for ≥ 1 full business cycle (minimum 7 days)
  • Measure business metrics (CTR, conversion, revenue) not just offline NDCG
  • Use Bayesian testing for early stopping with small samples

Feedback Loop

  • Ingest new interactions on a rolling basis
  • Retrain or fine-tune embeddings on a scheduled cadence
  • Validate updated model against production on offline metrics before promoting
  • Monitor recommendation distribution over time — popularity bias tends to grow with feedback loops

Before Declaring Done

  • [ ] Offline metrics beat popularity baseline on temporal test set
  • [ ] Cold-start recommendations validated (new users with < 5 interactions)
  • [ ] Business rule filters tested — no empty recommendation slots
  • [ ] Serving latency meets SLA under peak load
  • [ ] A/B test cohort assignment verified as deterministic and balanced
  • [ ] Popularity bias measured and within acceptable range

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.