Keep up with X's open-source algorithm changes, and review your posts and replies against the rules in effect
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/leohuanfang-hub/x-algorithm-playbookGuides for using ai agents skills like x-algorithm-playbook.
See how x-algorithm-playbook compares with popular alternatives.
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.
X open-sourced its For You ranking code at xai-org/x-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.
This repo reads that code for you, in plain English, with a link to the exact line behind every claim.
Last synced to X's code on November 10, 2026 (commit
660cd74). See How current is this?
| I want to… | Go to |
|---|---|
| Know the rules in effect right now | Path 1 |
| Check a post or thread before I publish it | Path 2 |
| Review how my posts and replies did last week or last month | Path 3 |
| See every algorithm change myself, straight from the code | Path 4 |
Paths 1 to 3 need no install: any chatbot works (Claude, ChatGPT, Grok). Claude Code users get a fuller version through the skills.
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).CHANGELOG.md, newest first.In any chatbot
prompts/audit-prompt.md and copy the prompt.In Claude Code
git clone https://github.com/leohuanfang-hub/x-algorithm-playbook
mkdir -p ~/.claude/skills && cp -r x-algorithm-playbook/skills/* ~/.claude/skills/
Then say "Check this thread before I post it" and paste the draft. The skill version also tells you when to post.
prompts/review-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.Replies 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.
Needs Python 3 and git, nothing else.
git clone https://github.com/leohuanfang-hub/x-algorithm-playbook && cd x-algorithm-playbook
python3 scripts/param_history.py --since 2026-09-01
The first run clones X's repo into .x-algorithm/. The output lists every ranking parameter that changed, with date, commit, and old and new value:
2026-09-30 77d431a ColdStartMaxPostAgeSecs: 172800 -> 7200
2026-10-14 17c96bf NotInterestedWeight: -47.52 -> -52.272
2026-11-05 021afa4 FavoriteWeight: 0.66 -> 0.708
2026-11-10 660cd74 NewUserMinEngagementThreshold: 0.0 -> 0.004
...
Useful flags: --grep ColdStart to follow one family of parameters, --markdown for a table you can paste.
In Claude Code, the x-algo-watch skill runs this and explains each change in plain English: "Did the X algorithm change since October 1?"
Sources for each point: RULES.md.
| File | What it is |
|---|---|
RULES.md |
The rules in effect, in plain English, each linked to the source line |
CHANGELOG.md |
Every ranking change since August 2026, newest first |
scripts/param_history.py |
Diffs X's ranking parameters across every commit |
skills/x-post-check |
Claude Code skill: check a draft, then rewrite it |
skills/x-post-review |
Claude Code skill: weekly or monthly review ending in an action list |
skills/x-algo-watch |
Claude Code skill: explain what changed and update the changelog |
prompts/audit-prompt.md |
The pre-post check as a copy-paste prompt |
prompts/review-prompt.md |
The review as a copy-paste prompt |
Shortcut for any AI that can open links: give it this link along with your question.
https://raw.githubusercontent.com/leohuanfang-hub/x-algorithm-playbook/main/RULES.md
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:
python3 scripts/param_history.py --since <the date at the top of RULES.md>
No 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.)
Is this official? No. It's an independent reading of public code, not affiliated with X.
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.
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.
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.
If this saved you time, a ⭐ helps other people find it.
MIT License · by @leohuanfang
x-algorithm-playbook is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by leohuanfang-hub. Keep up with X's open-source algorithm changes, and review your posts and replies against the rules in effect. It has 68 GitHub stars.
x-algorithm-playbook's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/leohuanfang-hub/x-algorithm-playbook" and add it to your Claude Code skills directory (see the Installation section above).
x-algorithm-playbook is primarily written in Python. It is open-source under leohuanfang-hub on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh x-algorithm-playbook against similar tools.
No comments yet. Be the first to share your thoughts!