account-research
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect…
\"Implement collaborative filtering for recommendations based on user behavior patterns. Use this skill when the user needs to build a recommendation engine from user-item interaction data, find similar users or items, or predict ratings — even if they say 'users who bought this
Claude Code
$ npx -y skills add charlieviettq/awesome-agent-skill --skill algo-rec-cf --agent claude-code
Codex
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-rec-cf -a codex -y
Cursor
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-rec-cf -a cursor -y
Gemini CLI
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-rec-cf -a gemini-cli -y
GitHub Copilot
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-rec-cf -a github-copilot -y
OpenCode
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-rec-cf -a opencode -y
Windsurf
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-rec-cf -a windsurf -y
name: "\"algo-rec-cf\"" description: "\"Implement collaborative filtering for recommendations based on user behavior patterns. Use this skill when the user needs to build a recommendation engine from user-item interaction data, find similar users or items, or predict ratings — even if they say 'users who bought this also bought', 'similar users', or 'recommend based on behavior'.\"." allowed-tools: Read, Glob, Grep
Collaborative filtering recommends items based on collective user behavior patterns. User-based CF finds similar users; item-based CF finds similar items. Computes in O(U² × I) for user-based or O(I² × U) for item-based where U=users, I=items.
**Trigger conditions:**
**When NOT to use:**
IRON LAW: CF Requires SUFFICIENT Interaction Data With sparse matrices (< 1% fill rate), similarity computation is unreliable. Minimum viable: each user has rated 5+ items, each item has 5+ ratings. Below this, fallback to content-based or popularity.
Load user-item interaction matrix. Check sparsity level and filter users/items below minimum interaction threshold. **Gate:** Matrix sparsity < 99%, minimum interaction thresholds met.
**User-based CF:** 1. Compute pairwise user similarity (cosine or Pearson correlation) 2. For target user, find top-K most similar users 3. Predict rating: weighted average of similar users' ratings
**Item-based CF:** 1. Compute pairwise item similarity from co-rating patterns 2. For target item, find top-K most similar items 3. Predict: weighted average of user's ratings on similar items
Hold out 20% of interactions for testing. Compute RMSE, MAE, or precision@K / recall@K. **Gate:** RMSE below baseline (global mean predictor).
Return top-N recommendations with predicted scores.
{
"recommendations": [{"item_id": "123", "predicted_score": 4.2, "similar_items_used": 5}],
"metadata": {"method": "item-based", "similarity": "cosine", "k_neighbors": 20, "sparsity": 0.97}
}**Input:** 5 users × 5 items rating matrix, target: user1, item5 **Expected:** Predicted rating based on weighted similarity of user1's rated items similar to item5
| Input | Expected | Why | |-------|----------|-----| | New user, no ratings | Cannot recommend | Cold start — fallback to popularity | | Item rated by all users | Low differentiation | High popularity ≠ personalized match | | Single shared item | Unreliable similarity | Need multiple co-ratings for stable similarity |
Curated skill pack for LLM agents in engineer and science workflow (Cursor & Claude ready).
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect…
Evaluate LLM agents and tool-using workflows—task success, tool accuracy, latency/cost, safety, and regression suites. Use when…
Design agent tools and CLI surfaces—schemas, naming, errors, idempotency, and discoverability for LLM callers. Use when defining…
\"Implement and select ad bidding strategies from manual CPC to automated target-CPA and target-ROAS. Use this skill when the…
\"Optimize advertising budget allocation across campaigns using marginal returns analysis. Use this skill when the user needs to…
\"Build CTR prediction models for estimating ad click-through rates from features. Use this skill when the user needs to predict…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.