Linkedin automation

From Zidong-LLC/BIBLIOTECA · View interactive version

Linkedin automation is an AI agent skill from the GitHub repository Zidong-LLC/BIBLIOTECA. Automate LinkedIn tasks via Rube MCP (Composio): create posts, manage profile, company info, comments, and image uploads. Always search tools first for current schemas.

How to use this skill

Skill file

LinkedIn Automation via Rube MCP

Automate LinkedIn operations through Composio's LinkedIn toolkit via Rube MCP.

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit linkedin
  3. If connection is not ACTIVE, follow the returned auth link to complete LinkedIn OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Create a LinkedIn Post

When to use: User wants to publish a text post on LinkedIn

Tool sequence:

  1. LINKEDIN_GET_MY_INFO - Get authenticated user's profile info [Prerequisite]
  2. LINKEDIN_REGISTER_IMAGE_UPLOAD - Register image upload if post includes an image [Optional]
  3. LINKEDIN_CREATE_LINKED_IN_POST - Publish the post [Required]

Key parameters:

Pitfalls:

2. Get Profile Information

When to use: User wants to retrieve their LinkedIn profile or company details

Tool sequence:

  1. LINKEDIN_GET_MY_INFO - Get authenticated user's profile [Required]
  2. LINKEDIN_GET_COMPANY_INFO - Get company page details [Optional]

Key parameters:

Pitfalls:

3. Manage Post Images

When to use: User wants to upload and attach images to LinkedIn posts

Tool sequence:

  1. LINKEDIN_REGISTER_IMAGE_UPLOAD - Register an image upload with LinkedIn [Required]
  2. Upload the image binary to the returned upload URL [Required]
  3. LINKEDIN_GET_IMAGES - Verify uploaded image status [Optional]
  4. LINKEDIN_CREATE_LINKED_IN_POST - Create post with the image asset [Required]

Key parameters:

Pitfalls:

4. Comment on Posts

When to use: User wants to comment on an existing LinkedIn post

Tool sequence:

  1. LINKEDIN_CREATE_COMMENT_ON_POST - Add a comment to a post [Required]

Key parameters:

Pitfalls:

5. Delete a Post

When to use: User wants to remove a previously published LinkedIn post

Tool sequence:

  1. LINKEDIN_DELETE_LINKED_IN_POST - Delete the specified post [Required]

Key parameters:

Pitfalls:

Common Patterns

ID Resolution

User URN from profile:

1. Call LINKEDIN_GET_MY_INFO
2. Extract user URN (e.g., 'urn:li:person:XXXXXXXXXX')
3. Use URN as actor/owner in subsequent calls

Organization ID from company:

1. Call LINKEDIN_GET_COMPANY_INFO with organization_id
2. Extract organization URN for posting as a company page

Image Upload Flow

Known Pitfalls

Authentication:

URN Formats:

Rate Limits:

Content Restrictions:

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| Get my profile | LINKEDIN_GET_MY_INFO | (none) |

| Create post | LINKEDIN_CREATE_LINKED_IN_POST | text, visibility |

| Get company info | LINKEDIN_GET_COMPANY_INFO | organization_id |

| Register image upload | LINKEDIN_REGISTER_IMAGE_UPLOAD | owner |

| Get uploaded images | LINKEDIN_GET_IMAGES | image_id |

| Delete post | LINKEDIN_DELETE_LINKED_IN_POST | post_id |

| Comment on post | LINKEDIN_CREATE_COMMENT_ON_POST | post_id, text, actor |

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.