Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x-algorithm-skill-kit - Codex skill for X For You recommendation stack

[![CI](https://img.shields.io/github/actions/workflow/status/ChloeVPin/x-algorithm-skill-kit/validate.yml?style=flat&logo=githubactions&logoColor=white)](https://github.com/ChloeVPin/x-algorithm-skill-kit/actions/workflows/validate.yml) [![Licence](https://img.shields.io/badge/licence-MIT-3DA639?style=flat&logo=opensourceinitiative&logoColor=white)](LICENSE) [![Release](https://img.shields.io/github/v/release/ChloeVPin/x-algorithm-skill-kit?style=flat&logo=semanticrelease&logoColor=white)](https://github.com/ChloeVPin/x-algorithm-skill-kit/releases/latest) [![Stars](https://img.shields.io/github/stars/ChloeVPin/x-algorithm-skill-kit?style=flat&logo=github&logoColor=white)](https://github.com/ChloeVPin/x-algorithm-skill-kit/stargazers) [![Install](https://img.shields.io/badge/install-npx_skills_add-000000?style=flat&logo=npm&logoColor=white)](#install) [![Format](https://img.shields.io/badge/format-Agent_Skills-8A63D2?style=flat&logo=anthropic&logoColor=white)](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview)


Install

Install with the Vercel skills CLI:

npx skills add ChloeVPin/x-algorithm-skill-kit

If you do not have Node.js, clone the repository and copy the skills/x-algorithm folder into your agent's skills directory:

git clone https://github.com/ChloeVPin/x-algorithm-skill-kit.git

Overview

x-algorithm-skill-kit packages a self-contained Codex skill that helps AI agents draft, review, score, and optimize X posts based on engineering principles from the public X For You recommendation release.

It provides actionable guidance on retrieval, neural ranking, content filtering, and post mechanics without requiring a clone of the full upstream source tree.

Key Capabilities

  • Post Strategy & Drafting: Structure hooks, formatting, media, and audience targeting for higher For You engagement.
  • Algorithm Architecture Insights: Explain recommendation mechanics across Home Mixer, Phoenix, Thunder, and Grox.
  • Agent Skill Distribution: Instant installation into Codex environments via npx.

X For You Recommendation Pipeline Architecture: Home Mixer to Phoenix to Grox to Thunder


Quick Start & Installation

Prerequisites

  • Codex environment configured to load skills from $CODEX_HOME/skills
  • Node.js version 18 or newer with npx

Installation Commands

  1. Inspect the bundled skill package:
    npx x-algorithm-skill-kit help
  2. Install the skill directly into Codex:
    npx x-algorithm-skill-kit install
  3. Restart your Codex environment so the new skill is registered.

Usage & Agent Prompts

Trigger the skill in your agent conversations to optimize posts or analyze recommendation mechanics:

Example Agent Prompts

Use x-algorithm to review this X post draft and optimize its hook for For You retrieval.
Use x-algorithm to generate three post variants tailored for developers interested in AI recommendation systems.
Use x-algorithm to explain how Phoenix retrieval scoring influences post distribution.

Recommendation Subsystems Covered

  • Home Mixer: Timeline orchestration, candidate hydration, and scoring assembly.
  • Phoenix Engine: Out-of-network graph processing, neural candidate retrieval, and candidate ranking.
  • Thunder Serving: High-speed in-network graph serving and candidate filtering.
  • Grox AI: Multimodal content understanding, topic detection, and post quality scoring.
  • Pipeline Components: Candidate filters, hydrators, scorers, selectors, ad insertion, brand safety signals, and media engagement metrics.

Repository Structure

File / Path Purpose
skills/x-algorithm/SKILL.md Primary Codex skill entry point and prompt triggers.
skills/x-algorithm/references/post-strategy.md Actionable post formatting, hook design, and engagement strategy rules.
skills/x-algorithm/references/overview.md High-level architectural summary of the X recommendation stack.
skills/x-algorithm/references/pipeline.md Step-by-step candidate flow from retrieval to final timeline output.
skills/x-algorithm/references/subsystems.md In-depth breakdown of Home Mixer, Phoenix, Thunder, and Grox.
skills/x-algorithm/references/operations.md Operational guidelines, signal weights, and system filters.
scripts/install-skill.mjs Skill installation script for Codex environments.
docs/release-notes.md Detailed version release notes and update history.
AGENTS.md Agent configuration and instructions.

Recommended Reading Order

  1. Skill Core: Primary instructions and trigger definition.
  2. Post Strategy Guide: Rules for post drafting and review.
  3. Architecture Overview: Recommendation stack overview.
  4. Pipeline Execution: Detailed candidate pipeline lifecycle.

Contributing & License

Contributions to improve reference documentation or skill triggers are welcome. Please keep reference files structured cleanly with single-level deep links from SKILL.md.

Releases

Packages

Contributors

Languages