x-post-optimizer

x-post-optimizer is a skill for Claude Code, Codex from ElemontCapital/x-algorithm-skills. It costs 38 tokens per session (652 once invoked), scanned A, original, Apache-2.0.

A guide for planning posts on X, the social network formerly known as Twitter, based on how its ranking and spam-detection systems are described. It covers post structure, timing, media choices, conversations, and account reputation.

In plain words
What is it for?
Use it to compare media formats, plan reply-focused threads, choose posting times, and check for signals that could harm account visibility.
Why use it?
It helps identify posting choices that may affect reach or trigger reduced distribution, such as rapid posting or external links.

Skill for Claude CodeCodex

Part of the x-algorithm plugin — 8 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/elemontcapital/x-algorithm-skills/x-post-optimizer
Any agent
npx skills add ElemontCapital/x-algorithm-skills --skill x-post-optimizer
Clone the repo
git clone --depth 1 https://github.com/ElemontCapital/x-algorithm-skills

Made for: Claude Code, Codex.

Or install x-algorithm, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x-post-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/elemontcapital/x-algorithm-skills/x-post-optimizer.svg)](https://agentmods.dev/skills/elemontcapital/x-algorithm-skills/x-post-optimizer)
Your own site
<a href="https://agentmods.dev/skills/elemontcapital/x-algorithm-skills/x-post-optimizer"><img src="https://agentmods.dev/badge/skills/elemontcapital/x-algorithm-skills/x-post-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 652 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00038 $0.00652
Opus 5 $0.00019 $0.00326
Sonnet 5 $0.00008 $0.00130
Haiku 4.5 $0.00004 $0.00065

Measured 5d ago against content hash 272fd6e8ebf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

x-post-optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/frequency_deboost.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/x-algorithm/skills/x-post-optimizer/SKILL.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.

X Post Optimizer

Strategic expertise for maximizing content reach on X. It focuses on the "Engagement Velocity" required to pass from candidate sourcing to the top of the "For You" timeline.

Context

The X algorithm utilizes a WeightedScorer that aggregates multiple probability heads (e.g., $P(\text{Like})$, $P(\text{Reply})$). While the HeavyRanker (Phoenix/MaskNet) predicts the likelihood of an action, the Weights determine the final distribution. Understanding these weights is key to "Algorithm-Native" content creation.

For specific tactical data, refer to:

What it does

  • Calculates Expected Value: Estimates the "Score Boost" of different media types (e.g., Video vs. Static Text).
  • Optimizes Conversation Depth: Advises on "Author-In-Thread" interactions, which carry massive weight in the WeightedScorer.
  • Protects Account Reputation: Identifies "Anti-Signals" (external links, rapid-fire posting) that trigger the VisibilityLib de-amplification.
  • Timing Strategy: Leverages knowledge of the "Frequency Deboost" window (3600s) to prevent internal cannibalization of posts.

Guidelines

  • The 13.5x Rule: Replies are significantly more valuable than Likes in the modern ranker. Content that invites a meaningful "back-and-forth" creates a feedback loop that the HeavyRanker optimizes for.
  • Author Reply Multiplier: In the code, author engagement on their own thread acts as a "Freshness" and "Conversation" signal, often effectively multiplying the thread's reach by keeping it at the top of the retrieval stack.
  • Negative Signal Avoidance: Avoid "Engagement Bait" that leads to "Show Less Often" or "Report" actions. The weight for a "Report" (-369.0) is mathematically impossible to overcome with positive engagement.
  • Media Strategy: Native video receives a dedicated weight (vqv_weight_eligibility), making it the preferred format for "Out-of-Network" discovery.

Read the full file on GitHub · 44 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 44 lines · 38 tokens per session scan A 272fd6e8ebf3

Subscribe to this mod's changes

x-post-optimizer is a skill published in the GitHub repository ElemontCapital/x-algorithm-skills (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 38 tokens to every session and 652 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.