New advertisers: 50% off your first month with code FIRSTMONTHSee slots
softaworks avatar

command-viral-tweet

Turns a raw tweet idea into three optimized X posts with a posting strategy.

GitHub stars
2.7K
View on GitHub

What it does

  • Adds the /viral-tweet command 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-toolkit

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install command-viral-tweet@agent-toolkit

Run 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

  1. Switch to Marketplaces tab (use arrow keys or Tab)
  2. Select agent-toolkit, press Enter
  3. Browse and select the plugin(s) you want to install
  4. 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:

  1. Run /plugin in Claude Code
  2. Switch to Marketplaces tab
  3. Select agent-toolkit
  4. 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

CategorySkillDescription
🤖 AI ToolscodexAdvanced code analysis with GPT-5.2
🤖 AI ToolsgeminiLarge-scale review (200k+ context)
🤖 AI ToolsperplexityWeb search & research
🔮 Metaagent-md-refactorRefactor bloated agent instruction files
🔮 Metacommand-creatorCreate Claude Code slash commands
🔮 Metaplugin-forgeBuild Claude Code plugins & manifests
🔮 Metaskill-judgeEvaluate skill design quality
📝 Documentationbackend-to-frontend-handoff-docsAPI handoff docs for frontend
📝 Documentationc4-architectureC4 architecture diagrams with Mermaid
📝 Documentationcrafting-effective-readmesWrite effective README files
📝 Documentationdraw-ioCreate & edit draw.io diagrams
📝 DocumentationexcalidrawWork with Excalidraw diagrams
📝 Documentationfrontend-to-backend-requirementsDocument API requirements
📝 Documentationmarp-slideProfessional presentation slides
📝 Documentationmermaid-diagramsSoftware diagrams with Mermaid
📝 Documentationwriting-clearly-and-conciselyClear, professional writing
🎨 Design & Frontenddesign-system-starterCreate design systems
🎨 Design & FrontendmuiMaterial-UI v7 patterns
🎨 Design & Frontendopenapi-to-typescriptConvert OpenAPI to TypeScript
🎨 Design & Frontendreact-devType-safe React 18-19 with TypeScript
🎨 Design & Frontendreact-useeffectReact useEffect best practices
🛠️ Developmentdatabase-schema-designerDesign robust database schemas
🛠️ Developmentdependency-updaterSmart dependency management
🛠️ Developmentnaming-analyzerSuggest better variable/function names
🛠️ Developmentlesson-learnedExtract SE lessons from recent code changes
🛠️ Developmentreducing-entropyMinimize codebase size
🛠️ Developmentsession-handoffSeamless AI session transfers
🎯 Planninggame-changing-featuresFind 10x product opportunities
🎯 PlanninggepettoDetailed implementation planning
🎯 Planningrequirements-clarityClarify requirements before coding
🎯 Planningship-learn-nextTurn learning into actionable reps
👔 Professionaldaily-meeting-updateInteractive daily standup generator
👔 Professionaldifficult-workplace-conversationsNavigate difficult conversations
👔 Professionalfeedback-masteryDeliver constructive feedback
👔 Professionalprofessional-communicationTechnical communication guide
🧪 Testingqa-test-plannerComprehensive QA test planning
📦 Gitcommit-workHigh-quality git commits
🔧 Utilitiesdatadog-cliDebug with Datadog logs & metrics
🔧 Utilitiesdomain-name-brainstormerGenerate & check domain names
🔧 UtilitieshumanizerRemove AI writing patterns
🔧 Utilitiesmeme-factoryGenerate memes with API
🔧 UtilitiesjiraNatural language Jira interaction
🔧 Utilitiesweb-to-markdownConvert 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:

AgentDescription
ascii-ui-mockup-generatorVisualize UI concepts through ASCII mockups
codebase-pattern-finderFind similar implementations and patterns
communication-excellence-coachEmail refinement, tone calibration, roleplay
general-purposeDefault agent for complex multi-step tasks
mermaid-diagram-specialistCreate flowcharts, sequence diagrams, ERDs
ui-ux-designerResearch-backed UI/UX design feedback

Slash Commands

Reusable workflows invoked with /command-name:

CommandDescription
/codex-planCreate implementation plans using Codex 5.2
/compose-emailDraft professional emails
/explain-changes-mental-modelBuild mental model of code changes
/explain-pr-changesGenerate PR summaries
/sync-branchSync feature branch with main
/sync-skills-readmeUpdate README skills table
/viral-tweetOptimize 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 examples
  • scripts/ - Helper scripts for automation (optional)
  • references/ - Supporting documentation (optional)

🤝 Contributing

Contributions are welcome! When adding new skills:

  1. Follow the Agent Skills format
  2. Include both SKILL.md (for agents) and README.md (for users)
  3. Add YAML frontmatter to SKILL.md with name: and description: fields
  4. 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

Similar to command-viral-tweet

More Social Media