v4.0 to v3.0

46 added, 119 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: articles-longform
- description: Publishes and manages long-form articles on X/Twitter using the Premium+ article editor. Supports rich formatting, embeds, drafts, content repurposing, and thread-to-article conversion. Use when users want to publish articles, convert threads to long-form, or manage article content on X.
+ description: Publishes long-form articles on X/Twitter using the Premium+ article editor. Creates articles with titles, body content, and cover images, saves drafts, lists published articles, and retrieves article analytics. Use when users want to publish, draft, or manage articles on X.
license: MIT
metadata:
author: nichxbt
- version: "4.0"
+ version: "3.0"
---
# Articles & Long-Form Content
- Browser console scripts for publishing and managing long-form articles on X/Twitter. Requires Premium+ subscription for article publishing.
+ Browser automation for publishing and managing long-form articles on X/Twitter. Requires Premium+ subscription.
## Script Selection
| Goal | File | Navigate to |
|------|------|-------------|
- | Publish/draft articles | `src/articlePublisher.js` | `x.com/compose/article` |
- | Convert tweets → threads | `src/threadComposer.js` | `x.com/USERNAME` |
- | Convert tweets → blog outlines | `src/contentRepurposer.js` | `x.com/USERNAME` |
- | Convert tweets → tweet storms | `src/contentRepurposer.js` | `x.com/USERNAME` |
- | Analyze article-worthy content | `src/tweetPerformance.js` | `x.com/USERNAME` |
+ | Publish or draft an article | `src/articlePublisher.js` | `x.com/compose/article` |
+ | List published articles | `src/articlePublisher.js` | `x.com/USERNAME/articles` |
+ | Get article analytics | `src/articlePublisher.js` | Article URL |
## Article Publisher
**File:** `src/articlePublisher.js`
- ### How to Use
-
- 1. Navigate to `x.com/compose/article`
- 2. Open DevTools (F12) → Console
- 3. Paste the script → Enter
-
- ### Features
-
- - Set article title and body content
- - Add cover image
- - Save as draft
- - Publish immediately
- - Rich text formatting support (headers, bold, italics, lists)
- - Media embed support
-
- ## Content Repurposer for Long-Form
-
- **File:** `src/contentRepurposer.js`
-
- The content repurposer includes a `toBlog(i)` function that generates blog/article outlines from your existing tweets — perfect for converting your best-performing tweets into full articles.
-
- ### How to Use
-
- 1. Navigate to your profile page
- 2. Paste the script
- 3. Run `XActions.scan()` to collect your tweets
- 4. Run `XActions.toBlog(i)` on any tweet index to generate an article outline
-
- ### Generated Outline Includes
-
- - Article title derived from tweet content
- - Subtitle with engagement context
- - Section headings from each sentence
- - Key takeaways section
- - SEO keyword suggestions
- - Estimated word count
- - Call to action linking back to original tweet
-
- ## Thread Composer for Long-Form
-
- **File:** `src/threadComposer.js`
-
- When an article is too heavy, threads are the lightweight alternative for long-form content on X.
-
- ### Controls
-
- - `XActions.create(topic, points)` — Generate a thread outline
- - `XActions.preview()` — Preview all parts
- - `XActions.post()` — Post the thread
- - `XActions.export()` — Download thread data
-
- ## DOM Selectors
+ Puppeteer-based module for creating, drafting, listing, and analyzing long-form articles.
- | Element | Selector | Notes |
- |---------|----------|-------|
- | Article compose | `a[href="/compose/article"]` | Navigation link |
- | Title input | `[data-testid="articleTitle"]` | Article title field |
- | Body editor | `[data-testid="articleBody"]` | Rich text editor |
- | Publish button | `[data-testid="articlePublish"]` | Publish article |
- | Draft save | `[data-testid="articleSaveDraft"]` | Save as draft |
- | Cover image | `[data-testid="articleCoverImage"]` | Add cover photo |
- | Format toolbar | `[data-testid="articleToolbar"]` | Formatting options |
+ ### Functions
- ## Content Strategy for Articles
+ | Function | Purpose |
+ |----------|---------|
+ | `publishArticle(page, { title, body, coverImage? })` | Publish with optional cover image |
+ | `saveDraft(page, { title, body })` | Save article as draft |
+ | `getArticles(page, username)` | List all published articles for a user |
+ | `getArticleAnalytics(page, articleUrl)` | Get likes, reposts, views for an article |
- ### When to write an article vs thread vs tweet
+ ### How It Works
- | Format | Best For | Engagement Pattern |
- |--------|----------|--------------------|
- | **Tweet** (< 280 chars) | Hot takes, questions, announcements | Highest reach, lowest depth |
- | **Thread** (3-15 tweets) | Tutorials, stories, analysis | High reach + depth |
- | **Article** (500+ words) | Deep dives, research, guides | Lower reach, highest authority |
+ 1. Navigates to `x.com/compose/article`
+ 2. Types title into the title field, body into the rich text editor
+ 3. Optionally uploads a cover image via file chooser
+ 4. Clicks Publish or Save Draft
+ 5. Returns success status with metadata (title, body length, timestamp)
- ### Article workflow using XActions
+ ### Usage (Node.js / Puppeteer)
- 1. **Identify article-worthy content:** Run `src/tweetPerformance.js` to find your highest-engagement tweets
- 2. **Generate outline:** Use `src/contentRepurposer.js` → `XActions.toBlog(i)` on top tweets
- 3. **Expand into article:** Use the generated outline as a skeleton
- 4. **Publish:** Use `src/articlePublisher.js` to publish on X
- 5. **Promote:** Create a thread summary with `src/threadComposer.js` linking to the article
- 6. **Track:** Monitor with `src/tweetPerformance.js`
+ ```javascript
+ import { publishArticle, saveDraft } from './src/articlePublisher.js';
- ### Repurposing pipeline
+ await publishArticle(page, {
+ title: 'My Article',
+ body: 'Full article content...',
+ coverImage: '/path/to/cover.jpg', // optional
+ });
- ```
- Tweet (high engagement)
- ↓ contentRepurposer.js → toBlog()
- Article outline
- ↓ Write full article
- Published article
- ↓ contentRepurposer.js → toThread()
- Promotional thread
- ↓ contentRepurposer.js → toQuoteTemplates()
- Quote-retweet variations for ongoing promotion
+ await saveDraft(page, { title: 'Draft', body: 'Content...' });
```
- ## Prerequisites
+ ## DOM Selectors
- - **Article publishing:** Requires Premium+ subscription ($16/mo)
- - **Thread composer:** No special subscription needed
- - **Content repurposer:** No special subscription needed
+ | Element | Selector |
+ |---------|----------|
+ | Title input | `[data-testid="articleTitle"]` |
+ | Body editor | `[data-testid="articleBody"]` |
+ | Publish button | `[data-testid="articlePublish"]` |
+ | Save draft | `[data-testid="articleSaveDraft"]` |
+ | Cover image | `[data-testid="articleCoverImage"]` |
+ | Article card | `[data-testid="articleCard"]` |
- ## Article Best Practices
+ ## Prerequisites & Limits
- - **Cover image:** Always include one — articles with covers get 3x more clicks
- - **First paragraph:** Hook the reader in the first 2 sentences
- - **Length:** 800-2000 words performs best on X
- - **Formatting:** Use headers every 200-300 words for scanability
- - **Embeds:** Include your own tweets as embeds for engagement
- - **CTA:** End with a clear call to action (follow, subscribe, share)
+ - **Premium+ subscription** ($16/mo) required for article publishing
+ - Cover images: JPEG/PNG, under 5MB
+ - 3s delay after navigation, 5s wait after publish to confirm
## Troubleshooting
| Problem | Solution |
|---------|----------|
- | "Compose article" not available | Requires Premium+ subscription |
- | Article won't publish | Check for empty title or body — both are required |
- | Formatting lost on publish | Use the built-in toolbar, not HTML |
- | Draft not saving | Check network connection — drafts auto-save every 30s |
- | Article not showing in timeline | Articles may take a few minutes to appear in followers' feeds |
- | Cover image upload fails | Image must be JPEG/PNG, under 5MB |
- | Script can't find article editor | Ensure you're on `x.com/compose/article`, not the tweet compose box |
-
- ## Related Skills
-
- - **content-posting** — Tweet and thread creation
- - **analytics-insights** — Track article performance
- - **creator-monetization** — Articles drive subscriber interest
- - **growth-automation** — Promote articles for maximum reach
+ | "Premium+ required" error | Article compose requires Premium+ subscription |
+ | Cover image upload fails | Check file format (JPEG/PNG) and size (< 5MB) |
+ | Article not appearing in feeds | May take a few minutes to surface |
+ | Empty title/body error | Both fields are required to publish |