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 |
|---|
| INLINECODE0 | Draft a tweet or content piece (saves to log; no args shows recent drafts) |
| INLINECODE1 |
Edit and refine existing content |
|
optimize <text> | Optimize content for engagement and reach |
|
schedule <text> | Log a scheduled post with timestamp |
|
hashtags <text> | Generate or log hashtag ideas for content |
|
hooks <text> | Craft attention-grabbing opening hooks |
|
cta <text> | Create call-to-action lines |
|
rewrite <text> | Rewrite content in a different style or angle |
|
translate <text> | Translate content to another language |
|
tone <text> | Adjust the tone of content (formal, casual, urgent, etc.) |
|
headline <text> | Generate headline variations |
|
outline <text> | Build a content outline or structure |
|
stats | Show summary statistics across all command logs |
|
export <fmt> | Export all data in
json,
csv, or
txt format |
|
search <term> | 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 executedexport.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, INLINECODE40 - 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 - Content calendar planning — Use
schedule to log planned posts with timestamps, then recent to review upcoming content - Engagement optimization — Use
hashtags, hooks, and cta to systematically improve each piece of content before publishing - Multilingual content — Use
translate and tone to adapt content for different audiences and platforms - 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
CODEBLOCK0
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 - INLINECODE60 gives you a bird's-eye view of your content output over time
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
推文生成器
社交媒体写作者的内容创作工具包。起草推文、编辑文案、优化互动、安排发布、生成话题标签、设计钩子、撰写行动号召、重写内容、翻译文本、调整语气、创建标题和构建大纲——全部支持本地日志记录和历史查看。
命令
| 命令 | 描述 |
|---|
| draft <文本> | 起草推文或内容片段(保存至日志;无参数时显示最近草稿) |
| edit <文本> |
编辑和润色现有内容 |
| optimize <文本> | 优化内容以提升互动和传播 |
| schedule <文本> | 记录带时间戳的预定发布内容 |
| hashtags <文本> | 为内容生成或记录话题标签创意 |
| hooks <文本> | 撰写吸引眼球的开场钩子 |
| cta <文本> | 创建行动号召语句 |
| rewrite <文本> | 以不同风格或角度重写内容 |
| translate <文本> | 将内容翻译成其他语言 |
| tone <文本> | 调整内容语气(正式、随意、紧急等) |
| headline <文本> | 生成标题变体 |
| outline <文本> | 构建内容大纲或结构 |
| stats | 显示所有命令日志的汇总统计 |
| export <格式> | 以json、csv或txt格式导出所有数据 |
| search <关键词> | 在所有日志中搜索关键词 |
| recent | 显示最近20条活动记录 |
| status | 健康检查——版本、数据目录、条目数、磁盘使用 |
| help | 显示所有可用命令 |
| version | 显示当前版本(v2.0.0) |
数据存储
所有数据本地存储在~/.local/share/tweet-generator/目录中:
- - draft.log、edit.log、optimize.log等——每个命令对应一个日志文件,以YYYY-MM-DD HH:MM|内容格式存储带时间戳的条目
- history.log——全局活动日志,记录执行的每个命令
- export.json / export.csv / export.txt——生成的导出文件
每个命令无参数调用时显示其日志中最近20条记录。数据不会离开您的设备。
系统要求
- - Bash ≥ 4.0(使用set -euo pipefail和local变量)
- coreutils——date、wc、du、head、tail、grep、basename、mkdir
- 无需API密钥、无需网络连接、无需外部依赖
使用场景
- 1. 日常内容创作——使用draft全天捕捉推文创意,发布前使用edit和optimize进行优化
- 内容日历规划——使用schedule记录带时间戳的预定发布内容,然后使用recent查看即将发布的内容
- 互动优化——使用hashtags、hooks和cta系统性地改进每条发布内容
- 多语言内容——使用translate和tone为不同受众和平台调整内容
- 内容审计与分析——使用stats查看输出量,使用search查找过去关于某个主题的内容,使用export备份所有内容
示例
bash
起草新推文
tweet-generator draft 刚刚发布了v2.0——更快、更简洁、更好。以下是变化内容:
优化内容以提升互动
tweet-generator optimize 我们刚刚推出了新产品
生成话题标签创意
tweet-generator hashtags 面向开发者的AI生产力工具
撰写开场钩子
tweet-generator hooks 为什么大多数初创公司在内容营销上失败
以不同风格重写
tweet-generator rewrite 我们第四季度业绩超出预期40%
查看所有近期活动
tweet-generator recent
以JSON格式导出所有内容
tweet-generator export json
搜索过去关于某个主题的内容
tweet-generator search 产品发布
检查工具健康状态和统计
tweet-generator status
tweet-generator stats
提示
- - 每个命令同时作为日志——带文本调用可保存,空调用可查看历史记录
- 定期使用export json备份您的内容库
- 串联命令:draft → edit → optimize → hashtags形成完整工作流
- 使用search查找和重新利用旧内容创意
- stats让您鸟瞰内容输出的时间变化趋势
由BytesAgain提供 | bytesagain.com | hello@bytesagain.com