LinkedIn Post
Content toolkit for drafting, editing, optimizing, scheduling, and managing LinkedIn posts from the command line. Generate hashtags, craft hooks, write CTAs, rewrite content, translate text, adjust tone, create headlines, and build outlines — all with timestamped logging and full export capabilities.
Commands
| Command | Description |
|---|
| INLINECODE0 | Draft a new post (view recent drafts with no args) |
| INLINECODE1 |
Log an edit entry (view recent edits with no args) |
|
linkedin-post optimize <input> | Log an optimization note (view recent with no args) |
|
linkedin-post schedule <input> | Schedule a post (view recent schedules with no args) |
|
linkedin-post hashtags <input> | Log hashtag ideas (view recent with no args) |
|
linkedin-post hooks <input> | Log opening hooks (view recent with no args) |
|
linkedin-post cta <input> | Log call-to-action ideas (view recent with no args) |
|
linkedin-post rewrite <input> | Log a rewrite (view recent rewrites with no args) |
|
linkedin-post translate <input> | Log a translation (view recent with no args) |
|
linkedin-post tone <input> | Log tone adjustments (view recent with no args) |
|
linkedin-post headline <input> | Log headline ideas (view recent with no args) |
|
linkedin-post outline <input> | Log post outlines (view recent with no args) |
|
linkedin-post stats | Show summary statistics across all log files |
|
linkedin-post export <fmt> | Export all data (json, csv, or txt) |
|
linkedin-post search <term> | Search all logs for a keyword |
|
linkedin-post recent | Show the 20 most recent history entries |
|
linkedin-post status | Health check with version, entries, disk usage |
|
linkedin-post help | Show help message |
|
linkedin-post version | Show version (v2.0.0) |
How Data Commands Work
Each content command (draft, edit, optimize, schedule, hashtags, hooks, cta, rewrite, translate, tone, headline, outline) operates in two modes:
- - With arguments — saves a timestamped entry (
YYYY-MM-DD HH:MM|value) to the command's .log file and records the action in INLINECODE21 - Without arguments — displays the 20 most recent entries from that command's log file
Utility Commands
- - stats — iterates all
.log files in the data directory, counts entries per category, and shows total count, disk usage, and earliest activity timestamp - export
<fmt> — exports all log data into json, csv, or txt format, saved to ~/.local/share/linkedin-post/export.<fmt>. Reports output file path and byte count. - search
<term> — performs case-insensitive search across all log files, grouped by category - recent — shows the last 20 lines from INLINECODE29
- status — health check displaying version, data directory, total entry count, disk usage, last activity, and OK status
Data Storage
All data is stored in ~/.local/share/linkedin-post/:
- - Each command has its own log file (e.g.,
draft.log, edit.log, hashtags.log, hooks.log, etc.) - INLINECODE35 — centralized activity log recording every command invocation
- Export files saved as
export.json, export.csv, or INLINECODE38 - Entries use pipe-delimited format: INLINECODE39
Requirements
- - Bash (with
set -euo pipefail) - Standard Unix utilities:
date, wc, du, head, tail, grep, INLINECODE47 - No external dependencies or API keys required
When to Use
- 1. Drafting LinkedIn posts — use
linkedin-post draft to capture post ideas and first drafts as they come to you - Crafting engaging hooks — log attention-grabbing opening lines with
linkedin-post hooks and iterate until you find the best one - Managing hashtag strategy — track and organize hashtag sets with
linkedin-post hashtags for consistent post tagging - Scheduling content calendars — use
linkedin-post schedule to plan when posts go live and maintain a publishing cadence - Iterating on post quality — use
linkedin-post rewrite, linkedin-post tone, and linkedin-post optimize to refine content through multiple revisions
Examples
CODEBLOCK0
LinkedIn Best Practices
- - First 3 lines are everything — the "see more" hook determines whether people engage
- Dwell time matters — longer posts that keep people reading get boosted by the algorithm
- Comments > Reactions — posts with comments rank higher than those with just likes
- Avoid external links in post body — put URLs in the first comment instead
- Carousel posts get 1.5–2× more reach than text-only posts
- Use
linkedin-post hooks to iterate on your opening lines before publishing
Tips
- - Run
linkedin-post help to see all available commands - Call any command without arguments to review recent entries for that category
- Use
linkedin-post search <term> to find entries across all log files - Export data regularly with
linkedin-post export json for backups - Combine
draft → hooks → hashtags → cta → optimize as a content creation pipeline - All data lives in
~/.local/share/linkedin-post/ — easy to back up or sync
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
LinkedIn 帖子
用于从命令行起草、编辑、优化、排期和管理 LinkedIn 帖子的内容工具包。生成话题标签、设计钩子、撰写行动号召、重写内容、翻译文本、调整语气、创建标题和构建大纲——全部带有时间戳记录和完整导出功能。
命令
| 命令 | 描述 |
|---|
| linkedin-post draft <输入> | 起草新帖子(无参数时查看最近草稿) |
| linkedin-post edit <输入> |
记录编辑条目(无参数时查看最近编辑) |
| linkedin-post optimize <输入> | 记录优化备注(无参数时查看最近记录) |
| linkedin-post schedule <输入> | 排期帖子(无参数时查看最近排期) |
| linkedin-post hashtags <输入> | 记录话题标签创意(无参数时查看最近记录) |
| linkedin-post hooks <输入> | 记录开场钩子(无参数时查看最近记录) |
| linkedin-post cta <输入> | 记录行动号召创意(无参数时查看最近记录) |
| linkedin-post rewrite <输入> | 记录重写内容(无参数时查看最近重写) |
| linkedin-post translate <输入> | 记录翻译内容(无参数时查看最近记录) |
| linkedin-post tone <输入> | 记录语气调整(无参数时查看最近记录) |
| linkedin-post headline <输入> | 记录标题创意(无参数时查看最近记录) |
| linkedin-post outline <输入> | 记录帖子大纲(无参数时查看最近记录) |
| linkedin-post stats | 显示所有日志文件的汇总统计 |
| linkedin-post export <格式> | 导出所有数据(json、csv 或 txt) |
| linkedin-post search <关键词> | 在所有日志中搜索关键词 |
| linkedin-post recent | 显示最近 20 条历史记录 |
| linkedin-post status | 健康检查,显示版本、条目数、磁盘使用量 |
| linkedin-post help | 显示帮助信息 |
| linkedin-post version | 显示版本(v2.0.0) |
数据命令工作原理
每个内容命令(draft、edit、optimize、schedule、hashtags、hooks、cta、rewrite、translate、tone、headline、outline)有两种操作模式:
- - 带参数 — 将带时间戳的条目(YYYY-MM-DD HH:MM|值)保存到该命令的 .log 文件,并在 history.log 中记录操作
- 无参数 — 显示该命令日志文件中最近的 20 条条目
实用命令
- - stats — 遍历数据目录中所有 .log 文件,统计每个类别的条目数,并显示总数、磁盘使用量和最早活动时间戳
- export <格式> — 将所有日志数据导出为 json、csv 或 txt 格式,保存到 ~/.local/share/linkedin-post/export.<格式>。报告输出文件路径和字节数。
- search <关键词> — 在所有日志文件中执行不区分大小写的搜索,按类别分组
- recent — 显示 history.log 中最近 20 行
- status — 健康检查,显示版本、数据目录、总条目数、磁盘使用量、最近活动和正常状态
数据存储
所有数据存储在 ~/.local/share/linkedin-post/ 中:
- - 每个命令有自己的日志文件(例如 draft.log、edit.log、hashtags.log、hooks.log 等)
- history.log — 集中活动日志,记录每次命令调用
- 导出文件保存为 export.json、export.csv 或 export.txt
- 条目使用竖线分隔格式:YYYY-MM-DD HH:MM|值
要求
- - Bash(使用 set -euo pipefail)
- 标准 Unix 工具:date、wc、du、head、tail、grep、basename
- 无需外部依赖或 API 密钥
使用场景
- 1. 起草 LinkedIn 帖子 — 使用 linkedin-post draft 随时捕捉帖子创意和初稿
- 设计吸引人的钩子 — 使用 linkedin-post hooks 记录吸引眼球的开场白,反复迭代直到找到最佳方案
- 管理话题标签策略 — 使用 linkedin-post hashtags 跟踪和整理话题标签组合,实现一致的帖子标签
- 排期内容日历 — 使用 linkedin-post schedule 规划帖子发布时间,保持发布节奏
- 迭代帖子质量 — 使用 linkedin-post rewrite、linkedin-post tone 和 linkedin-post optimize 通过多次修订优化内容
示例
bash
起草新帖子
linkedin-post draft 我在30天内发布第一个SaaS产品学到的5个教训
记录帖子的钩子创意
linkedin-post hooks 我差点在第14天放弃。以下是我没放弃的原因。
linkedin-post hooks 大多数创始人对MVP的理解都是错的...
添加话题标签创意
linkedin-post hashtags #SaaS #创业生活 #产品发布 #独立开发者 #公开构建
撰写行动号召
linkedin-post cta 如果你这个月发布了什么,请发个🔥。我会去看看你的项目。
排期帖子
linkedin-post schedule 周二美国东部时间上午9点发布——LinkedIn互动高峰期
用不同语气重写
linkedin-post rewrite 精简版:删掉引言,直接讲教训,以问题结尾
linkedin-post tone 从正式语气改为对话语气——多用你和我,少用流行词
创建标题
linkedin-post headline 从零到月收入1万美元:真正有效的方法
构建大纲
linkedin-post outline 1) 钩子:惊人数据 2) 问题 3) 3个关键教训 4) 行动号召问题
为不同受众翻译
linkedin-post translate 面向拉美LinkedIn受众的西班牙语版本
查看汇总统计
linkedin-post stats
导出所有数据为JSON
linkedin-post export json
搜索所有关于SaaS的帖子
linkedin-post search SaaS
检查系统状态
linkedin-post status
查看最近活动
linkedin-post recent
LinkedIn 最佳实践
- - 前3行决定一切 — 查看更多的钩子决定了用户是否会互动
- 停留时间很重要 — 能让人持续阅读的长帖子会被算法推荐
- 评论 > 反应 — 有评论的帖子排名高于只有点赞的帖子
- 避免在帖子正文中放外部链接 — 将网址放在第一条评论中
- 轮播帖子的触达率是纯文字帖子的1.5–2倍
- 发布前使用 linkedin-post hooks 迭代开场白
提示
- - 运行 linkedin-post help 查看所有可用命令
- 不带参数调用任何命令可查看该类别的最近条目
- 使用 linkedin-post search <关键词> 在所有日志文件中查找条目
- 定期使用 linkedin-post export json 导出数据以备份
- 将 draft → hooks → hashtags → cta → optimize 组合为内容创作流程
- 所有数据位于 ~/.local/share/linkedin-post/ — 便于备份或同步
由 BytesAgain 提供 | bytesagain.com | hello@bytesagain.com