Community写作与编辑github.com

publora/linkedin-post

当用户希望通过 Publora 发布或定时发布 LinkedIn 帖子时使用:纯文本、多图网格、视频、PDF 文档或 @提及。不适用于分析、评论、反应或转发(请使用 linkedin-analytics),也不适用于其他平台。

linkedin-post 是什么?

该技能允许你通过 Publora MCP 服务器在 LinkedIn 上创建和定时发布内容。它支持多种帖子类型,包括纯文本、单张图片、多图网格布局(最多 10 张图片)、视频(最长 30 分钟,最大 500 MB,仅 MP4 格式)和 PDF 文档。你还可以在帖子中使用 LinkedIn 的 URN 语法 @提及个人或公司,但显示名称必须与 LinkedIn 个人资料名称完全匹配(区分大小写)。该技能提供了一组工具:create_post 用于创建并立即或定时发布帖子,get_upload_url 用于获取上传媒体的预签名 URL,complete_media 用于在媒体上传完成后进行最终确认,以及 list_connections、list_posts、get_post、update_post 和 delete_post 用于管理已创建的帖子。需要注意的是,LinkedIn API 不支持滑动轮播图(多图将以网格形式显示)、不支持混合媒体类型(图片与视频不能共存于同一帖子),也不支持富文本格式(如加粗或斜体)。如果 MCP 服务器不可用,技能还提供了 REST API 作为备用方案。

兼容平台✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/publora/skills/tree/main/skills/linkedin-post

Installed? Explore more 写作与编辑 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

LinkedIn 帖子

使用 Publora MCP 服务器创建和定时发布 LinkedIn 帖子。支持文本帖子、单张图片、多图帖子(网格布局)、视频和 PDF 文档。

先决条件

计划: 免费 Starter 计划即可使用。当前限制和定价:publora.com/pricing

开始使用

  1. 创建账号:访问 publora.com/register(免费)
  2. 连接 LinkedIn:通过 OAuth 在 Publora 控制台 中连接
  3. 获取 API 密钥:在 app.publora.com/dashboard/api 获取
  4. 将 Agent 连接到 MCP 服务器:服务器地址为 https://mcp.publora.com,使用 Authorization: Bearer sk_YOUR_API_KEY 进行身份验证。在 Claude Code 中:
claude mcp add publora --transport http https://mcp.publora.com \
  --header "Authorization: Bearer sk_YOUR_API_KEY"

Claude Desktop、Cursor、Codex、OpenClaw 以及 claude.ai 连接器需要不同的配置文件或流程:请参阅客户端设置了解具体的路径和代码片段。

REST API 备用方案

如果 MCP 服务器不可用或返回错误,请直接使用 REST API:

基础 URL: https://api.publora.com/api/v1

身份验证: 使用 x-publora-key 请求头(非 Authorization: Bearer):

# 获取已连接的平台
curl -X GET "https://api.publora.com/api/v1/platform-connections" \
  -H "x-publora-key: sk_your_api_key"

# 创建帖子
curl -X POST "https://api.publora.com/api/v1/create-post" \
  -H "x-publora-key: sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "platforms": ["linkedin-Tz9W5i6ZYG"],
    "content": "你的帖子内容",
    "scheduledTime": "2026-03-25T10:00:00Z"
  }'

平台 ID 格式: linkedin-{id},其中 {id} 来自 /platform-connections 的响应。

示例 ID:linkedin-Tz9W5i6ZYG、linkedin-abc123xyz

📖 完整 API 文档: docs.publora.com

平台限制

特性限制
字符数最多 3,000 个
"查看更多" 前的可见内容前 210 个字符
图片最多 10 张(网格布局,非可滑动轮播图)
图片大小36,152,320 像素为硬性限制;上限 50 MB
图片格式JPEG、PNG、GIF、WebP(WebP 会自动转换)
视频时长30 分钟
视频大小最大 500 MB
视频格式仅 MP4

可用工具

create_post

创建新的 LinkedIn 帖子或稍后定时发布。

参数:

  • platforms:包含你的 LinkedIn 连接 ID 的数组(例如 ["linkedin-abc123"])
  • content:帖子文本(最多 3,000 个字符)
  • scheduledTime:ISO 8601 UTC 日期时间。可选:省略此参数则帖子创建为草稿。发送未来时间可进行定时发布。如果时间超过过去五分钟及以上,将被拒绝并返回 SCHEDULED_TIME_IN_PAST,因此如需立即发布,请使用当前时间再加一分钟。
  • mediaUrls:最多 10 个公开的 https 图片或视频 URL。Publora 会在服务器端下载它们,并在验证之前附加,因此媒体和定时发布可以在一次调用中完成。这是草稿→get_upload_url→complete_media 流程的一次性替代方案。上传频率限制为每小时 60 个 URL。

get_upload_url

获取用于上传媒体的预签名 URL。

参数:

  • postGroupId:要附加媒体的帖子 ID
  • fileName:文件名(例如 "chart.png")
  • contentType:MIME 类型(例如 "image/jpeg"、"video/mp4"、"application/pdf")
  • type:"image" 或 "video"

complete_media

在通过 get_upload_url 获取的预签名 PUT 上传成功后,最终确定已上传的文件。此步骤是可选的,因为定时发布也会最终确定待处理的媒体,但提前调用它可以在发布前暴露格式和探针错误。对于通过 mediaUrls 附加的媒体则不需要。

参数:

  • mediaId:get_upload_url 返回的 ID

list_connections

列出已连接的账户及其平台 ID。请首先调用此工具并逐字复制 ID;它们无法被猜测。

