red777777

Linkedin - automation

內容創作v1.0.1
作者:red777777更新於 2026-05-17共 3 個版本 · 最新版本釋出於 2026-02-04inkedin-automation-that-really-works@clawhub_red777777/inkedin-automation-that-really-works
行銷文案自媒體營運選題策劃#Playwright#Browser#Calendar#LinkedIn

據 AlphaMoat 統計,截至 2026-10,Linkedin - automation 累計下載 6,069 次、獲 6 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 4,749 位,在「內容創作」分類(927 個)中排名第 445 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
6069
星標
6
全站下載量排名
#4,749
全站前 44% · 「內容創作」前 49%
平台累計下載星標評論
ClawHub ↗388742
SkillHub ↗60696—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

LinkedIn自動化——發帖(含圖片上傳)、評論(含@提及)、編輯/刪除評論、轉發、讀取動態、分析資料、點贊監控、參與度追蹤,以及帶審批工作流的內容日曆。採用Playwright持久化瀏覽器配置檔案。適用於內容策略、定時釋出、參與度分析和受眾增長等LinkedIn任務。

月度資料趨勢

累計下載6069
3006465162962026-05 · 累計下載 32332026-06 · 累計下載 34562026-07 · 累計下載 36332026-08 · 累計下載 37352026-09 · 累計下載 42012026-10 · 累計下載 606926-0526-0926-10
星標6
5662026-05 · 星標 52026-06 · 星標 52026-07 · 星標 52026-08 · 星標 52026-09 · 星標 62026-10 · 星標 626-0526-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-106069—6
2026-094201—6
2026-083735+2.8%5
2026-073633+5.1%5
2026-063456+6.9%5
2026-053233—5

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

6.9 KB · ClawHub v1.0.1
---
name: linkedin-automation
description: LinkedIn automation — post (with image upload), comment (with @mentions), edit/delete comments, repost, read feed, analytics, like monitoring, engagement tracking, and content calendar with approval workflow. Uses Playwright with persistent browser profile. Use for any LinkedIn task including content strategy, scheduled publishing, engagement analysis, and audience growth.
---

# LinkedIn Automation

