Publisher Linkedin
Generate LinkedIn posts from blog content with automatic media attachment via LinkedIn API
$ npx claude-code-templates@latest --command="marketing/publisher-linkedin" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
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:
- Parse Input Arguments
- Optional language parameter (en/ja)
- Optional custom file path for attachment
- Universal Input Detection
- URL: Use WebFetch to retrieve content
- Slug: Search codebase for matching blog post
- Generate Professional LinkedIn Post
- Use professional business tone (敬語) for Japanese
- Extract key insights from actual content
- Include relevant hashtags (2-4 max)
- Add link to full article
- Handle Media Attachment
- Auto-detect: Find blog diagrams if available
- Supported formats: PNG, JPG, JPEG, PDF
- Post via LinkedIn API (using Bash + curl)
- 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:- Create LinkedIn app at https://www.linkedin.com/developers/apps
- 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.Related Claude Code Commands
Publisher All
Generate content for ALL platforms at once (X, LinkedIn, Medium, Dev.to)
Publisher X
Generate copy-pastable X/Twitter threads from blog posts, articles, PDFs, or URLs with 3 format options
Publisher Devto
Generate Dev.to RSS feed from all blog posts for automatic syndication
Publisher Medium
Convert blog posts to Medium-ready HTML format with image upload markers
Generate Tests
Generate a complete test file for a specified source file or component. Use when the user explicitly asks to write, create, or generate tests for a specific file.
Ultra Think
Multi-framework structured analysis: surfaces hidden assumptions, generates competing solutions, stress-tests each with adversarial reasoning, and delivers confidence-calibrated recommendations
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.