[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112776":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":14,"starSnapshotCount":14,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},112776,"x-algorithm-playbook","leohuanfang-hub\u002Fx-algorithm-playbook","leohuanfang-hub","Keep up with X's open-source algorithm changes, and review your posts and replies against the rules in effect",null,"Python",91,3,1,0,22,44.01,"MIT License",false,"main",true,[22,23,24,25,26],"claude-code","skills","social-media","twitter","x-algorithm","2026-11-23 02:48:59","2026-11-23 20:20:50","# x-algorithm-playbook\n\n**X's algorithm changes almost every weekday. This repo tells you what changed, what's in effect today, and how your posts stack up against it.**\n\nX open-sourced its For You ranking code at [xai-org\u002Fx-algorithm](https:\u002F\u002Fgithub.com\u002Fxai-org\u002Fx-algorithm) and keeps updating it, usually without an announcement. One example: on September 30, 2026, the boost for small accounts quietly went from 48 hours to 2 hours. If you were still timing posts for a two-day window, you were optimizing for a rule that no longer existed.\n\nThis repo reads that code for you, in plain English, with a link to the exact line behind every claim.\n\n> Last synced to X's code on **November 10, 2026** (commit `660cd74`). See [How current is this?](#how-current-is-this)\n\n---\n\n## Start here: what do you want to do?\n\n| I want to… | Go to |\n|---|---|\n| Know the rules in effect right now | [Path 1](#path-1-read-the-rules) |\n| Check a post or thread before I publish it | [Path 2](#path-2-check-a-post-before-posting) |\n| Review how my posts and replies did last week or last month | [Path 3](#path-3-review-your-last-week-or-month) |\n| See every algorithm change myself, straight from the code | [Path 4](#path-4-track-changes-yourself) |\n\nPaths 1 to 3 need no install: any chatbot works (Claude, ChatGPT, Grok). Claude Code users get a fuller version through the skills.\n\n---\n\n### Path 1: Read the rules\n\n1. Skim the [7-point checklist](#the-7-point-checklist) below.\n2. For the reasoning and sources, open [`RULES.md`](RULES.md). Each rule is labeled **Code** (read in X's source), **X staff** (a public post by X staff) or **Inference** (our reading, not proven).\n3. To see what changed recently, open [`CHANGELOG.md`](CHANGELOG.md), newest first.\n\n### Path 2: Check a post before posting\n\n**In any chatbot**\n\n1. Open [`prompts\u002Faudit-prompt.md`](prompts\u002Faudit-prompt.md) and copy the prompt.\n2. Paste it into your chatbot, then add your draft (and, optionally, your last 3 posts so it can catch repeated openings).\n3. You get seven checks, each marked pass or fail with a reason, plus a rewrite that keeps your voice.\n\n**In Claude Code**\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fleohuanfang-hub\u002Fx-algorithm-playbook\nmkdir -p ~\u002F.claude\u002Fskills && cp -r x-algorithm-playbook\u002Fskills\u002F* ~\u002F.claude\u002Fskills\u002F\n```\n\nThen say *\"Check this thread before I post it\"* and paste the draft. The skill version also tells you when to post.\n\n### Path 3: Review your last week or month\n\n1. **Get your numbers.** Go to [X Analytics](https:\u002F\u002Fx.com\u002Fi\u002Faccount_analytics), open the Content tab, pick the period and export. No export? A pasted table or screenshots also work. The more of these you include, the better: post text, date and time, impressions, likes, replies, profile visits, new follows.\n2. **Run the review.**\n   - Any chatbot that can open links: copy [`prompts\u002Freview-prompt.md`](prompts\u002Freview-prompt.md), then paste your numbers. The prompt points the chatbot at this repo's current rules, so it stays up to date without you changing anything.\n   - Claude Code (skills installed as in Path 2): say *\"Review my X posts and replies from last week\"* and attach the export.\n3. **What you get back:** your posts split by type (originals, later thread posts, replies, own video, links), which type actually brings you followers and which only brings reach, the rules you broke, your top and bottom 3 posts, and **at most 5 concrete actions** for the next period. Every claim is labeled as coming from your data, from the rules, or as a guess.\n4. **Next period, run it again** and check whether those actions moved the numbers.\n\nReplies get their own groups on purpose. For a small account, replies under bigger accounts can carry most of the reach while bringing few followers, and mixing them with original posts hides that. The Claude Code skill goes further: it splits replies by the size of the account you replied to and by how fast you replied, and warns you when one or two lucky posts produced most of your follows.\n\n### Path 4: Track changes yourself\n\nNeeds Python 3 and git, nothing else.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fleohuanfang-hub\u002Fx-algorithm-playbook && cd x-algorithm-playbook\npython3 scripts\u002Fparam_history.py --since 2026-09-01\n```\n\nThe first run clones X's repo into `.x-algorithm\u002F`. The output lists every ranking parameter that changed, with date, commit, and old and new value:\n\n```\n2026-09-30  77d431a  ColdStartMaxPostAgeSecs: 172800 -> 7200\n2026-10-14  17c96bf  NotInterestedWeight: -47.52 -> -52.272\n2026-11-05  021afa4  FavoriteWeight: 0.66 -> 0.708\n2026-11-10  660cd74  NewUserMinEngagementThreshold: 0.0 -> 0.004\n...\n```\n\nUseful flags: `--grep ColdStart` to follow one family of parameters, `--markdown` for a table you can paste.\n\nIn Claude Code, the `x-algo-watch` skill runs this and explains each change in plain English: *\"Did the X algorithm change since October 1?\"*\n\n---\n\n## The 7-point checklist\n\n1. **Put your best idea in the first post.** Strangers only see post 1 of a thread; every later post is a reply to yourself.\n2. **Upload your own video, over 10 seconds.** Quoted videos don't enter the video index.\n3. **Stay online for the first 2 hours.** The small-account boost only considers posts under 2 hours old.\n4. **Write something people copy the link of.** Copy link is weighted 20, a like 0.708.\n5. **Build mutuals in your niche.** A reply between mutual follows weighs 20 instead of 5.\n6. **Never post from a template.** \"Not interested\" is weighted -53, and a low-quality AI label hides you from strangers for 7 days.\n7. **Put links in a reply.** There's no hard-coded link penalty, but link posts collect less engagement.\n\nSources for each point: [`RULES.md`](RULES.md).\n\n---\n\n## What's inside\n\n| File | What it is |\n|---|---|\n| [`RULES.md`](RULES.md) | The rules in effect, in plain English, each linked to the source line |\n| [`CHANGELOG.md`](CHANGELOG.md) | Every ranking change since August 2026, newest first |\n| [`scripts\u002Fparam_history.py`](scripts\u002Fparam_history.py) | Diffs X's ranking parameters across every commit |\n| [`skills\u002Fx-post-check`](skills\u002Fx-post-check\u002FSKILL.md) | Claude Code skill: check a draft, then rewrite it |\n| [`skills\u002Fx-post-review`](skills\u002Fx-post-review\u002FSKILL.md) | Claude Code skill: weekly or monthly review ending in an action list |\n| [`skills\u002Fx-algo-watch`](skills\u002Fx-algo-watch\u002FSKILL.md) | Claude Code skill: explain what changed and update the changelog |\n| [`prompts\u002Faudit-prompt.md`](prompts\u002Faudit-prompt.md) | The pre-post check as a copy-paste prompt |\n| [`prompts\u002Freview-prompt.md`](prompts\u002Freview-prompt.md) | The review as a copy-paste prompt |\n\n**Shortcut for any AI that can open links:** give it this link along with your question.\n\n```\nhttps:\u002F\u002Fraw.githubusercontent.com\u002Fleohuanfang-hub\u002Fx-algorithm-playbook\u002Fmain\u002FRULES.md\n```\n\n---\n\n## How current is this?\n\n`RULES.md` is pinned to a specific commit of X's code, shown at its top, and is updated after each meaningful change. X can change things in between, so before relying on a number, run:\n\n```bash\npython3 scripts\u002Fparam_history.py --since \u003Cthe date at the top of RULES.md>\n```\n\nNo output means no parameter has changed since. (New filters or rules files can still appear without a parameter change; the `x-algo-watch` skill checks for those too.)\n\n## FAQ\n\n**Is this official?** No. It's an independent reading of public code, not affiliated with X.\n\n**Does a weight of 0.708 mean one like is worth 0.708 points?** No. Each weight multiplies the model's *predicted probability* that a given viewer takes that action, not raw counts. So you can't add up likes and reports on your post to get a score.\n\n**Does the public code match what runs in production?** Not guaranteed. The parameter file records when it was last synced with production, and `RULES.md` quotes that date, but X doesn't promise the two are identical.\n\n**What can't the code tell us?** Some things, such as how replies are ordered under a post. They're listed under \"Known unknowns\" at the end of [`RULES.md`](RULES.md).\n\n## Contributing\n\n- **Spotted a change before it's here?** Open an issue with the commit link.\n- **Have data the code doesn't show**, such as a test you ran on your own account? Open an issue. Evidence that confirms or contradicts a rule is the most useful thing you can add.\n- **Improved a skill or prompt?** Pull requests welcome. Keep it general: it should work for any account.\n\nIf this saved you time, a ⭐ helps other people find it.\n\n---\n\nMIT License · by [@leohuanfang](https:\u002F\u002Fx.com\u002Fleohuanfang)\n","这是一个面向X（原Twitter）平台内容创作者的算法合规辅助工具，实时追踪并解析X官方开源的For You推荐算法代码变更。项目以自然语言提炼当前生效的7条核心排序规则，支持对单条推文\u002F线程进行发布前合规性审计、历史内容效果回溯分析，并提供可直接用于Claude Code等AI助手的技能集成。技术上基于Python构建，通过静态解析xai-org\u002Fx-algorithm仓库源码，确保每项规则均标注对应代码行与变更时间戳。适用于X平台运营者、社交媒体策略师及内容审核人员，在算法频繁迭代环境下提升内容分发效率与合规确定性。",2,"2026-11-24 04:44:06","CREATED_QUERY"]