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 |
linkedin-post draft <input> |
Draft a new post (view recent drafts with no args) |
linkedin-post edit <input> |
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 history.log
- 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
history.log
- 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.)
history.log — centralized activity log recording every command invocation
- Export files saved as
export.json, export.csv, or export.txt
- Entries use pipe-delimited format:
YYYY-MM-DD HH:MM|value
Requirements
- Bash (with
set -euo pipefail)
- Standard Unix utilities:
date, wc, du, head, tail, grep, basename
- No external dependencies or API keys required
When to Use
- 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
# Draft a new post
linkedin-post draft "5 lessons I learned from shipping my first SaaS product in 30 days"
# Log hook ideas for the post
linkedin-post hooks "I almost quit on day 14. Here's why I didn't."
linkedin-post hooks "Most founders get this wrong about MVPs..."
# Add hashtag ideas
linkedin-post hashtags "#SaaS #StartupLife #ProductLaunch #IndieHacker #BuildInPublic"
# Write a CTA
linkedin-post cta "Drop a 🔥 if you've shipped something this month. I'll check out your project."
# Schedule the post
linkedin-post schedule "Publish Tuesday 9am EST — peak LinkedIn engagement window"
# Rewrite with different tone
linkedin-post rewrite "Shorter version: cut intro, lead with the lesson, end with question"
linkedin-post tone "Switch from formal to conversational — more 'you' and 'I', fewer buzzwords"
# Create a headline
linkedin-post headline "From Zero to $10K MRR: What Actually Worked"
# Build an outline
linkedin-post outline "1) Hook: surprising stat 2) Problem 3) 3 key lessons 4) CTA question"
# Translate for different audience
linkedin-post translate "Spanish version for LATAM LinkedIn audience"
# View summary statistics
linkedin-post stats
# Export everything as JSON
linkedin-post export json
# Search for all posts about SaaS
linkedin-post search "SaaS"
# Check system status
linkedin-post status
# View recent activity
linkedin-post recent
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
1---
2version: "2.0.0"
3name: linkedin-post
4description: "LinkedIn文案生成、开头Hook、热门话题标签、轮播内容规划、高质量评论、个人简介优化。LinkedIn post writer with hooks, hashtags, carousel planning, comment templates."
5author: BytesAgain
6homepage: https://bytesagain.com
7source: https://github.com/bytesagain/ai-skills
8metadata:
9 source: https://skillmd.com/skills/bytesagain/linkedin-post
10---
11
12# LinkedIn Post
13
14Content 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.
15
16## Commands
17
18| Command | Description |
19|---------|-------------|
20| `linkedin-post draft <input>` | Draft a new post (view recent drafts with no args) |
21| `linkedin-post edit <input>` | Log an edit entry (view recent edits with no args) |
22| `linkedin-post optimize <input>` | Log an optimization note (view recent with no args) |
23| `linkedin-post schedule <input>` | Schedule a post (view recent schedules with no args) |
24| `linkedin-post hashtags <input>` | Log hashtag ideas (view recent with no args) |
25| `linkedin-post hooks <input>` | Log opening hooks (view recent with no args) |
26| `linkedin-post cta <input>` | Log call-to-action ideas (view recent with no args) |
27| `linkedin-post rewrite <input>` | Log a rewrite (view recent rewrites with no args) |
28| `linkedin-post translate <input>` | Log a translation (view recent with no args) |
29| `linkedin-post tone <input>` | Log tone adjustments (view recent with no args) |
30| `linkedin-post headline <input>` | Log headline ideas (view recent with no args) |
31| `linkedin-post outline <input>` | Log post outlines (view recent with no args) |
32| `linkedin-post stats` | Show summary statistics across all log files |
33| `linkedin-post export <fmt>` | Export all data (json, csv, or txt) |
34| `linkedin-post search <term>` | Search all logs for a keyword |
35| `linkedin-post recent` | Show the 20 most recent history entries |
36| `linkedin-post status` | Health check with version, entries, disk usage |
37| `linkedin-post help` | Show help message |
38| `linkedin-post version` | Show version (v2.0.0) |
39
40### How Data Commands Work
41
42Each content command (draft, edit, optimize, schedule, hashtags, hooks, cta, rewrite, translate, tone, headline, outline) operates in two modes:
43
44- **With arguments** — saves a timestamped entry (`YYYY-MM-DD HH:MM|value`) to the command's `.log` file and records the action in `history.log`
45- **Without arguments** — displays the 20 most recent entries from that command's log file
46
47### Utility Commands
48
49- **stats** — iterates all `.log` files in the data directory, counts entries per category, and shows total count, disk usage, and earliest activity timestamp
50- **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.
51- **search `<term>`** — performs case-insensitive search across all log files, grouped by category
52- **recent** — shows the last 20 lines from `history.log`
53- **status** — health check displaying version, data directory, total entry count, disk usage, last activity, and OK status
54
55## Data Storage
56
57All data is stored in `~/.local/share/linkedin-post/`:
58
59- Each command has its own log file (e.g., `draft.log`, `edit.log`, `hashtags.log`, `hooks.log`, etc.)
60- `history.log` — centralized activity log recording every command invocation
61- Export files saved as `export.json`, `export.csv`, or `export.txt`
62- Entries use pipe-delimited format: `YYYY-MM-DD HH:MM|value`
63
64## Requirements
65
66- Bash (with `set -euo pipefail`)
67- Standard Unix utilities: `date`, `wc`, `du`, `head`, `tail`, `grep`, `basename`
68- No external dependencies or API keys required
69
70## When to Use
71
721. **Drafting LinkedIn posts** — use `linkedin-post draft` to capture post ideas and first drafts as they come to you
732. **Crafting engaging hooks** — log attention-grabbing opening lines with `linkedin-post hooks` and iterate until you find the best one
743. **Managing hashtag strategy** — track and organize hashtag sets with `linkedin-post hashtags` for consistent post tagging
754. **Scheduling content calendars** — use `linkedin-post schedule` to plan when posts go live and maintain a publishing cadence
765. **Iterating on post quality** — use `linkedin-post rewrite`, `linkedin-post tone`, and `linkedin-post optimize` to refine content through multiple revisions
77
78## Examples
79
80```bash
81# Draft a new post
82linkedin-post draft "5 lessons I learned from shipping my first SaaS product in 30 days"
83
84# Log hook ideas for the post
85linkedin-post hooks "I almost quit on day 14. Here's why I didn't."
86linkedin-post hooks "Most founders get this wrong about MVPs..."
87
88# Add hashtag ideas
89linkedin-post hashtags "#SaaS #StartupLife #ProductLaunch #IndieHacker #BuildInPublic"
90
91# Write a CTA
92linkedin-post cta "Drop a 🔥 if you've shipped something this month. I'll check out your project."
93
94# Schedule the post
95linkedin-post schedule "Publish Tuesday 9am EST — peak LinkedIn engagement window"
96
97# Rewrite with different tone
98linkedin-post rewrite "Shorter version: cut intro, lead with the lesson, end with question"
99linkedin-post tone "Switch from formal to conversational — more 'you' and 'I', fewer buzzwords"
100
101# Create a headline
102linkedin-post headline "From Zero to $10K MRR: What Actually Worked"
103
104# Build an outline
105linkedin-post outline "1) Hook: surprising stat 2) Problem 3) 3 key lessons 4) CTA question"
106
107# Translate for different audience
108linkedin-post translate "Spanish version for LATAM LinkedIn audience"
109
110# View summary statistics
111linkedin-post stats
112
113# Export everything as JSON
114linkedin-post export json
115
116# Search for all posts about SaaS
117linkedin-post search "SaaS"
118
119# Check system status
120linkedin-post status
121
122# View recent activity
123linkedin-post recent
124```
125
126## LinkedIn Best Practices
127
128- **First 3 lines are everything** — the "see more" hook determines whether people engage
129- **Dwell time matters** — longer posts that keep people reading get boosted by the algorithm
130- **Comments > Reactions** — posts with comments rank higher than those with just likes
131- **Avoid external links in post body** — put URLs in the first comment instead
132- **Carousel posts** get 1.5–2× more reach than text-only posts
133- Use `linkedin-post hooks` to iterate on your opening lines before publishing
134
135## Tips
136
137- Run `linkedin-post help` to see all available commands
138- Call any command without arguments to review recent entries for that category
139- Use `linkedin-post search <term>` to find entries across all log files
140- Export data regularly with `linkedin-post export json` for backups
141- Combine `draft` → `hooks` → `hashtags` → `cta` → `optimize` as a content creation pipeline
142- All data lives in `~/.local/share/linkedin-post/` — easy to back up or sync
143
144---
145
146*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*