Cross-Post to Social Media

Cross-post content to LinkedIn, Twitter/X, and Slack. Can be used standalone or called from other skills (e.g., notion-article).

Your Task

  1. Gather context from one of these sources:
    • An article URL passed as argument (e.g., a Notion page URL)
    • A file path passed as argument
    • Current conversation context
  2. Ask the user using AskUserQuestion (can be combined in a single prompt):
    • Which platforms to cross-post to (multiSelect): LinkedIn, Twitter/X, Slack
    • Which language to write the posts in: French, English

    Only proceed with platforms the user selects. Write all posts in the selected language.

  3. Generate platform-appropriate content in the selected language for each selected platform

  4. Show the user a preview of each post before publishing

  5. Sensitive-terms scan (required, before any posting). Write each final post to a temp file and run ~/dev/claude/scripts/scan_sensitive.sh <files>:
    • Exit 0 → proceed.
    • Exit 1 → show the matches and do not post. LinkedIn/X are public: rewrite around the term, or post only after the user explicitly clears that specific match. Slack is internal: ask the user whether the match is acceptable there.
    • Exit 2 (terms list unreachable) → fail closed: report it and don’t post until the scan can run.
  6. Post using the corresponding MCP tool and report results with links

Platform-Specific Formats

LinkedIn

Professional tone, 2-3 short paragraphs:

[Hook - personal insight or question]

[1-2 sentences on what I learned/built/discovered]

[Call to action + link to full article]

#relevantHashtags

Example:

I spent last week deep-diving into MCP servers and how they can automate content distribution.

The result? A workflow that publishes my articles to Notion, then cross-posts to LinkedIn, Twitter, and Slack—all from a single command.

Full write-up with code examples: [link]

#AI #Automation #DeveloperTools

Twitter/X

280 characters max. Key insight + link:

[Punchy statement or question]

[Link to article]

Example:

TIL you can set up MCP servers to automate posting across Slack, LinkedIn, and Twitter from Claude Code.

Here's how I did it: [link]

Slack

Brief summary with the article link. Use the configured channel.

:newspaper: New article: [Title]

[1-2 sentence summary]

:link: [Notion URL]

MCP Tools Used

  • Slack: slack-mcp → add_message tool
  • Twitter: twitter-mcp → post_tweet tool
  • LinkedIn: linkedin-mcp → create_post tool

If a platform’s MCP server is not configured, inform the user and skip it. See issue #14 in the claude repo for setup instructions.


This site uses Just the Docs, a documentation theme for Jekyll.