
command-viral-tweet
Turns a raw tweet idea into three optimized X posts with a posting strategy.
- GitHub stars
- 2.7K
What it does
- Adds the
/viral-tweetcommand that analyzes engagement drivers in a raw tweet idea - Generates 3 optimized versions of the post, each paired with a posting strategy
- Designed for creators who want to sharpen tweet drafts for X before publishing
Transform a raw tweet idea into an optimized viral post for X. Analyzes engagement drivers and generates 3 optimized versions with posting strategy.
Add marketplace
/plugin marketplace add softaworks/agent-toolkitRun it inside Claude Code once, then install the plugin below.
Install
/plugin install command-viral-tweet@agent-toolkitRun it inside Claude Code after adding the marketplace.
Files
Viral Tweet Optimizer
You are a viral tweet optimization agent. Transform the provided tweet idea into something optimized for maximum engagement on X's algorithm.
Input
The user's tweet idea: $ARGUMENTS
If no argument provided, ask the user for their tweet idea or topic.
How the X Algorithm Works
The For You feed is powered by a Grok-based transformer that predicts engagement probabilities for each tweet. Maximize the weighted score:
Final Score = Σ (weight × P(action))
Positive signals (higher weights):
- P(like) — immediate resonance
- P(reply) — conversation triggers
- P(repost) — share-worthy content
- P(quote) — content worth adding to
- P(click) — curiosity hooks
- P(dwell) — stops the scroll
- P(share) — off-platform worthy
- P(follow_author) — "I need more of this"
Negative signals (hurt your score):
- P(not_interested) — boring, irrelevant
- P(block_author) — annoying, spammy
- P(mute_author) — too much, too often
- P(report) — rule-breaking vibes
Optimization Framework
Optimize across these dimensions:
1. Hook Engineering (first 7 words)
- Pattern interrupt: break expectations
- Curiosity gap: open a loop that demands closing
- Specificity: concrete > abstract ("$47M" not "millions")
- Contradiction: challenge assumed beliefs
2. Emotional Resonance
Map to high-arousal emotions that drive action:
- Awe ("this changes everything")
- Anger (righteous, not toxic)
- Anxiety (FOMO, urgency)
- Surprise (unexpected reveals)
- Validation ("finally someone said it")
Avoid low-arousal states: sadness, contentment, boredom
3. Reply Maximization
Build in reply triggers:
- Hot takes that demand response
- Questions (real or rhetorical)
- Intentional incompleteness ("but there's a catch...")
- Ranking/listing that people want to argue with
- Polarizing framing on non-toxic topics
4. Repost Psychology
Make it identity-reinforcing:
- "This is the kind of person I am"
- Makes the sharer look smart/informed/funny
- Tribal signaling without being exclusionary
- Quotable standalone value
5. Dwell Time Optimization
- Information density that rewards re-reading
- Nested ideas that unfold
- Formatting that guides the eye (line breaks, spacing)
- Payoff that recontextualizes the hook
6. Negative Signal Avoidance
Never trigger:
- Spam patterns (excessive hashtags, @mentions, links in first tweet)
- Engagement bait that feels manipulative ("RETWEET IF...")
- Rage bait that makes people want to mute you
- Cringe that makes people embarrassed to be on the platform
Output Format
Provide:
ORIGINAL: [their tweet idea]
ANALYSIS:
- Current predicted engagement drivers: [what works]
- Current friction points: [what hurts it]
- Emotional register: [current vs optimal]
- Missing elements: [opportunities]
OPTIMIZED VERSION 1: [hook-focused rewrite] Why it works: [brief explanation]
OPTIMIZED VERSION 2: [reply-maximizing rewrite] Why it works: [brief explanation]
OPTIMIZED VERSION 3: [repost-optimizing rewrite] Why it works: [brief explanation]
RECOMMENDED: [which version + any hybrid suggestions]
POSTING STRATEGY:
- Best time framing: [if relevant]
- Thread potential: [yes/no + why]
- Media recommendation: [image/video/none + why]
- Follow-up engagement plays: [what to do after posting]
Style Guidelines
- Write like a human, not a marketer
- Lowercase is fine if it fits the voice
- Short sentences. Punchy.
- No cringe corporate-speak
- Match the author's authentic voice while amplifying it
- Weird > boring. Specific > generic. Confident > hedging.
Example Transformation
INPUT: "We just launched our new product after 6 months of work"
WEAK OUTPUT: "🚀 Excited to announce our AMAZING new product! 6 months in the making! Link in bio! #startup #launch"
STRONG OUTPUT: "6 months ago we deleted our codebase and mass-resigned the team.
today we mass-shipped.
the product that almost killed us is now live."
Why it works: opens with unexpected action (pattern interrupt), creates narrative tension, "mass-" repetition creates rhythm, ends with stakes + payoff, no links or hashtags in main tweet, invites curiosity about the story.
From the softaworks/agent-toolkit README
Softaworks Agent Skills
Opinionated skills shared by @leonardocouy for improving daily work efficiency with Claude Code. Skills are packaged instructions and scripts that extend agent capabilities across development, documentation, planning, and professional workflows.
Skills follow the Agent Skills format.
🧭 Quick Navigation
🚀 Installation • 📚 Available Skills • 🤖 Agents & Commands • 📖 Skill Structure • 🤝 Contributing • 📄 License • 🔗 Links
🚀 Installation
Quick Install (Recommended)
npx skills add softaworks/agent-toolkit
This method works with multiple AI coding agents (Claude Code, Codex, Cursor, AdaL, etc.)
Register as Plugin Marketplace
Run the following commands in Claude Code:
/plugin marketplace add softaworks/agent-toolkit
/plugin
Install Plugins
Option 1: Via Browse UI
- Switch to Marketplaces tab (use arrow keys or Tab)
- Select agent-toolkit, press Enter
- Browse and select the plugin(s) you want to install
- Select Install now
Option 2: Direct Install
# Install specific skill
/plugin install codex@agent-toolkit
/plugin install humanizer@agent-toolkit
# Install specific agent
/plugin install agent-codebase-pattern-finder@agent-toolkit
# Install specific command
/plugin install command-codex-plan@agent-toolkit
Option 3: Ask the Agent
Simply tell Claude Code:
Please install Skills from github.com/softaworks/agent-toolkit
Available Plugins
Each skill, agent, and command is an individual plugin that can be installed separately:
- Skills → See Available Skills for the full list
- Agents → See Agents (install as
agent-<name>@agent-toolkit) - Commands → See Slash Commands (install as
command-<name>@agent-toolkit)
Update Plugins
To update plugins to the latest version:
- Run
/pluginin Claude Code - Switch to Marketplaces tab
- Select agent-toolkit
- Choose Update marketplace
You can also Enable auto-update to get the latest versions automatically.
Manual Installation
For Claude Code (Manual) — Skills only
cp -r skills/<skill-name> ~/.claude/skills/
For claude.ai — Skills only
Add skills to project knowledge or paste SKILL.md contents into the conversation.
📚 Available Skills
| Category | Skill | Description |
|---|---|---|
| 🤖 AI Tools | codex | Advanced code analysis with GPT-5.2 |
| 🤖 AI Tools | gemini | Large-scale review (200k+ context) |
| 🤖 AI Tools | perplexity | Web search & research |
| 🔮 Meta | agent-md-refactor | Refactor bloated agent instruction files |
| 🔮 Meta | command-creator | Create Claude Code slash commands |
| 🔮 Meta | plugin-forge | Build Claude Code plugins & manifests |
| 🔮 Meta | skill-judge | Evaluate skill design quality |
| 📝 Documentation | backend-to-frontend-handoff-docs | API handoff docs for frontend |
| 📝 Documentation | c4-architecture | C4 architecture diagrams with Mermaid |
| 📝 Documentation | crafting-effective-readmes | Write effective README files |
| 📝 Documentation | draw-io | Create & edit draw.io diagrams |
| 📝 Documentation | excalidraw | Work with Excalidraw diagrams |
| 📝 Documentation | frontend-to-backend-requirements | Document API requirements |
| 📝 Documentation | marp-slide | Professional presentation slides |
| 📝 Documentation | mermaid-diagrams | Software diagrams with Mermaid |
| 📝 Documentation | writing-clearly-and-concisely | Clear, professional writing |
| 🎨 Design & Frontend | design-system-starter | Create design systems |
| 🎨 Design & Frontend | mui | Material-UI v7 patterns |
| 🎨 Design & Frontend | openapi-to-typescript | Convert OpenAPI to TypeScript |
| 🎨 Design & Frontend | react-dev | Type-safe React 18-19 with TypeScript |
| 🎨 Design & Frontend | react-useeffect | React useEffect best practices |
| 🛠️ Development | database-schema-designer | Design robust database schemas |
| 🛠️ Development | dependency-updater | Smart dependency management |
| 🛠️ Development | naming-analyzer | Suggest better variable/function names |
| 🛠️ Development | lesson-learned | Extract SE lessons from recent code changes |
| 🛠️ Development | reducing-entropy | Minimize codebase size |
| 🛠️ Development | session-handoff | Seamless AI session transfers |
| 🎯 Planning | game-changing-features | Find 10x product opportunities |
| 🎯 Planning | gepetto | Detailed implementation planning |
| 🎯 Planning | requirements-clarity | Clarify requirements before coding |
| 🎯 Planning | ship-learn-next | Turn learning into actionable reps |
| 👔 Professional | daily-meeting-update | Interactive daily standup generator |
| 👔 Professional | difficult-workplace-conversations | Navigate difficult conversations |
| 👔 Professional | feedback-mastery | Deliver constructive feedback |
| 👔 Professional | professional-communication | Technical communication guide |
| 🧪 Testing | qa-test-planner | Comprehensive QA test planning |
| 📦 Git | commit-work | High-quality git commits |
| 🔧 Utilities | datadog-cli | Debug with Datadog logs & metrics |
| 🔧 Utilities | domain-name-brainstormer | Generate & check domain names |
| 🔧 Utilities | humanizer | Remove AI writing patterns |
| 🔧 Utilities | meme-factory | Generate memes with API |
| 🔧 Utilities | jira | Natural language Jira interaction |
| 🔧 Utilities | web-to-markdown | Convert webpages to Markdown |
🤖 Agents & Commands
Requires Claude Code CLI — These agents and commands are exclusive to Claude Code users.
For full access, add the marketplace and install plugins:
/plugin marketplace add softaworks/agent-toolkit /plugin install codex@agent-toolkit
Agents
Specialized sub-agents that Claude Code can delegate tasks to:
| Agent | Description |
|---|---|
| ascii-ui-mockup-generator | Visualize UI concepts through ASCII mockups |
| codebase-pattern-finder | Find similar implementations and patterns |
| communication-excellence-coach | Email refinement, tone calibration, roleplay |
| general-purpose | Default agent for complex multi-step tasks |
| mermaid-diagram-specialist | Create flowcharts, sequence diagrams, ERDs |
| ui-ux-designer | Research-backed UI/UX design feedback |
Slash Commands
Reusable workflows invoked with /command-name:
| Command | Description |
|---|---|
/codex-plan | Create implementation plans using Codex 5.2 |
/compose-email | Draft professional emails |
/explain-changes-mental-model | Build mental model of code changes |
/explain-pr-changes | Generate PR summaries |
/sync-branch | Sync feature branch with main |
/sync-skills-readme | Update README skills table |
/viral-tweet | Optimize tweet ideas for X engagement |
📖 Skill Structure
Each skill contains:
SKILL.md- Detailed instructions for the agent (with YAML frontmatter)README.md- User-friendly documentation with examplesscripts/- Helper scripts for automation (optional)references/- Supporting documentation (optional)
🤝 Contributing
Contributions are welcome! When adding new skills:
- Follow the Agent Skills format
- Include both
SKILL.md(for agents) andREADME.md(for users) - Add YAML frontmatter to
SKILL.mdwithname:anddescription:fields - Update this README.md with a link to your skill
📄 License
MIT
🔗 Links
Details
- Marketplace
- softaworks/agent-toolkit
- Source
- dist/plugins/command-viral-tweet
- Category
- Commands
- Keywords
- commands, social-media, twitter, x, viral, engagement
- Listed since
- Apr 6, 2026
More from softaworks/agent-toolkit
All 56- commit-work
- crafting-effective-readmes
- daily-meeting-update
- database-schema-designer
- datadog-cli
- dependency-updater
- design-system-starter
- difficult-workplace-conversations
- domain-name-brainstormer
- draw-io
- excalidraw
- feedback-mastery
- frontend-to-backend-requirements
- game-changing-features
- gemini
- gepetto
- humanizer
- jira
- lesson-learned
- marp-slide
- meme-factory
- mermaid-diagrams
- mui
- naming-analyzer
Similar to command-viral-tweet
More Social Media
twitter-automationSkillinference-sh/skills1.7M installsCommand-line Twitter/X automation for posting, media uploads, likes, retweets, DMs, and follows via inference.sh.
twitter-algorithm-optimizerSkillcomposiohq/awesome-claude-skills5.3K installsRewrite of tweets using Twitter's open-source ranking insights to target engagement signals and reach.
socialPluginCaptainCrouton89/crouton-kit25 starsX (Twitter) posting, engagement, and growth tools — skills, commands, and northlight integration
x-algorithm-optimizerPluginshipshitdev/library39 starsOptimize X/Twitter content for algorithm engagement signals. Based on xai-org/x-algorithm's Grok tra
skillkit-social-mediaPluginrfxlamia/skillkit105 starsSocial media SEO optimization with 2025-proven strategies. Includes comprehensive CSV databases with 100+ caption formulas, thread structures, viral patterns, a
postizPluginanthropics/claude-plugins-official47.9K starsSocial media automation CLI for scheduling posts, managing integrations, uploading media, and tracking analytics across 28+ platforms including X, LinkedIn, Red