list_posts / get_post / update_post / delete_post

管理已定时发布和草稿帖子。update_post 还可以修改草稿或定时帖子的 content 和 platforms,因此修复拼写错误或重新定位目标不再需要删除后重新创建。delete_media 和 prune_media_reference 用于清理已上传的文件。

提及个人和公司

LinkedIn 帖子支持使用 URN 语法进行 @提及:

@{urn:li:person:MEMBER_ID|显示名称}       # 提及个人
@{urn:li:organization:ORG_ID|公司名称}    # 提及公司

示例:

来自 @{urn:li:person:4986615|Serge Bulaev} 在 @{urn:li:organization:107107343|Creative Content Crafts Inc} 的精彩见解!

重要提示: 显示名称必须与 LinkedIn 个人资料名称完全匹配(区分大小写),包括公司后缀如 "Inc"、"LLC" 等。

请勿手动编写成员 ID。 linkedin_list_mentionables MCP 工具可以将名称解析为正确的 URN;请参阅 linkedin-analytics 技能。

重要 API 限制

  1. 无原生轮播图:API 不支持可滑动的多图轮播图(仅适用于推广内容)。多图帖子将以网格布局显示。

  2. 无混合媒体:同一帖子中不能同时包含图片与视频或文档。

  3. 无富文本:LinkedIn API 不支持加粗、斜体或其他格式。请使用纯文本或 Unicode 字符进行强调。

  4. 轮播图的 PDF 替代方案:如需分享多页可滑动内容,请上传 PDF 文档。

示例

纯文本帖子

定时发布一篇明天上午 9 点的 LinkedIn 帖子:
"我们很高兴地宣布推出我们的 AI 写作助手。经过 18 个月的开发,我们已准备好帮助团队更快地写出更好的内容。"

带提及的帖子

创建一篇提及我们 CEO 的 LinkedIn 帖子:
"很高兴分享来自 @{urn:li:person:4986615|Serge Bulaev} 关于 AI 在内容创作中未来的见解。"

多图帖子

创建一篇包含 4 张产品截图展示新控制台功能的 LinkedIn 帖子。

注意:图片将以网格布局显示,而非可滑动轮播图。

PDF 文档帖子

在 LinkedIn 上分享我们的 Q4 报告 PDF 并附带总结文字。

这是分享多页轮播类内容的最佳方式。

最佳实践

  1. 第一行很重要:前 210 个字符出现在 "查看更多" 之前——让它们引人入胜
  2. 最佳长度:少于 1,300 个字符的帖子通常表现更好
  3. 发布时间:在目标受众时区的周二至周四上午 8-10 点发布
  4. 话题标签:使用 3-5 个相关话题标签——它们作为纯文本支持
  5. 互动:以一个问题结尾以鼓励评论

故障排除

错误原因解决方案
"账户未连接"LinkedIn OAuth 已过期在 Publora 控制台中重新连接
"MEDIA_ASSET_PROCESSING_FAILED"文件过大或格式错误检查:图片 < 5 MB,视频 < 500 MB 的 MP4 格式
"达到频率限制" (429)API 调用过多等待并使用退避策略重试
"无法混合媒体类型"同一帖子中同时包含图片和视频每篇帖子仅使用一种媒体类型
MCP 不可用服务器问题使用 REST API 备用方案(见上文)

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

publora/bluesky-post

Use when the user wants to post or schedule to Bluesky through Publora. Handles the 300-character cap, auto-detected hashtags and links, up to 4 images, and videos. Alt text cannot be set through the API. Needs a Bluesky app password, never the main password. Not for Mastodon (use social-post).

publora/instagram-post

Use when the user wants to post or schedule to Instagram through Publora: a single image, a 2-10 image carousel, a Reel or a Story. Requires a Business account and an image or video; text-only posts are rejected by the API. Not for Threads (use threads-post).

publora/linkedin-analytics

Analyze LinkedIn performance and manage engagement through Publora. Use when the user asks how a LinkedIn post or account performed (impressions, reach, reactions, comments, reshares, follower growth) or wants to react, comment, reshare or resolve an @mention. Statistics run over the REST API, engagement over MCP tools. Not for creating posts (use linkedin-post).

publora/social-post

Use when the user wants to post or schedule to YouTube, a Facebook Page or Mastodon through Publora. YouTube needs a video on every post, Facebook publishes to Pages only, Mastodon caps at 500 characters. Not for the platforms that have their own skill.

publora/telegram-post

Use when the user wants to post or schedule to a Telegram channel or group through Publora, using a bot. Covers Telegram markdown, silent delivery, link previews and forward protection. Bot API caps media captions at 1,024 characters and videos at 50 MB. Not for other platforms (each has its own skill).

publora/threads-post

Create and schedule Threads posts with image carousels and reply control via Publora MCP. Use when the user wants to post to Meta's Threads. Multi-part threading is currently disabled by the platform, so long content stays a single post. Not for Instagram (use instagram-post) or X threads (use x-post).

publora/tiktok-post

Use when the user wants to upload or schedule a TikTok video through Publora, with privacy, comment, duet, stitch and commercial-disclosure settings. Video runs 3 seconds to 10 minutes at 23+ FPS; carousels take up to 35 images. Unaudited apps can publish private videos only. Not for Reels (use instagram-post).

publora/x-post

Use when the user wants to post or schedule to X (Twitter) through Publora, including threads auto-split past 280 characters, up to 4 images, or a video up to 140 seconds. X needs a paid Publora plan. Not for Threads or Bluesky (each has its own skill).

相关技能