Blog
A content creation toolkit for drafting, editing, optimizing, scheduling, and managing blog content workflows — all from the command line with timestamped local logging.
Commands
| Command | Description |
|---|
| INLINECODE0 | Log a draft idea or snippet. Without args, shows recent drafts |
| INLINECODE1 |
Record an editing pass or revision note. Without args, shows recent edits |
|
blog optimize <input> | Log SEO or content optimization notes. Without args, shows recent optimizations |
|
blog schedule <input> | Record a publication schedule entry. Without args, shows recent schedules |
|
blog hashtags <input> | Log hashtag sets for social promotion. Without args, shows recent hashtag entries |
|
blog hooks <input> | Record attention hooks or opening lines. Without args, shows recent hooks |
|
blog cta <input> | Log call-to-action ideas. Without args, shows recent CTAs |
|
blog rewrite <input> | Record a rewrite or major revision. Without args, shows recent rewrites |
|
blog translate <input> | Log a translation task or result. Without args, shows recent translations |
|
blog tone <input> | Record tone/voice notes for a piece. Without args, shows recent tone entries |
|
blog headline <input> | Log headline options and A/B test ideas. Without args, shows recent headlines |
|
blog outline <input> | Record a post outline or structure. Without args, shows recent outlines |
|
blog stats | Show summary statistics across all entry types |
|
blog search <term> | Search across all log entries for a keyword |
|
blog recent | Show the 20 most recent activity entries |
|
blog status | Health check — version, data dir, entry count, disk usage, last activity |
|
blog export <fmt> | Export all data in json, csv, or txt format |
|
blog help | Show all available commands |
|
blog version | Print version (v2.0.0) |
Each content command (draft, edit, optimize, etc.) works the same way:
- - With arguments: saves the entry with a timestamp to its dedicated
.log file and records it in activity history - Without arguments: displays the 20 most recent entries from that command's log
Data Storage
All data is stored locally in plain-text log files:
CODEBLOCK0
Each entry is stored as YYYY-MM-DD HH:MM|<value> for easy parsing and export.
Requirements
- - Bash 4.0+ (uses
set -euo pipefail) - Standard UNIX utilities:
date, wc, du, grep, head, tail, INLINECODE28 - No external dependencies or API keys required
- Works offline — all data stays on your machine
When to Use
- 1. Blog content pipeline — Track a post from draft → outline → edit → optimize → schedule in one place with timestamps, so you always know where each piece stands
- SEO workflow — Log optimization notes, headline variants, and hashtag sets for each post, then search or export them later for analysis
- Editorial calendar — Use
schedule to record publication dates and recent to see upcoming deadlines at a glance - Multi-language content — Track translations with
translate, tone adjustments with tone, and rewrites with rewrite to manage localized content - Social media prep — Build a library of hooks, CTAs, and hashtag sets that you can search and reuse across posts
Examples
Full blog post workflow
CODEBLOCK1
Social media preparation
CODEBLOCK2
Review and export
CODEBLOCK3
Rewrite and translate
CODEBLOCK4
Output
All commands print confirmation to stdout. Data is persisted in ~/.local/share/blog/. Use blog stats for an overview, blog search <term> to find specific entries, or blog export <fmt> to extract all data as JSON, CSV, or plain text.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
博客
一个用于起草、编辑、优化、排期和管理博客内容工作流的内容创作工具包——全部通过命令行完成,并附带带时间戳的本地日志记录。
命令
| 命令 | 描述 |
|---|
| blog draft <输入> | 记录草稿想法或片段。无参数时显示最近草稿 |
| blog edit <输入> |
记录编辑过程或修订说明。无参数时显示最近编辑 |
| blog optimize <输入> | 记录SEO或内容优化说明。无参数时显示最近优化 |
| blog schedule <输入> | 记录发布排期条目。无参数时显示最近排期 |
| blog hashtags <输入> | 记录社交媒体推广的标签集。无参数时显示最近标签条目 |
| blog hooks <输入> | 记录吸引注意力的钩子或开篇语句。无参数时显示最近钩子 |
| blog cta <输入> | 记录行动号召创意。无参数时显示最近CTA |
| blog rewrite <输入> | 记录重写或重大修订。无参数时显示最近重写 |
| blog translate <输入> | 记录翻译任务或结果。无参数时显示最近翻译 |
| blog tone <输入> | 记录某篇文章的语气/风格说明。无参数时显示最近语气条目 |
| blog headline <输入> | 记录标题选项和A/B测试创意。无参数时显示最近标题 |
| blog outline <输入> | 记录文章大纲或结构。无参数时显示最近大纲 |
| blog stats | 显示所有条目类型的汇总统计 |
| blog search <关键词> | 在所有日志条目中搜索关键词 |
| blog recent | 显示最近20条活动条目 |
| blog status | 健康检查——版本、数据目录、条目数、磁盘使用、最近活动 |
| blog export <格式> | 以json、csv或txt格式导出所有数据 |
| blog help | 显示所有可用命令 |
| blog version | 打印版本号(v2.0.0) |
每个内容命令(draft、edit、optimize等)的工作方式相同:
- - 带参数:将条目连同时间戳保存到专用的.log文件,并记录到活动历史中
- 无参数:显示该命令日志中最近20条条目
数据存储
所有数据均以纯文本日志文件形式本地存储:
~/.local/share/blog/
├── draft.log # 草稿想法和片段
├── edit.log # 编辑说明和修订
├── optimize.log # SEO/内容优化记录
├── schedule.log # 发布排期条目
├── hashtags.log # 社交媒体标签集
├── hooks.log # 吸引注意力的钩子/开篇语句
├── cta.log # 行动号召创意
├── rewrite.log # 重大修订记录
├── translate.log # 翻译任务和结果
├── tone.log # 语气/风格说明
├── headline.log # 标题选项和A/B创意
├── outline.log # 文章大纲和结构
└── history.log # 带时间戳的统一活动日志
每条条目存储为YYYY-MM-DD HH:MM|<值>格式,便于解析和导出。
要求
- - Bash 4.0+(使用set -euo pipefail)
- 标准UNIX工具:date、wc、du、grep、head、tail、cat
- 无需外部依赖或API密钥
- 可离线工作——所有数据保留在本地机器上
使用场景
- 1. 博客内容管线——在单一位置带时间戳追踪文章从草稿→大纲→编辑→优化→排期的全过程,随时掌握每篇文章的进度
- SEO工作流——记录每篇文章的优化说明、标题变体和标签集,后续可搜索或导出进行分析
- 编辑日历——使用schedule记录发布日期,使用recent一目了然查看即将到来的截止日期
- 多语言内容——使用translate追踪翻译,使用tone调整语气,使用rewrite管理重写,以管理本地化内容
- 社交媒体准备——构建钩子、CTA和标签集的素材库,可在多篇文章中搜索和复用
示例
完整博客文章工作流
bash
从草稿想法开始
blog draft 远程开发者的10个效率技巧——列表形式
创建大纲
blog outline 引言(钩子)→ 10个技巧及示例 → CTA → 结论
编写标题选项
blog headline 选项A:真正有效的10个技巧 | 选项B:远程开发者效率指南
记录编辑说明
blog edit 精简了引言段落,为技巧3和7添加了代码示例
优化SEO
blog optimize 目标关键词:远程开发者效率,密度1.2%,已添加元描述
排期发布
blog schedule 2024年4月15日09:00 UTC发布——同步发布到Dev.to和Medium
社交媒体准备
bash
创建标签集
blog hashtags #远程工作 #开发者 #效率 #编程 #开发技巧
为社交媒体帖子编写钩子
blog hooks 大多数开发者每天浪费2小时在上下文切换上。以下是解决方法。
添加CTA
blog cta 下载我们的免费远程工作清单——链接在简介中
设定语气
blog tone 对话式,略带非正式,使用第二人称(你/你的)
查看和导出
bash
搜索关于某个主题的条目
blog search 效率
查看最近活动
blog recent
查看所有类别的统计
blog stats
以JSON格式导出所有内容用于备份
blog export json
快速健康检查
blog status
重写和翻译
bash
记录重大重写
blog rewrite 引言部分全面改写——新角度聚焦数据
追踪翻译
blog translate EN → ES:效率文章已翻译,1800词,由Maria审阅
输出
所有命令在stdout打印确认信息。数据持久化存储在~/.local/share/blog/。使用blog stats查看概览,blog search <关键词>查找特定条目,或使用blog export <格式>以JSON、CSV或纯文本格式导出所有数据。
由BytesAgain提供 | bytesagain.com | hello@bytesagain.com