Skip to content
CommandImported

publisher-linkedin

Generate LinkedIn posts from blog content with automatic media attachment via LinkedIn API

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 3.3 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/publisher-linkedin.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/publisher-linkedin.zip -d ~/.claude/commands

Instructions

LinkedIn Post Generator

Create professional LinkedIn posts from any content source with optional media attachment.

Usage: $ARGUMENTS

Examples:

/publisher:linkedin my-post                    # Auto-detect and attach blog diagrams
/publisher:linkedin my-post en                 # English with diagrams
/publisher:linkedin my-post en image.png       # Custom image attachment
/publisher:linkedin my-post ja report.pdf      # Japanese with custom PDF

Process:

  1. Parse Input Arguments

    • Content input (slug, file path, or URL)
    • Optional language parameter (en/ja)
    • Optional custom file path for attachment
  2. Universal Input Detection

    • File path: Read and parse (markdown, PDF, HTML, text, JSON)
    • URL: Use WebFetch to retrieve content
    • Slug: Search codebase for matching blog post
  3. Generate Professional LinkedIn Post

    • Use thought leadership tone for English
    • Use professional business tone (敬語) for Japanese
    • Extract key insights from actual content
    • Include relevant hashtags (2-4 max)
    • Add link to full article
  4. Handle Media Attachment

    • Custom file: Use specified image/PDF if provided
    • Auto-detect: Find blog diagrams if available
    • Supported formats: PNG, JPG, JPEG, PDF
  5. Post via LinkedIn API (using Bash + curl)

    • Check for credentials in .env file
    • Handle OAuth flow if needed
    • CRITICAL: Escape LinkedIn Little Text Format reserved characters: | { } @ [ ] ( ) < > # * _ ~
    • Upload media file and get asset URN
    • Create draft post with commentary and media
    • Open LinkedIn in browser for review

LinkedIn API Authentication:

  1. Create LinkedIn app at https://www.linkedin.com/developers/apps
  2. Add credentials to .env:
    LINKEDIN_CLIENT_ID=your_client_id
    LINKEDIN_CLIENT_SECRET=your_secret
    LINKEDIN_ACCESS_TOKEN=your_token (auto-generated on first use)
    

Without API setup: Command still generates the post content for manual copy-paste.

Note: Works in ANY repo type (Python, Rust, Go, etc.) - uses only bash and curl, no Node.js required.

Files

  • LICENSE1 KB
  • publisher-linkedin.md2.3 KB

What the automatic scan found

We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.

  • Needs a lookAllowed tools with no limits

    In file cli-tool/components/commands/marketing/publisher-linkedin.md

  • Needs a lookReads a .env file or secrets

    In file cli-tool/components/commands/marketing/publisher-linkedin.md, line 46

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • CommandImported

    api-mock

    Build realistic API mock servers with request stubbing, dynamic data, test scenarios, and contract testing

    MITFiles: 1

  • CommandImported

    design-rest-api

    Design RESTful API architecture with comprehensive endpoints, authentication, and documentation

    MITFiles: 1

  • CommandImported

    doc-api

    Generate comprehensive API documentation from code with interactive examples and testing capabilities

    MITFiles: 1

  • CommandImported

    feature-development

    Orchestrate end-to-end feature development from requirements to deployment

    MITFiles: 1

  • CommandImported

    generate-api-documentation

    Auto-generate API reference documentation with multiple output formats and automated deployment

    MITFiles: 1

  • CommandImported

    implement-caching-strategy

    Design and implement comprehensive caching solutions for improved performance and scalability

    MITFiles: 1