optimize

optimize is a skill for Claude Code from Epistates/sparX. It costs 37 tokens per session (1,518 once invoked), scanned A, original, MIT.

A guide for reviewing and rewriting draft posts for X using a scoring model based on the platform's Phoenix ranking system.

In plain words
What is it for?
Scoring a draft post or thread, reviewing a published X post, understanding reach problems, and producing an improved version.
Why use it?
It identifies weaknesses in a draft and suggests changes aimed at improving how widely the post may be shown.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Scoring a draft post or thread, reviewing a published X post, understanding reach problems, and producing an improved version.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/epistates/sparx/optimize
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.

Any agent
npx skills add Epistates/sparX --skill optimize
Clone the repo
git clone --depth 1 https://github.com/Epistates/sparX

Made for: Claude Code.

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 optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/epistates/sparx/optimize/github.svg)](https://agentmods.dev/skills/epistates/sparx/optimize)
Your own site
<a href="https://agentmods.dev/skills/epistates/sparx/optimize"><img src="https://agentmods.dev/badge/skills/epistates/sparx/optimize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/epistates/sparx/optimize"><img src="https://agentmods.dev/badge/skills/epistates/sparx/optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00037 $0.01518
Opus 5.5 $0.00015 $0.00607
Sonnet 5.5 $0.00007 $0.00304
Haiku 4.5 $0.00004 $0.00152

Measured 1mo ago against content hash 83679a29ea9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

optimize 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 1mo ago.

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.

.claude/skills/optimize/SKILL.md · 141 lines

How it starts

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

Optimize an X Post Draft

You are a Phoenix algorithm scoring engine. Analyze a draft post, identify weaknesses against the scoring model, and rewrite for maximum predicted reach.

Input

The user provides:

  • A draft post (or thread) they want optimized
  • An X post URL — read the actual published post via WebFetch, score it, and suggest an improved version
  • A URL to content they posted about — read it to understand context for better optimization

URL Resolution

If the input contains an X post URL (x.com or twitter.com), use WebFetch to read the post text. If you also need live engagement metrics to assess how it's currently performing, suggest the user run /analyze [url] which uses chrome for authenticated metric access.

For any other URL, read via WebFetch to understand the context behind the draft. See ../../../reference/url-reading.md.

Process

Step 1 — Load Scoring Context

Read these references:

Step 2 — Analyze the Draft

Score the draft against every Phoenix signal:

Positive Signal Analysis

Signal Score (0-10) Assessment
Dwell potential ? Will people spend time reading this?
Reply magnet ? Does this trigger genuine replies?
Bookmark worthy ? Would someone save this?
Repost/Quote appeal ? Would someone share this with their audience?
Follow trigger ? Does this make people want more from this author?
Hook strength ? Do the first 8-12 words stop the scroll?

Negative Signal Risk

Risk Score (0-10, lower is better) Assessment
"Not interested" risk ? Could this feel irrelevant to non-target viewers?
Engagement bait ? Does it use manipulative patterns?
Link penalty ? Are external links in the body?
Spam signals ? Excessive hashtags, salesy tone, etc.?

Read the full file on GitHub · 141 lines

Files

What ships with it

1 file 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. 1mo ago First seen · 141 lines · 37 tokens per session scan A 83679a29ea9b

Subscribe to this mod's changes

optimize is a skill published in the GitHub repository Epistates/sparX (3 stars, last pushed 6mo ago), licensed MIT. It adds 37 tokens to every session and 1,518 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

skill-builder

Automatically detect source types and build AI skills using Skill Seekers. Use when the user wants to create skills from documentation, repos, PDFs, videos, or other knowledge sources.

yusufkaraaslan/Skill_Seekers · 38 tokens

skill-builder

Automatically detect source types and build AI skills using Skill Seekers. Use when the user wants to create skills from documentation, repos, PDFs, videos, or other knowledge sources.

yusufkaraaslan/Skill_Seekers · 38 tokens

stuck

Diagnoses a broken course setup by reading the folder, so the student never has to describe the problem in English. Takes no argument. Reports which class they are on and which files are filled, then names one blocker and one fix: Claude Code opened at the wrong level, .claude/skills/ missing, skills not loading…

mshadmanrahman/claude-for-designers · 161 tokens

wrap-up

Saves today's work session as a four-line entry (did, decided, open, next) at the top of the project's log.md, after the student confirms it, so a fresh chat can continue tomorrow with /pick-up. Writes to projects/ /log.md or career-vault/log.md, one entry per project touched, never to new-client. Use when the student…

mshadmanrahman/claude-for-designers · 104 tokens

pick-up

Reads the newest entry of a project's log.md and tells the student where they left off: what they did and decided, what is open, and the next step. Takes an optional project name. With several projects and no name, shows a menu of each project's last entry. Read only. Use when the student says pick up, where did I…

mshadmanrahman/claude-for-designers · 93 tokens

grill-me

One move you can run on anything: point grill-me at a target and it makes you defend your thinking from first principles until the true matter is clear. Point it at your working contract and it rewrites the weak lines in place. Point it at a brief and it produces a Requirements Handshake. Point it at research, an…

mshadmanrahman/claude-for-designers · 119 tokens