> **Author:** Community Contributors
>
> ⚠️ **DISCLAIMER — PERSONAL USE ONLY**
展開全部(共 159 行)
> This skill is provided for **personal, non-commercial use only**. It automates your own LinkedIn account for personal productivity and engagement. Do NOT use this skill for spam, mass outreach, scraping other users' data, or any commercial automation service. Use responsibly and in accordance with [LinkedIn's User Agreement](https://www.linkedin.com/legal/user-agreement). The author assumes no liability for misuse or account restrictions.

Automate LinkedIn interactions via headless Playwright browser with a persistent session.

## Prerequisites

- Python 3.10+ with Playwright installed (`pip install playwright && playwright install chromium`)
- A logged-in LinkedIn browser session (persistent Chromium profile)
- Adjust paths in `scripts/lib/browser.py` to match your setup

## Commands

```bash
CLI={baseDir}/scripts/linkedin.py

# Check if session is valid
python3 $CLI check-session

# Read feed
python3 $CLI feed --count 5

# Create a post (text only)
python3 $CLI post --text "Hello world"

# Create a post with image (handles LinkedIn's image editor modal automatically)
python3 $CLI post --text "Hello world" --image /path/to/image.png

# Comment on a post (supports @Mentions — see below)
python3 $CLI comment --url "https://linkedin.com/feed/update/..." --text "Great insight @Betina Weiler!"

# Edit a comment (match by text fragment)
python3 $CLI edit-comment --url "https://..." --match "old text" --text "new text"

# Delete a comment
python3 $CLI delete-comment --url "https://..." --match "text to identify"

# Repost with thoughts
python3 $CLI repost --url "https://..." --thoughts "My take..."

# Engagement analytics for recent posts
python3 $CLI analytics --count 10

# Profile-level stats (followers, views)
python3 $CLI profile-stats

# Monitor your likes for new ones (for comment suggestions)
python3 $CLI scan-likes --count 15

# Scrape someone's activity
python3 $CLI activity --profile-url "https://linkedin.com/in/someone/" --count 5
```

All commands output JSON. Enable debug logging: `LINKEDIN_DEBUG=1`.

## @Mentions

Comments support `@FirstName LastName` syntax. The skill:
1. Types `@FirstName` → waits for typeahead dropdown
2. Progressively types last name letter by letter if needed
3. Clicks the match only if first+last name both match
4. Falls back to plain text if person not found (returns `mention_failed` warning)

Check `mentions` in the JSON result to see if mentions succeeded.

## Like Monitor

The `scan-likes` command checks your recent likes/reactions activity and returns any **new likes since the last check**. State is persisted to avoid duplicate alerts. Ideal for cron/heartbeat integration:

```
# In HEARTBEAT.md or cron job:
python3 $CLI scan-likes → if new likes found → suggest comment for each
```

## ⚠️ Golden Rule

**NEVER post, comment, repost, edit, or delete anything without EXPLICIT user approval.**

Always show the user exactly what will be posted and get a clear "yes" before executing. Read-only actions (feed, analytics, check-session, scan-likes) are safe to run freely.

## Content Calendar (Scheduled Publishing)

Full approval-based publishing workflow with auto-posting. See **[references/content-calendar.md](references/content-calendar.md)** for setup.

- **Webhook** (`scripts/cc-webhook.py`): Receives approve/edit/skip from a frontend UI
- **Auto-apply**: Simple edits (`"old text -> new text"`) applied instantly by webhook
- **Agent processing**: Complex edits flagged for AI-powered text rewriting
- **Auto-post**: Approved posts past their scheduled time are posted automatically via cron
- **Image strategy**: Real photos + AI-generated story overlays (not stock photos)

```bash
# Start the webhook (or install as systemd service)
python3 scripts/cc-webhook.py

# Env vars for config:
# CC_DATA_FILE=/path/to/cc-data.json
# CC_ACTIONS_FILE=/path/to/actions.json
# CC_WEBHOOK_PORT=8401
```

## Content Strategy & Engagement

- **[references/content-strategy.md](references/content-strategy.md)** — Hook formulas, post structure, posting times, hashtag strategy, 4-1-1 rule
- **[references/engagement.md](references/engagement.md)** — Algorithm signals, comment quality formula, rate limits, weekly routine
- **[references/dom-patterns.md](references/dom-patterns.md)** — Known LinkedIn DOM patterns for troubleshooting
- **[references/content-calendar.md](references/content-calendar.md)** — Content calendar setup, data format, webhook API

## Rate Limits

| Action | Daily Max | Weekly Max |
|--------|----------|-----------|
| Posts | 2–3 | 10–15 |
| Comments | 20–30 | — |
| Likes | 100 | — |
| Connection requests | 30 | 100 |

## Setup

1. Install dependencies: `pip install playwright && playwright install chromium`
2. Configure browser profile path in `scripts/lib/browser.py` (or set `LINKEDIN_BROWSER_PROFILE` env var)
3. Log in to LinkedIn manually once (the session persists)
4. Run `python3 scripts/linkedin.py check-session` to verify
5. **Learn your voice:** Run `python3 scripts/linkedin.py learn-profile` — this scans your recent posts and comments to learn your tone, topics, language, and style. The agent uses this profile when suggesting comments/posts so they sound like **you**, not like a generic bot.

## Voice & Style

On first setup, `learn-profile` analyzes your content and saves a style profile (`~/.linkedin-style.json`) containing:
- **Language** (de/en/mixed)
- **Tone** (casual / professional / professional-friendly)
- **Emoji usage** (heavy / moderate / minimal)
- **Top hashtags** you use
- **Sample posts and comments** for voice reference

The agent should ALWAYS read this profile (`get-style`) before drafting any comment or post suggestion. Never impose a foreign voice — match the user's natural style.

## Post Age Warning

**CRITICAL:** Before suggesting a comment on any post, check how old the post is:
- **< 2 weeks:** Safe to comment
- **> 2 weeks:** Warn the user explicitly ("⚠️ This post is X weeks old — commenting on old posts can look like bot behavior. Still want to?")
- **> 1 month:** Strongly discourage unless there's a specific reason

Commenting on old posts makes it look like you're mining someone's history with a bot. Always flag post age.

## Troubleshooting

- **Session expired**: Log in again via browser profile
- **Selectors broken**: LinkedIn updates UI frequently — check `references/dom-patterns.md` and update `scripts/lib/selectors.py`
- **Debug screenshots**: Saved to `/tmp/linkedin_debug_*.png` on failure

「內容創作」分類下的熱門技能

李白.Skill內容創作

李白.Skill:潤色專家 檢測並消除中文文字中的AI生成痕跡,將生硬的機器輸出轉化為自然流暢的人類文筆。融合規則檢測、分層改寫(詞彙→句式→內容→邏輯→語氣)和六步質控流水線,確保最終文字透過人工審查。

↓ 125萬★ 121user_741dc82b
libai-skill內容創作

李白.Skill:潤色專家 檢測並消除中文文字中的AI生成痕跡,將生硬的機器輸出轉化為自然流暢的人類文筆。融合規則檢測、分層改寫和質控流水線,確保最終文字透過人工審查。

↓ 101.8萬★ 11user_814dbe54
文章去AI味工具內容創作

識別並去掉文字里的 AI 寫作痕跡,讓文字讀起來更像人寫。

↓ 95.1萬★ 767user_ab5ae6ee
影片號爆款短影片拆解(付費版:全能)【零一數科·出品】內容創作

【零一數科·出品】影片號爆款短影片拆解(全能版)(付費版)。影片號爆款短影片拆解(付費版:全能)。一鍵拆解爆款,把一條影片號影片拆成結構分段、爆款歸因、六維評分和可借鑑策略,照著學照著抄。支援影片號分享連結和本地影片,付費全能版遠端分析,1–5 分鐘出視覺化 HTML 報告。

↓ 91.9萬★ 116u_c19e970c
影片號掛車爆單短影片指令碼生成【零一數科·出品】內容創作

【零一數科·出品】影片號掛車爆單短影片指令碼生成(付費版)。一條連結二創指令碼,丟進爆款影片號連結即以此骨架改寫成你的掛車指令碼,或按方向/目的/商品原創多條口播指令碼(含分段表、口播全文、六維質檢評分)。

↓ 55.4萬★ 39u_c19e970c
Humanizer內容創作

把文字里 AI 寫作的典型痕跡挑出來並改寫得更自然,同時保留原意的寫作編輯技能。

↓ 50.9萬★ 1116B*T
中文公文寫作內容創作

用於中文公文、事務性材料和新聞稿件的起草、改寫、壓縮、潤色、審校、文種核對、去口語化、降 AI 味及 Word 格式處理,適用於機關、企事業單位、學校和新聞機構。涵蓋申請、請示、報告、通知、通告、意見、決定、決議、議案、公報、命令、函、覆函、批覆、說明、方案、紀要、公告、公示、通報、制度、規定、辦法、細則、操作規程、工作要點、總結、調研、講話、致辭、主持詞、述職、可研、審查材料、技術需求、新聞訊息、編者按、新聞評論,以及採購、整改、反饋和 AI 算力等場景。

↓ 41.3萬★ 84gongyu0918
影片號爆款文案生成(體驗版)【零一數科·出品】內容創作

【零一數科·出品】影片號爆款文案生成(體驗版)。免費免登入出指令碼,給創作目的、行業、受眾、選題就按爆款結構(Hook-中段-CTA、節奏標籤)產出口播指令碼,資訊不全也能按爆款潛質兜底。本地執行、無需 Key,零成本上手。

↓ 33.9萬★ 94u_c19e970c

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。