articles-longform

A set of browser scripts for creating and managing long-form Articles on X/Twitter, a feature for publishing posts longer than ordinary tweets. It also supports turning threads into articles and checking article performance.

In plain words
What is it for?
Use it to add titles, headings, formatted text, images, and cover media; save or publish articles; convert threads into articles; and track their performance.
Why use it?
Writing and maintaining a long article in X's editor can involve many separate formatting and media actions. These scripts collect those tasks in one workflow.

Skill for Claude CodeCodex

Part of the XActions plugin — 47 skills, 1 command, 6 agents, 1 MCP server 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/nirholas/xactions/articles-longform
Any agent
npx skills add nirholas/XActions --skill articles-longform
Clone the repo
git clone --depth 1 https://github.com/nirholas/XActions

Made for: Claude Code, Codex.

Or install XActions, the plugin that ships this one along with the rest of its 47 skills, 1 command, 6 agents, 1 MCP server.

Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 765 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.00053 $0.00765
Opus 5 $0.00026 $0.00382
Sonnet 5 $0.00011 $0.00153
Haiku 4.5 $0.00005 $0.00076

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

Security

Grade A, and why

articles-longform 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 3d 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.

skills/articles-longform/SKILL.md · 90 lines

How it starts

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

Articles & Longform

Browser console scripts for creating and managing X/Twitter Articles (Premium+ feature).

Script Selection

Goal File Navigate to
Publish an article src/articlePublisher.js x.com/compose/article
Convert thread to article src/contentRepurposer.js x.com/USERNAME
Track article performance src/tweetPerformance.js x.com/USERNAME
Generate blog outline src/contentRepurposer.js x.com/USERNAME

Article Publisher

File: src/articlePublisher.js

Assists with article composition on X's article editor.

Features

  • Title and subtitle insertion
  • Body text formatting (headings, bold, italic, lists)
  • Image and media embedding
  • Draft saving
  • Publish with cover image

How to Use

  1. Navigate to x.com/compose/article
  2. Open DevTools (F12) -> Console
  3. Paste the script -> Enter
  4. Use controls to compose

Controls

  • XActions.setTitle(text) -- Set article title
  • XActions.setSubtitle(text) -- Set subtitle
  • XActions.addParagraph(text) -- Add body paragraph
  • XActions.addHeading(text, level) -- Add heading (h2, h3)
  • XActions.addImage(url, alt) -- Insert image
  • XActions.preview() -- Preview formatted article
  • XActions.publish() -- Publish (with confirmation prompt)

DOM Selectors

Element Selector
Article editor [data-testid="articleEditor"]
Title field [data-testid="articleTitle"]
Body editor [data-testid="articleBody"]
Cover image [data-testid="articleCoverImage"]
Publish button [data-testid="articlePublishButton"]
Save draft [data-testid="articleSaveDraft"]

Content Strategy

Thread-to-Article pipeline

  1. Run src/tweetPerformance.js to find your best-performing threads
  2. Run src/contentRepurposer.js -> XActions.toBlog(i) to generate article outline
  3. Navigate to x.com/compose/article
  4. Use src/articlePublisher.js to format and publish
  5. Share the article link as a tweet for promotion

Read the full file on GitHub · 90 lines

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. 3d ago First seen · 90 lines · 53 tokens per session scan A 5d3e86c22112

Subscribe to this mod's changes

articles-longform is a skill published in the GitHub repository nirholas/XActions (496 stars, last pushed 5d ago), licensed Apache-2.0. It adds 53 tokens to every session and 765 once invoked, about $0.0003 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-30.