[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75GAEMNTHPF4GZY6MGG3HCP":3,"skill-same:01M75GAEMNTHPF4GZY6MGG3HCP":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75GAEMNTHPF4GZY6MGG3HCP","recsys-pipeline-architect",null,"Design composable recommendation, ranking, and feed pipelines using the six-stage Source→Hydrator→Filter→Scorer→Selector→SideEffect framework popularized by xAI's open-sourced X For You algorithm. Use when building any system that picks \"the top K items for a (user, context)\" — content feeds, search ranking, RAG rerankers, task prioritizers, notification triage, ad selection.","RudyCity\u002Fsuperagent","RudyCity","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F82188919?v=4","01M75FP5X8AW8ACBH0SH34WS7M","01M75FP5YAHJK8M1Q52BWXB82K",70,"MIT","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frecsys-pipeline-architect\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: recsys-pipeline-architect\ndescription: Design composable recommendation, ranking, and feed pipelines using the six-stage Source→Hydrator→Filter→Scorer→Selector→SideEffect framework popularized by xAI's open-sourced X For You algorithm. Use when building any system that picks \"the top K items for a (user, context)\" — content feeds, search ranking, RAG rerankers, task prioritizers, notification triage, ad selection.\n---\n\n# Recsys Pipeline Architect\n\nA spec-and-scaffold skill for building composable recommendation, ranking, and feed pipelines. Encodes the six-stage pattern popularized by xAI's open-sourced [For You algorithm](https:\u002F\u002Fgithub.com\u002Fxai-org\u002Fx-algorithm) (Apache 2.0) and applies it to any \"top K for (user, context)\" problem.\n\n## Overview\n\nMost \"recommendation systems\" in production aren't exotic ML — they're *pipelines*: fetch candidates from one or more sources, enrich them with metadata, drop the ineligible, score the rest, sort and pick the top K, then fire async side effects. The pattern is universal. The scoring function and the items change; the pipeline shape doesn't.\n\nThis skill is an independent reimplementation of the pattern (MIT) — no code copied from the original.\n\n## When to Use This Skill\n\n- Building any system that returns \"the top K items for a user\u002Fcontext\"\n- Designing or refactoring a personalized feed (content, search results, notifications)\n- Wrapping an LLM\u002FML scorer in proper pipeline plumbing (sources, hydration, filters, side effects)\n- Adding multi-action prediction with tunable weights (instead of a single relevance score)\n- Building a RAG retrieval reranker (cheap retrieval → expensive rerank)\n- Designing a task prioritizer or alert triage system\n\n## The Six-Stage Framework\n\n| # | Stage | Job | Parallel? |\n|---|---|---|---|\n| 1 | **Source** | Fetch candidates from one or more origins | Yes — multiple sources run in parallel |\n| 2 | **Hydrator** | Enrich candidates with metadata needed for filtering and scoring | Yes — independent hydrators run in parallel |\n| 3 | **Filter** | Drop ineligible candidates (blocked, expired, duplicate, ineligible) | Sequential — each filter sees fewer items |\n| 4 | **Scorer** | Assign each surviving candidate one or more scores | Sequential — later scorers see earlier scores |\n| 5 | **Selector** | Sort by final score, return top K | Single op |\n| 6 | **SideEffect** | Cache, log, emit events, update served-history | Async — must never block the response |\n\n### Why this exact order\n\n- Sources before hydration: know what candidates exist before paying to enrich\n- Hydration before filtering: many filters need metadata the source didn't provide\n- Filtering before scoring: scoring is the expensive stage — drop the ineligible first\n- Scorer chain (not single scorer): real systems compose ML scoring + diversity reranking + business rules\n- Selector after scoring: keeps scoring deterministic and cacheable\n- SideEffects last and async: side effects must never block the user response\n\n## Workflow When Invoked\n\nWalk the user through eight steps:\n\n1. **Clarify the use case** (one round, three questions only if missing): items being ranked, input context, language\u002Fruntime\n2. **Identify the candidate sources** (usually in-network + out-of-network, but single-source also valid)\n3. **List required hydrations** — for each filter and scorer, what data does it need that the source didn't provide?\n4. **List the filters** — cheap before expensive, universal before user-specific (duplicate, self, age, block\u002Fmute, previously-served, eligibility)\n5. **Design the scorer chain** — primary ML\u002Fheuristic → combiner (multi-action with weights) → diversity → business rules\n6. **Selector** — sort descending by final score, take top K (or stratified mix)\n7. **SideEffects** — cache served IDs, emit impression events, update counters, log analytics; all fire-and-forget\n8. **Generate the scaffold** in the user's stack\n\n## Key Trade-offs to Surface\n\nNever default silently on these — they are product decisions disguised as technical ones.\n\n### 1. Single score vs multi-action prediction\n\n- **Single score:** train one model to predict relevance. To change behavior → retrain.\n- **Multi-action:** predict `P(action)` for many actions (`P(read)`, `P(like)`, `P(share)`, `P(skip)`, `P(report)`), combine with weights at serving time. To change behavior → change weights. No retraining.\n\nThe X For You algorithm uses multi-action with both positive and negative weights. Recommend multi-action when the user expects to tune frequently.\n\n### 2. Candidate isolation vs joint scoring\n\n- **Isolated:** each candidate scored independently. Deterministic, cacheable.\n- **Joint:** candidates attend to each other during scoring (e.g., transformer over the whole batch). More expressive but non-deterministic across batches.\n\nDefault to isolation. Joint only when there's a specific reason (e.g., explicit batch-aware diversity).\n\n### 3. Online vs offline batch\n\n- **Request-time (online):** pipeline runs on each request. Latency budget: 100–300ms.\n- **Pre-computed (offline batch):** pipeline runs periodically, results cached. Lower latency, lower freshness.\n- **Hybrid:** candidate retrieval offline, ranking online.\n\n## Hard Rules\n\n1. **Do not invent benchmark numbers.** \"How fast is this?\" → \"depends on workload, run it yourself.\"\n2. **Attribution discipline.** Attribute the pattern as \"popularized by xAI's open-sourced For You algorithm\" \u002F `github.com\u002Fxai-org\u002Fx-algorithm` (Apache 2.0).\n3. **No trademark use.** Don't name the user's artifact \"X-like\" or use \"For You\" branding. Use neutral names: \"candidate pipeline\", \"feed pipeline\", \"ranking pipeline\".\n4. **Surface trade-offs.** Multi-action vs single, isolation vs joint, online vs offline — never default silently.\n5. **The generated scaffold must run.** No pseudocode passing as code.\n6. **Filter order matters.** Cheap before expensive. Universal before user-specific.\n7. **Side effects never block.** Wrap in fire-and-forget patterns (goroutines \u002F promises without await \u002F asyncio tasks).\n\n## Anti-Patterns\n\n- ❌ Scoring before filtering (wastes compute on candidates that will be dropped)\n- ❌ Synchronous side effects (cache writes \u002F impression emits blocking the response)\n- ❌ A single \"relevance\" score when the product needs multi-objective tuning\n- ❌ Joint scoring as default (non-deterministic, uncacheable, doesn't compose with reranking)\n- ❌ Pseudocode \"for illustration\" — the scaffold must actually run\n\n## Common Use Cases\n\n### Content feed (Strapi v5 plugin, TypeScript)\n\nUser has a CMS with 50k articles, wants a personalized \"for you\" feed. Walk through 8 steps → generate a Strapi plugin scaffold with multi-action scoring, author diversity, standard filters, async side-effect lane.\n\n### RAG retrieval reranker (Python async)\n\nUser's RAG returns top-50 chunks from a vector DB, wants to rerank with a more expensive scorer and return top-5. Single-source pipeline with a scorer chain (cheap retrieval + expensive rerank).\n\n### Task prioritizer (FastAPI service)\n\nUser has a queue of incoming task suggestions, wants to rank by \"what should this user work on next\" considering their past patterns. Items reversed (tasks instead of content), same shape applies.\n\n### Notification triage (offline-batch job)\n\nUser wants a daily digest that picks the top 10 from the last 24h queue. Offline-batch pipeline. Source = queue, filters = age\u002Fdedup\u002Feligibility, scorer = urgency × user-affinity, selector = top 10, side effect = email send (still async).\n\n## Upstream\n\nThis skill is a single-file adapter for the upstream repository, which ships 5 load-on-demand reference docs and 3 runnable example scaffolds (Strapi v5 \u002F Go \u002F Python — every one green on its test suite, 9\u002F9 tests total).\n\n- **Upstream:** https:\u002F\u002Fgithub.com\u002Fmturac\u002Frecsys-pipeline-architect\n- **Release:** v0.1.0 (MIT)\n- **References:** interfaces in 4 languages (TS\u002FGo\u002FPython\u002FRust), multi-action scoring, candidate isolation, filter cookbook (12 patterns), scorer cookbook\n- **Cross-platform install:** `npx skills add mturac\u002Frecsys-pipeline-architect`\n","# Recsys Pipeline Architect\n\nA spec-and-scaffold skill for building composable recommendation, ranking, and feed pipelines. Encodes the six-stage pattern popularized by xAI's open-sourced [For You algorithm](https:\u002F\u002Fgithub.com\u002Fxai-org\u002Fx-algorithm) (Apache 2.0) and applies it to any \"top K for (user, context)\" problem.\n\n## Overview\n\nMost \"recommendation systems\" in production aren't exotic ML — they're *pipelines*: fetch candidates from one or more sources, enrich them with metadata, drop the ineligible, score the rest, sort and pick the top K, then fire async side effects. The pattern is universal. The scoring function and the items change; the pipeline shape doesn't.\n\nThis skill is an independent reimplementation of the pattern (MIT) — no code copied from the original.\n\n## When to Use This Skill\n\n- Building any system that returns \"the top K items for a user\u002Fcontext\"\n- Designing or refactoring a personalized feed (content, search results, notifications)\n- Wrapping an LLM\u002FML scorer in proper pipeline plumbing (sources, hydration, filters, side effects)\n- Adding multi-action prediction with tunable weights (instead of a single relevance score)\n- Building a RAG retrieval reranker (cheap retrieval → expensive rerank)\n- Designing a task prioritizer or alert triage system\n\n## The Six-Stage Framework\n\n| # | Stage | Job | Parallel? |\n|---|---|---|---|\n| 1 | **Source** | Fetch candidates from one or more origins | Yes — multiple sources run in parallel |\n| 2 | **Hydrator** | Enrich candidates with metadata needed for filtering and scoring | Yes — independent hydrators run in parallel |\n| 3 | **Filter** | Drop ineligible candidates (blocked, expired, duplicate, ineligible) | Sequential — each filter sees fewer items |\n| 4 | **Scorer** | Assign each surviving candidate one or more scores | Sequential — later scorers see earlier scores |\n| 5 | **Selector** | Sort by final score, return top K | Single op |\n| 6 | **SideEffect** | Cache, log, emit events, update served-history | Async — must never block the response |\n\n### Why this exact order\n\n- Sources before hydration: know what candidates exist before paying to enrich\n- Hydration before filtering: many filters need metadata the source didn't provide\n- Filtering before scoring: scoring is the expensive stage — drop the ineligible first\n- Scorer chain (not single scorer): real systems compose ML scoring + diversity reranking + business rules\n- Selector after scoring: keeps scoring deterministic and cacheable\n- SideEffects last and async: side effects must never block the user response\n\n## Workflow When Invoked\n\nWalk the user through eight steps:\n\n1. **Clarify the use case** (one round, three questions only if missing): items being ranked, input context, language\u002Fruntime\n2. **Identify the candidate sources** (usually in-network + out-of-network, but single-source also valid)\n3. **List required hydrations** — for each filter and scorer, what data does it need that the source didn't provide?\n4. **List the filters** — cheap before expensive, universal before user-specific (duplicate, self, age, block\u002Fmute, previously-served, eligibility)\n5. **Design the scorer chain** — primary ML\u002Fheuristic → combiner (multi-action with weights) → diversity → business rules\n6. **Selector** — sort descending by final score, take top K (or stratified mix)\n7. **SideEffects** — cache served IDs, emit impression events, update counters, log analytics; all fire-and-forget\n8. **Generate the scaffold** in the user's stack\n\n## Key Trade-offs to Surface\n\nNever default silently on these — they are product decisions disguised as technical ones.\n\n### 1. Single score vs multi-action prediction\n\n- **Single score:** train one model to predict relevance. To change behavior → retrain.\n- **Multi-action:** predict `P(action)` for many actions (`P(read)`, `P(like)`, `P(share)`, `P(skip)`, `P(report)`), combine with weights at serving time. To change behavior → change weights. No retraining.\n\nThe X For You algorithm uses multi-action with both positive and negative weights. Recommend multi-action when the user expects to tune frequently.\n\n### 2. Candidate isolation vs joint scoring\n\n- **Isolated:** each candidate scored independently. Deterministic, cacheable.\n- **Joint:** candidates attend to each other during scoring (e.g., transformer over the whole batch). More expressive but non-deterministic across batches.\n\nDefault to isolation. Joint only when there's a specific reason (e.g., explicit batch-aware diversity).\n\n### 3. Online vs offline batch\n\n- **Request-time (online):** pipeline runs on each request. Latency budget: 100–300ms.\n- **Pre-computed (offline batch):** pipeline runs periodically, results cached. Lower latency, lower freshness.\n- **Hybrid:** candidate retrieval offline, ranking online.\n\n## Hard Rules\n\n1. **Do not invent benchmark numbers.** \"How fast is this?\" → \"depends on workload, run it yourself.\"\n2. **Attribution discipline.** Attribute the pattern as \"popularized by xAI's open-sourced For You algorithm\" \u002F `github.com\u002Fxai-org\u002Fx-algorithm` (Apache 2.0).\n3. **No trademark use.** Don't name the user's artifact \"X-like\" or use \"For You\" branding. Use neutral names: \"candidate pipeline\", \"feed pipeline\", \"ranking pipeline\".\n4. **Surface trade-offs.** Multi-action vs single, isolation vs joint, online vs offline — never default silently.\n5. **The generated scaffold must run.** No pseudocode passing as code.\n6. **Filter order matters.** Cheap before expensive. Universal before user-specific.\n7. **Side effects never block.** Wrap in fire-and-forget patterns (goroutines \u002F promises without await \u002F asyncio tasks).\n\n## Anti-Patterns\n\n- ❌ Scoring before filtering (wastes compute on candidates that will be dropped)\n- ❌ Synchronous side effects (cache writes \u002F impression emits blocking the response)\n- ❌ A single \"relevance\" score when the product needs multi-objective tuning\n- ❌ Joint scoring as default (non-deterministic, uncacheable, doesn't compose with reranking)\n- ❌ Pseudocode \"for illustration\" — the scaffold must actually run\n\n## Common Use Cases\n\n### Content feed (Strapi v5 plugin, TypeScript)\n\nUser has a CMS with 50k articles, wants a personalized \"for you\" feed. Walk through 8 steps → generate a Strapi plugin scaffold with multi-action scoring, author diversity, standard filters, async side-effect lane.\n\n### RAG retrieval reranker (Python async)\n\nUser's RAG returns top-50 chunks from a vector DB, wants to rerank with a more expensive scorer and return top-5. Single-source pipeline with a scorer chain (cheap retrieval + expensive rerank).\n\n### Task prioritizer (FastAPI service)\n\nUser has a queue of incoming task suggestions, wants to rank by \"what should this user work on next\" considering their past patterns. Items reversed (tasks instead of content), same shape applies.\n\n### Notification triage (offline-batch job)\n\nUser wants a daily digest that picks the top 10 from the last 24h queue. Offline-batch pipeline. Source = queue, filters = age\u002Fdedup\u002Feligibility, scorer = urgency × user-affinity, selector = top 10, side effect = email send (still async).\n\n## Upstream\n\nThis skill is a single-file adapter for the upstream repository, which ships 5 load-on-demand reference docs and 3 runnable example scaffolds (Strapi v5 \u002F Go \u002F Python — every one green on its test suite, 9\u002F9 tests total).\n\n- **Upstream:** https:\u002F\u002Fgithub.com\u002Fmturac\u002Frecsys-pipeline-architect\n- **Release:** v0.1.0 (MIT)\n- **References:** interfaces in 4 languages (TS\u002FGo\u002FPython\u002FRust), multi-action scoring, candidate isolation, filter cookbook (12 patterns), scorer cookbook\n- **Cross-platform install:** `npx skills add mturac\u002Frecsys-pipeline-architect`\n",{"name":5,"description":7},"main","62c7af5ced2c21355d148c243edb6d5921cca1a6",".agents\u002Fskills\u002Frecsys-pipeline-architect",8,"https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent","https:\u002F\u002Fgithub.com\u002FRudyCity","2026-11-14 22:58:49",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add RudyCity\u002Fsuperagent --skill recsys-pipeline-architect",{"tool":36,"command":37},"bunx","bunx skills add RudyCity\u002Fsuperagent --skill recsys-pipeline-architect",{"tool":39,"command":40},"pnpm","pnpm dlx skills add RudyCity\u002Fsuperagent --skill recsys-pipeline-architect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frecsys-pipeline-architect\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M75GP28CM6QCSXSHKFF3NNKS","telegram_bot","Use Telegram Bot when the user asks for Telegram Bot or this provider's API.","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002Fmuse-bridge-kit\u002Fskills\u002Ftelegram-bot\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M75GNZGZYM7NWDV6MBP3HS14","superagent-bridge","Operate the Muse\u003C->superagent Telegram bridge: poll the private group for task_request\u002Ftask_result envelopes, validate senders, and reply with task_batch\u002Ftask_done as Muse (the remote brain).","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002Fmuse-bridge-kit\u002Fskills\u002Fsuperagent-bridge\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M75GNHN19HJWZ7NAPM5E5JCV","Writing Skills","TDD for process documentation - test with subagents before writing, iterate until bulletproof","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M75GNCQEKVRA4FH161NZPZNB","writing-shape","Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M75GNAF9NAYCSTBDZDGMK0DZ","Writing Plans","Create detailed implementation plans with bite-sized tasks for engineers with zero codebase context","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M75GN72EV0V5NQAW9CSPFRFH","writing-guidelines","Review docs\u002Fprose for Writing Guidelines compliance. Use when asked to \"review my docs\", \"check writing style\", \"audit prose\", \"review docs voice and tone\", or \"check this page against the writing handbook\".","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-guidelines\u002FSKILL.md",[],[]]