🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub✦ BytesAgain

Tweet Generator

by @xueyetianya

Craft tweets, threads, and viral hooks with schedule tips. Use when drafting copy, editing threads, optimizing engagement, scheduling posts.

Versionv2.0.1
Downloads698
Installs1
TERMINAL
clawhub install tweet-generator

πŸ“– About This Skill


version: "2.0.0" name: tweet-generator description: "Craft tweets, threads, and viral hooks with schedule tips. Use when drafting copy, editing threads, optimizing engagement, scheduling posts." author: BytesAgain homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills

Tweet Generator

A content creation toolkit for social media writers. Draft tweets, edit copy, optimize for engagement, schedule posts, generate hashtags, craft hooks, write CTAs, rewrite content, translate text, adjust tone, create headlines, and build outlines β€” all with local logging and history.

Commands

| Command | Description | |---------|-------------| | draft | Draft a tweet or content piece (saves to log; no args shows recent drafts) | | edit | Edit and refine existing content | | optimize | Optimize content for engagement and reach | | schedule | Log a scheduled post with timestamp | | hashtags | Generate or log hashtag ideas for content | | hooks | Craft attention-grabbing opening hooks | | cta | Create call-to-action lines | | rewrite | Rewrite content in a different style or angle | | translate | Translate content to another language | | tone | Adjust the tone of content (formal, casual, urgent, etc.) | | headline | Generate headline variations | | outline | Build a content outline or structure | | stats | Show summary statistics across all command logs | | export | Export all data in json, csv, or txt format | | search | Search across all logs for a keyword | | recent | Show the 20 most recent activity entries | | status | Health check β€” version, data dir, entry count, disk usage | | help | Show all available commands | | version | Display current version (v2.0.0) |

Data Storage

All data is stored locally in ~/.local/share/tweet-generator/:

  • draft.log, edit.log, optimize.log, etc. β€” One log file per command, storing timestamped entries in YYYY-MM-DD HH:MM|content format
  • history.log β€” Global activity log tracking every command executed
  • export.json / export.csv / export.txt β€” Generated export files
  • Each command called without arguments shows the 20 most recent entries from its log. Data never leaves your machine.

    Requirements

  • Bash β‰₯ 4.0 (uses set -euo pipefail and local variables)
  • coreutils β€” date, wc, du, head, tail, grep, basename, mkdir
  • No API keys, no internet connection, no external dependencies
  • When to Use

    1. Daily content creation β€” Use draft to capture tweet ideas throughout the day, then edit and optimize before posting 2. Content calendar planning β€” Use schedule to log planned posts with timestamps, then recent to review upcoming content 3. Engagement optimization β€” Use hashtags, hooks, and cta to systematically improve each piece of content before publishing 4. Multilingual content β€” Use translate and tone to adapt content for different audiences and platforms 5. Content audit and analysis β€” Use stats to see your output volume, search to find past content on a topic, and export to back up everything

    Examples

    # Draft a new tweet
    tweet-generator draft "Just shipped v2.0 β€” faster, cleaner, better. Here's what changed:"

    Optimize content for engagement

    tweet-generator optimize "We just launched our new product"

    Generate hashtag ideas

    tweet-generator hashtags "AI productivity tools for developers"

    Craft an opening hook

    tweet-generator hooks "Why most startups fail at content marketing"

    Rewrite in a different style

    tweet-generator rewrite "Our Q4 results exceeded expectations by 40%"

    View all recent activity

    tweet-generator recent

    Export everything as JSON

    tweet-generator export json

    Search for past content about a topic

    tweet-generator search "product launch"

    Check tool health and stats

    tweet-generator status tweet-generator stats

    Tips

  • Every command doubles as a log β€” call it with text to save, call it empty to review history
  • Use export json periodically to back up your content library
  • Chain commands: draft β†’ edit β†’ optimize β†’ hashtags for a complete workflow
  • Use search to find and repurpose old content ideas
  • stats gives you a bird's-eye view of your content output over time

  • Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

    ⚑ When to Use

    TriggerAction
    2. **Content calendar planning** β€” Use `schedule` to log planned posts with timestamps, then `recent` to review upcoming content
    3. **Engagement optimization** β€” Use `hashtags`, `hooks`, and `cta` to systematically improve each piece of content before publishing
    4. **Multilingual content** β€” Use `translate` and `tone` to adapt content for different audiences and platforms
    5. **Content audit and analysis** β€” Use `stats` to see your output volume, `search` to find past content on a topic, and `export` to back up everything

    πŸ’‘ Examples

    # Draft a new tweet
    tweet-generator draft "Just shipped v2.0 β€” faster, cleaner, better. Here's what changed:"

    Optimize content for engagement

    tweet-generator optimize "We just launched our new product"

    Generate hashtag ideas

    tweet-generator hashtags "AI productivity tools for developers"

    Craft an opening hook

    tweet-generator hooks "Why most startups fail at content marketing"

    Rewrite in a different style

    tweet-generator rewrite "Our Q4 results exceeded expectations by 40%"

    View all recent activity

    tweet-generator recent

    Export everything as JSON

    tweet-generator export json

    Search for past content about a topic

    tweet-generator search "product launch"

    Check tool health and stats

    tweet-generator status tweet-generator stats

    πŸ“‹ Tips & Best Practices

  • Every command doubles as a log β€” call it with text to save, call it empty to review history
  • Use export json periodically to back up your content library
  • Chain commands: draft β†’ edit β†’ optimize β†’ hashtags for a complete workflow
  • Use search to find and repurpose old content ideas
  • stats gives you a bird's-eye view of your content output over time

  • Powered by BytesAgain | bytesagain.com | hello@bytesagain.com