A content creation toolkit for drafting, editing, optimizing, scheduling, and managing blog content workflows — all from the command line with timestamped local logging.
| Command | Description |
|---|---|
| --------- | ------------- |
blog draft | Log a draft idea or snippet. Without args, shows recent drafts |
blog edit | Record an editing pass or revision note. Without args, shows recent edits |
blog optimize | Log SEO or content optimization notes. Without args, shows recent optimizations |
blog schedule | Record a publication schedule entry. Without args, shows recent schedules |
blog hashtags | Log hashtag sets for social promotion. Without args, shows recent hashtag entries |
blog hooks | Record attention hooks or opening lines. Without args, shows recent hooks |
blog cta | Log call-to-action ideas. Without args, shows recent CTAs |
blog rewrite | Record a rewrite or major revision. Without args, shows recent rewrites |
blog translate | Log a translation task or result. Without args, shows recent translations |
blog tone | Record tone/voice notes for a piece. Without args, shows recent tone entries |
blog headline | Log headline options and A/B test ideas. Without args, shows recent headlines |
blog outline | Record a post outline or structure. Without args, shows recent outlines |
blog stats | Show summary statistics across all entry types |
blog search | 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 | 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:
.log file and records it in activity historyAll data is stored locally in plain-text log files:
~/.local/share/blog/
├── draft.log # Draft ideas and snippets
├── edit.log # Editing notes and revisions
├── optimize.log # SEO / content optimization records
├── schedule.log # Publication schedule entries
├── hashtags.log # Hashtag sets for social media
├── hooks.log # Attention hooks / opening lines
├── cta.log # Call-to-action ideas
├── rewrite.log # Major revision records
├── translate.log # Translation tasks and results
├── tone.log # Tone / voice notes
├── headline.log # Headline options and A/B ideas
├── outline.log # Post outlines and structures
└── history.log # Unified activity log with timestamps
Each entry is stored as YYYY-MM-DD HH:MM| for easy parsing and export.
set -euo pipefail)date, wc, du, grep, head, tail, catschedule to record publication dates and recent to see upcoming deadlines at a glancetranslate, tone adjustments with tone, and rewrites with rewrite to manage localized content# Start with a draft idea
blog draft "10 productivity hacks for remote developers — listicle format"
# Create the outline
blog outline "Intro (hook) → 10 tips with examples → CTA → conclusion"
# Write headline options
blog headline "Option A: 10 Hacks That Actually Work | Option B: Remote Dev Productivity Guide"
# Log editing notes
blog edit "tightened intro paragraph, added code examples to tips 3 and 7"
# Optimize for SEO
blog optimize "target keyword: remote developer productivity, density 1.2%, meta desc added"
# Schedule publication
blog schedule "publish 2024-04-15 09:00 UTC — cross-post to Dev.to and Medium"
# Create hashtag sets
blog hashtags "#remotework #developer #productivity #coding #devtips"
# Write hooks for social posts
blog hooks "Most devs waste 2 hours daily on context switching. Here's how to fix it."
# Add a CTA
blog cta "Download our free remote work checklist — link in bio"
# Set the tone
blog tone "conversational, slightly informal, use second person (you/your)"
# Search for entries about a topic
blog search "productivity"
# View recent activity
blog recent
# Check stats across all categories
blog stats
# Export everything as JSON for backup
blog export json
# Quick health check
blog status
# Log a major rewrite
blog rewrite "complete overhaul of intro section — new angle focusing on data"
# Track a translation
blog translate "EN → ES: productivity article translated, 1800 words, reviewed by Maria"
All commands print confirmation to stdout. Data is persisted in ~/.local/share/blog/. Use blog stats for an overview, blog search to find specific entries, or blog export to extract all data as JSON, CSV, or plain text.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
共 2 个版本