Agent skill
Articles longform
Compose, preview, publish, and manage long‑form Articles on X/Twitter. Premium+ feature. Includes article creation, formatting, media insertion, and...
New to this? An agent skill is a file of instructions your AI assistant follows for one job. The text above is written for the assistant. How to use a skill
What it does
Articles longform is a writing skill from nirholas/
In short, it gives your assistant rules for clear, structured writing.
The file is 89 lines long and is set out in parts such as “Script Selection”, “Article Publisher”, “Features” and “How to Use”.
It is plain instructions, with no code to run.
When to use it
Reach for it when you are drafting or editing text and want it in a set style.
Everything it needs is in this one file.
It does not ask for special tools.
Safety check
Our checker read all 89 lines before we listed it.
It found no attack techniques, no hidden text and no steps that switch off your assistant's safety or send your data away.
It flagged nothing else to watch for.
The text links to no outside sites.
It is shared under the Apache‑2.0 license.
Still read it before you use it, like any instructions you give your AI.
Open in the appOriginal on GitHub
What is inside
- Script Selection
- Article Publisher
- Features
- How to Use
- Controls
- DOM Selectors
- Content Strategy
- Thread‑to‑Article pipeline
How to use it
- Claude Code: save the text as
.claude/skills/articles-longform/SKILL.mdin your project. Claude reads it when a task needs it. - Claude, ChatGPT or Gemini: tap Copy skill and paste it into the chat. It arrives with a short line asking the assistant to use it.
- Cursor and other agents: add it to the project rules or instructions.
Read the full guide to using an agent skill
Want your own? How to write an agent skill that works
The full skill
--- name: articles-longform description: Compose, preview, publish, and manage long-form Articles on X/Twitter. Premium+ feature. Includes article creation, formatting, media insertion, and performance tracking. Use when users want to write, publish, manage, or analyze X Articles. license: Apache-2.0 metadata: author: nichxbt version: "4.0" --- # 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 | `browser/contentRepurposer.js` | `x.com/USERNAME` | | Track article performance | `browser/tweetPerformance.js` | `x.com/USERNAME` | | Generate blog outline | `browser/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 `browser/tweetPerformance.js` to find your best-performing threads 2. Run `browser/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 ### SEO and reach optimization - Use `browser/contentRepurposer.js` -> `XActions.toBlog(i)` for keyword suggestions - Articles get indexed by Google (unlike regular tweets) - Include 1-2 images per 500 words for better engagement - Link back to your profile and other articles ## Requirements - X Premium+ subscription ($16/mo) required - Articles support rich text, images, and embedded tweets - No word count limit - Articles are publicly accessible (even to non-X users) - Articles have their own URL structure: `x.com/USERNAME/articles/ID` ## Notes - Articles persist permanently (unlike tweets which get buried) - Google indexes X Articles -- good for SEO - Cover image recommended for social sharing preview - Draft auto-saves periodically
Copyright (c) nirholas and contributors.
Published under the Apache License 2.0, which you can read in full there.
Shown as published on GitHub, with credit and a link to the original.
Read it before you use it.
More skills
Account backup
Export and backup your X/Twitter account data, tweets, likes, bookmarks, followers, and following, as downloadable JSON. Also triggers X's official data archive download.
Blocking muting management
Mass block, unblock, mute, unmute, and manage accounts on X/Twitter.
Community health monitoring
Audits follower quality, engagement authenticity, unfollower patterns, and network efficiency to produce a community health score.
Try it in your browser
Today's AI news, one card per swipe.
Free to start.