Linkedin posting automation

From NaveedTechLab/skills-library · View interactive version

Linkedin posting automation is an AI agent skill from the GitHub repository NaveedTechLab/skills-library. Automate LinkedIn post creation, review, and publishing with approval-gated workflows. Use when you need a governed system for consistent LinkedIn presence with content quality controls.

How to use this skill

Skill file

LinkedIn Posting Automation

Description

The LinkedIn Posting Automation skill implements automated, approval-gated LinkedIn posting capability as defined in Silver tier requirements. This skill provides a comprehensive system for creating, reviewing, approving, and publishing LinkedIn posts with proper governance and workflow controls.

Purpose

This skill automates the LinkedIn posting process while maintaining proper approval workflows to ensure content quality and brand compliance. It enables organizations to maintain a consistent LinkedIn presence while ensuring all content goes through appropriate review and approval processes.

Key Features

Automated Posting

Approval Workflows

Content Management

LinkedIn API Integration

Governance Controls

Configuration

Default Configuration

{
  "linkedin": {
    "api_version": "202404",
    "oauth_client_id": "",
    "oauth_client_secret": "",
    "redirect_uri": "https://yourdomain.com/linkedin/callback",
    "scopes": ["w_member_social", "w_organization_social", "rw_organization_admin"],
    "page_ids": []
  },
  "approval": {
    "enabled": true,
    "required_approvals": 1,
    "approval_levels": [
      {
        "name": "editorial",
        "role": "content_editor",
        "required": true
      },
      {
        "name": "compliance",
        "role": "compliance_officer",
        "required": false
      }
    ],
    "max_review_days": 7
  },
  "posting": {
    "auto_publish": false,
    "scheduled_buffer_days": 7,
    "max_posts_per_day": 1,
    "optimal_posting_times": ["08:00", "12:00", "16:00"],
    "timezone": "UTC"
  },
  "content": {
    "max_characters": 3000,
    "max_hashtags": 5,
    "media_support": true,
    "supported_media_types": ["image", "video", "document"],
    "max_media_attachments": 1
  },
  "moderation": {
    "enabled": true,
    "ai_content_check": true,
    "brand_keyword_check": true,
    "profanity_filter": true,
    "compliance_keywords": ["confidential", "proprietary", "secret"]
  }
}

Example Post Structure

{
  "id": "post_123",
  "title": "Weekly Tech Insights",
  "content": "Here are this week's key technology trends...",
  "hashtags": ["#Tech", "#Innovation", "#AI"],
  "media_attachments": [
    {
      "url": "https://example.com/image.jpg",
      "alt_text": "Tech trends infographic"
    }
  ],
  "scheduled_time": "2024-01-15T12:00:00Z",
  "target_audience": ["developers", "tech_leaders"],
  "approval_status": "pending",
  "created_by": "author_1",
  "created_at": "2024-01-10T10:00:00Z"
}

Usage Scenarios

Basic Post Creation

from linkedin_posting_automation import LinkedInPostManager

manager = LinkedInPostManager()
post_data = {
    "title": "Company Update",
    "content": "Exciting news about our latest product launch!",
    "hashtags": ["#CompanyNews", "#ProductLaunch"]
}

# Create draft post
draft_post = manager.create_draft(post_data)

# Submit for approval
approval_request = manager.submit_for_approval(draft_post.id)

Approval Workflow

# Get pending approvals
pending_posts = manager.get_pending_approvals(user="approver_1", role="editorial")

# Review and approve
review_result = manager.review_post(
    post_id="post_123",
    reviewer="approver_1",
    status="approved",  # or "rejected"
    feedback="Content looks great!"
)

# Publish approved post
if review_result.status == "approved":
    publish_result = manager.publish_post("post_123")

Scheduled Posting

# Schedule a post for future publication
scheduled_post = manager.schedule_post(
    content="Upcoming webinar announcement",
    scheduled_time="2024-01-20T14:00:00Z",
    hashtags=["#Webinar", "#Education"]
)

# Get content calendar
calendar = manager.get_content_calendar(start_date="2024-01-15", end_date="2024-01-22")

Integration Points

With Content Management Systems

With Approval Systems

With Analytics Platforms

Security Considerations

Performance Considerations

Dependencies

When NOT to Use This Skill

Common Mistakes

Related Skills

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.