AgentSkillsCN

x-dev-engineering

当您需要实现新功能,或对核心的“为你推荐”流水线进行调试时,可使用此技能。目前,系统已从传统的启发式算法转向由 **Phoenix** 转换器(Grok)驱动的统一 **基于 Rust** 的流水线。

SKILL.md
--- frontmatter
name: x-dev-engineering
description: Use this skill when implementing new features or debugging the core "For You" pipeline. The system has shifted from legacy heuristics toward a unified **Rust-based** pipeline powered by the **Phoenix** transformer (Grok).
version: 1.0.0
license: MIT

X Development Engineering

Technical expertise for developing and extending the X recommendation engine, focusing on the Grok-powered Phoenix model, Rust candidate pipelines, and the removal of hand-engineered features.

Context

The modern X algorithm prioritizes a "No Hand-Engineered Features" philosophy. Relevance is learned directly from user engagement sequences using a transformer architecture.

For technical deep-dives, see:

What it does

  • Implements Grok-Native Components: Guidance on integrating with the Phoenix transformer for multi-action prediction (Like, Repost, Reply, etc.).
  • Architects Candidate Sources: Logic for the two primary retrieval engines: Thunder (In-Network) and Phoenix Retrieval (Out-of-Network).
  • Enforces Pipeline Order: Ensures components follow the strict sequence: Query Hydration -> Sourcing -> Hydration -> Pre-Scoring Filters -> Scoring -> Selection.
  • Optimizes for Parallelism: Leverages Rust's async/await to execute independent hydration and sourcing tasks concurrently.

Guidelines

  • Candidate Isolation: During scoring, ensure candidates cannot "attend" to each other in the transformer. This maintains score consistency and enables batching.
  • No Heuristics: Avoid adding manual "if/then" rules for relevance; the Phoenix model should handle weightings through learned engagement probabilities.
  • Hydration Efficiency: Fetch only necessary metadata (text, media, author status) during the Candidate Hydration stage after initial sourcing to minimize I/O.
  • Safety First: All content must pass through VisibilityLib (Rust) for legal compliance and safety filtering before reaching the user.

Example Trigger Prompts

  • "/gen-thrift new ranking signal"
  • "/gen-thrift scaffold Rust Filter trait"
  • "Add a new engagement signal to Phoenix prediction"
  • "Show Rust implementation for Thunder candidate source"
  • "Explain 'No Hand-Engineered Features' in ranking update"
  • "How is candidate isolation applied in transformer attention?"