Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLinkedIn Skill
LinkedIn Skill
Overview
概述
Automates LinkedIn operations including posting content, managing professional profile, engaging with network, and building professional connections through browser automation.
通过浏览器自动化实现LinkedIn操作自动化,包括发布内容、管理职业资料、与人脉互动以及建立职业联系。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/linkedin/install.sh | bashOr manually:
bash
cp -r skills/linkedin ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/linkedin/install.sh | bash或者手动安装:
bash
cp -r skills/linkedin ~/.canifi/skills/Setup
设置
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
首先,确保已安装canifi-env:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set LINKEDIN_EMAIL "your-email@example.com"
canifi-env set LINKEDIN_PASSWORD "your-password"
undefinedcanifi-env set LINKEDIN_EMAIL "your-email@example.com"
canifi-env set LINKEDIN_PASSWORD "your-password"
undefinedPrivacy & Authentication
隐私与认证
Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭证,由你掌控。 Canifi LifeOS尊重你的隐私。
Option 1: Manual Browser Login (Recommended)
选项1:手动浏览器登录(推荐)
If you prefer not to share credentials with Claude Code:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
- 使用CDP模式完成浏览器自动化设置
- 在Playwright控制的Chrome窗口中手动登录该服务
- Claude将使用你的已认证会话,全程不会获取你的密码
Option 2: Environment Variables
选项2:环境变量
If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭证,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"注意:存储在canifi-env中的凭证仅能在你的本地机器上访问,绝不会被传输到其他地方。
Capabilities
功能
- Create and publish posts
- Share articles and documents
- Like, comment, and share content
- Send connection requests
- Update profile sections
- Search for people and jobs
- Manage company pages
- View post analytics
- 创建并发布帖子
- 分享文章和文档
- 点赞、评论和转发内容
- 发送连接请求
- 更新个人资料板块
- 搜索人脉和工作机会
- 管理公司主页
- 查看帖子分析数据
Usage Examples
使用示例
Example 1: Create a Post
示例1:创建帖子
User: "Post on LinkedIn about our company milestone"
Claude: I'll create that LinkedIn post.
- Navigate to linkedin.com
- Click Start a post
- Write milestone announcement
- Add relevant hashtags
- Publish post
- Confirm posted用户:"在LinkedIn上发布关于我们公司里程碑的帖子"
Claude:我将创建这篇LinkedIn帖子。
- 导航至linkedin.com
- 点击开始发帖
- 撰写里程碑公告
- 添加相关话题标签
- 发布帖子
- 确认发布成功Example 2: Share Article
示例2:分享文章
User: "Share this article on LinkedIn with my thoughts"
Claude: I'll share that article.
- Click share article
- Paste article URL
- Add commentary
- Select visibility
- Post
- Confirm shared用户:"在LinkedIn上分享这篇文章并附上我的看法"
Claude:我将分享这篇文章。
- 点击分享文章
- 粘贴文章URL
- 添加评论
- 选择可见范围
- 发布
- 确认分享成功Example 3: Update Profile
示例3:更新个人资料
User: "Update my LinkedIn headline"
Claude: I'll update your headline.
- Navigate to profile
- Click edit profile
- Update headline section
- Save changes
- Confirm updated用户:"更新我的LinkedIn headline"
Claude:我将更新你的headline。
- 导航至个人资料页面
- 点击编辑资料
- 更新headline板块
- 保存更改
- 确认更新成功Example 4: Engage with Network
示例4:与人脉互动
User: "Like and comment on posts from my connections today"
Claude: I'll engage with your network.
- Navigate to feed
- Review recent posts from connections
- Like relevant content
- Add thoughtful comments
- Track engagement用户:"今天为我联系人的帖子点赞并评论"
Claude:我将帮你与人脉互动。
- 导航至动态页面
- 查看联系人的最新帖子
- 为相关内容点赞
- 添加有深度的评论
- 跟踪互动情况Authentication Flow
认证流程
- Navigate to linkedin.com/login via Playwright MCP
- Enter email and password from canifi-env
- Handle CAPTCHA if presented (notify user)
- Complete 2FA if enabled (notify user via iMessage)
- Verify feed access
- Maintain session cookies
- 通过Playwright MCP导航至linkedin.com/login
- 从canifi-env中读取邮箱和密码并输入
- 若出现CAPTCHA,通知用户完成验证
- 若启用了2FA,通过iMessage通知用户获取验证码
- 验证是否可访问动态页面
- 维护会话Cookie
Error Handling
错误处理
- Login Failed: Clear cookies, verify credentials
- Session Expired: Re-authenticate automatically
- CAPTCHA Required: Notify user to complete
- 2FA Required: iMessage for verification code
- Rate Limited: Pause and implement backoff
- Connection Limit: Notify of weekly limits
- Post Failed: Check content guidelines
- Profile Restriction: Notify user of issues
- 登录失败:清除Cookie,验证凭证
- 会话过期:自动重新认证
- 需要CAPTCHA:通知用户完成验证
- 需要2FA:通过iMessage发送验证码请求
- 速率限制:暂停操作并实现退避策略
- 连接限制:通知用户每周限制
- 帖子发布失败:检查内容是否符合规范
- 资料受限:通知用户相关问题
Self-Improvement Instructions
自我改进说明
When encountering new LinkedIn features:
- Document new UI elements
- Add support for new post types
- Log successful networking patterns
- Update for LinkedIn updates
当遇到LinkedIn的新功能时:
- 记录新的UI元素
- 添加对新帖子类型的支持
- 记录成功的人脉拓展模式
- 针对LinkedIn的更新进行适配
Notes
注意事项
- LinkedIn has strict automation detection
- Premium features require subscription
- Connection limits enforced weekly
- Company pages need admin access
- Post timing affects engagement
- Sales Navigator has different features
- LinkedIn Learning is separate platform
- LinkedIn有严格的自动化检测机制
- 高级功能需要订阅
- 每周有添加联系人的数量限制
- 管理公司主页需要管理员权限
- 帖子发布时间会影响互动量
- Sales Navigator有不同的功能
- LinkedIn Learning是独立平台