/marketing-skill:publish-pipelinefrom Marketing Skills
Packages and sends approved content via webhook (n8n, Make, or custom) after confirmation. Integrates with content-calendar and other pipeline plugins.
Ships in Marketing Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Final handoff step: package finished content and any asset references into a structured JSON payload, then send it to the user's own automation system (n8n, Make, or anything else that accepts an incoming webhook) so it can take over scheduling and posting. By default this skill hands off to automation the user already owns rather than posting directly — direct platform posting exists only as an explicit, optional alternate path (see step 5) for users who've set up their own platform API credentials.
Plugin root: if a path below still shows an unexpanded
CLAUDE_PLUGIN_ROOT placeholder (Claude Code fills it in; other agents
such as Codex don't), resolve it before using any of them: take the
output of printenv CLAUDE_PLUGIN_ROOT if it prints a path, otherwise
walk up from this file's folder to the first folder that contains
references/brand-voice.md, and if neither works, ask the user where
this plugin lives. Use that absolute path in every file path and shell
command below.
Check onboarding status. Read
${CLAUDE_PLUGIN_ROOT}/references/brand-voice.md. If it doesn't exist,
or its first line is <!-- MARKETING-SKILL:UNCONFIGURED -->, ask the
user this plugin's 4 setup questions (priority task; content types to
produce; target audience + tone; default output format — same as
/marketing-skill:marketing-setup) before continuing, then save the
answers and flip the marker to CONFIGURED with today's date.
If the file is unconfigured but the user already said to skip setup
or use the defaults, don't ask: use its placeholder defaults for this
run, say so in one line, and leave the marker as it is.
Confirm scope.
content-repurposer,
visual-brief-generator, short-form-video, clip-montage, montage-video,
community-post-generator, a row in state/content-calendar.md, or
pasted directly)?community-post-generator, confirm its Go/No-Go
section actually said go — never send a draft that skill flagged as
blocked by the target community's own rules.${CLAUDE_PLUGIN_ROOT}/state/content-calendar.md, find the matching
row, then read the post file named in that row's Notes column
(state/posts/<date>-<platform-slug>.md) — that file, not the
calendar table, holds the actual content to send. A row with no
post-file path in Notes, or whose named file doesn't exist, isn't a
usable source — say so and stop rather than improvising content
from the short Topic/Hook label. Refuse to re-send a row already
marked Sent without the user explicitly confirming they want to
send it again.MARKETING_WEBHOOK_URL.Assemble the JSON payload using the exact structure below.
Show a clear, human-readable confirmation before any real send — never a raw JSON dump as the only thing shown — and get explicit user go-ahead. This step fires an external side effect the user may not be able to easily undo — never skip it, even if the original request sounded like blanket authorization (e.g. "just publish it"). Silence, a timeout, or no reply in this conversation is never a yes — only an actual affirmative reply counts, and if none arrives, stop here without sending. This applies exactly the same way whether an interactive chat or something else (a scheduled or automated trigger) invoked this skill — there is no framing of "the run itself is standing authorization" that substitutes for a real reply.
state/content-calendar.md
or state/outreach-log.md row, compare that row's Date to today.
Flag anything more than 14 days old (7 days for an outreach-log row,
since personalized prospect research ages faster) as Stale right
in the listing, not in a separate report — a batch mixing fresh and
stale items must show the flag per-row so it can't be missed inside a
larger "yes to all." Don't refuse to send a stale item outright; just
make its age impossible to approve past without seeing it.state/content-calendar.md row, this is the
point where — and only where — its Status may move to Approved,
immediately after the affirmative reply and immediately before
sending, and only for the specific numbers actually named. No skill
in this plugin sets Approved at any other time; content-calendar
in particular never writes it.Send it:
mktemp).the
MARKETING_WEBHOOK_URLenvironment variable > ask the user for one if neither is available.
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/publish_webhook.py --payload-file <tmp-path> --dry-run
to preview, then, only after step 4's confirmation,
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/publish_webhook.py --payload-file <tmp-path> --confirmed
to actually send. The script refuses to run without one of those two
flags — there is no default-sends behavior to be careful about.Sent in
state/content-calendar.md immediately after a successful send
(keep the row — this is the history log, don't delete it).publish_direct.py prints a Posted: line
with the new post's ID and link after a successful send. Put it in
the calendar row's Notes, and add the post's row to
state/video-log.md (a video) or state/post-log.md (anything
else: Reddit, dev.to, LinkedIn, X, a Discord message), with the
Go/No-Go verdict it went out under if it came from
community-post-generator. Without that link its numbers can't be
looked up later. For a webhook hand-off, ask the user for the link
once it's live.scenarios_run, scenarios_list), you may call scenarios_run
directly instead of the webhook script, if the user prefers that.
Don't assume it's connected — check available tools first.${CLAUDE_PLUGIN_ROOT}/scripts/publish_direct.py --help. It only works if the user has already set up real API
credentials for that platform (see the plugin's docs/publishing.md) — check with
--dry-run first, same confirmation rules as above apply, and be
explicit that this path is less proven than the webhook path since it
talks to live platform APIs this plugin's author can't verify from
here. For Reddit specifically, a successful API response doesn't
guarantee the post survives that subreddit's AutoModerator — confirm
the content actually came from a community-post-generator go (not a
no-go) before sending. For Discord, Slack, or Telegram specifically,
confirm the content came from a go too — and since a Discord or Slack
go is always User-Supplied confidence (this skill never
independently verified that server's/workspace's rules), and a
Telegram go is User-Supplied for a private channel/group but can be
Primary/Secondary/Mixed for a public one, check which tier this
specific draft actually rests on rather than assuming — that's one
more reason not to skip step 4's confirmation just because the
request "sounds routine." For Slack in particular, also confirm the
user actually has (or can get) the workspace permission a webhook
needs before treating the send as a quick step — it isn't guaranteed
self-serve the way Discord's is. For Telegram in particular, confirm
the bot has actually been added to the target chat by one of its
admins — creating the bot itself needs no approval from anyone, but
that's only the first of two gates, not the whole thing. For dev.to in
particular, confirm the content came from a go too, and if
community-post-generator's research couldn't confirm the Code of
Conduct's self-promotion wording directly, say so before sending — a
2xx from dev.to's API means the article was accepted, not that a Tag
Moderator won't strip a tag from it afterward. Product Hunt, Hacker
News, and Indie Hackers have no equivalent direct-send path, for
different reasons (see docs/publishing.md): Product Hunt's write API requires
special approval from Product Hunt itself; Hacker News's API has no
write/submit endpoint at all, for anyone; and Indie Hackers' API
situation is unverified rather than confirmed either way, so it's
treated as manual-only too — all three always go out by pasting the
draft in manually (producthunt.com, news.ycombinator.com, or
indiehackers.com), never through this script, and that's permanent
for Hacker News, not a "not yet approved" situation. Discord, Slack,
Telegram, and dev.to each have a real send path but don't share one
friction profile — Discord's webhook needs no approval step, Slack's
app often needs Workspace Owner/Admin approval before creation,
Telegram's bot needs no approval to create but does need a chat admin
to add it before it can post, and dev.to's API key needs no approval
process found in this skill's research at all (the simplest of the
four, though that's about access, not about whether a Tag Moderator
is happy with the result) — so don't lump any of the four into "every
non-Reddit platform here is manual-only," and don't lump them into
each other's ease either.--platform youtube/instagram/
tiktok) are a different shape from every platform above — all
three post actual video, and confirm the content came from
short-form-video, not this skill improvising a caption. If the
video shows realistic AI-made content (an AI avatar presenting, a
cloned voice, a lifelike generated scene), pass --ai-generated: on
YouTube it sets the platform's own synthetic-content disclosure; for
TikTok and Instagram the script stops, since their AI label can't be
set through the API, so the user posts that one from the app with the
label on. Clearly animated videos (the 3D mascot, pixel art, motion
graphics) don't need it. Don't present any of the three with borrowed
ease from another:
--video-path) rather than pointing at a hosted URL; confirm the
asset entry has a real path, not just a url, before offering this
path. --privacy-status defaults to private in the script itself —
flag that plainly so "just post it" doesn't quietly mean "post it
where only you can see it."instagram_business_content_publish actually approved (not just
Development Mode), and — unlike YouTube — the video already hosted
at a public URL, since Instagram's API fetches from a URL rather than
accepting an upload; confirm the asset entry has a real url before
offering this path, and that step 4's confirmation makes clear this
is a three-step, several-second-to-minutes process (container
creation, processing, then publish), not instant.video.publish scope, and —
critically — until the app passes TikTok's own audit, TikTok only
accepts a private (SELF_ONLY) post to a creator account that is
itself set to private, and rejects anything else outright — it
doesn't quietly downgrade a public request. The script checks the
requested privacy level against the creator's allowed options
(TikTok's required creator_info step) before posting, and stops if
it isn't one of them. Never present a TikTok send as reaching a public
audience without the user confirming their app's audit status
directly in TikTok's developer portal first; a 2xx response only
means TikTok accepted and queued the request, not that the video is
live, since TikTok fetches and processes it asynchronously
afterward. Also needs the video at a public URL, same as Instagram,
with that URL's domain pre-verified in TikTok's developer portal.Report the result plainly: exit code, HTTP status if a real send was made, and a one-line human-readable summary of what went where. Never report success if the script exited non-zero.
Trigger on requests like:
{
"run_id": "<uuid or timestamp-based id>",
"timestamp": "<ISO 8601>",
"source_skill": "publish-pipeline",
"content": {
"linkedin_post": "...",
"twitter_thread": ["...", "..."],
"newsletter_blurb": "...",
"reddit_post": { "subreddit": "...", "title": "...", "body": "..." },
"discord_message": "...",
"slack_message": "...",
"telegram_message": "...",
"devto_post": { "title": "...", "body": "...", "tags": ["...", "..."] },
"youtube_short": { "title": "...", "description": "...", "tags": ["...", "..."], "privacy_status": "private|unlisted|public" },
"instagram_reel": { "caption": "..." },
"tiktok_video": { "caption": "..." }
},
"assets": [
{ "type": "image|video", "description": "...", "url": "...or null", "path": "...or null", "prompt_reference": "...", "platform": "youtube_short|instagram_reel|tiktok_video|..." }
],
"metadata": { "campaign": "...", "brand_voice_version": "..." }
}
Omit fields that don't apply (e.g. no assets if none were generated),
but keep the top-level shape stable so downstream n8n/Make workflows can
rely on it. For a youtube_short/instagram_reel/tiktok_video entry,
the matching assets item needs either path (a local file — the only
form YouTube's direct-post option in step 5 can use) or url (a
publicly-reachable hosted link — required for Instagram's and TikTok's
direct-post options in step 5, which fetch the video themselves rather
than accepting an upload); which one is available depends on whether
short-form-video generated the clip via a connected tool (may produce
either) or the user is supplying their own already-hosted video.
--confirmed without
having received an actual affirmative reply in this conversation first.content rather than renaming existing keys.Approved to state/content-calendar.md except in step 4,
immediately after a real human reply, immediately before sending.Approved.youtube/instagram/tiktok sends specifically: never report a
2xx response as "the video is live" — Instagram and TikTok both process
the video asynchronously after that response, so report exactly what the
script itself reported (queued/processing vs. confirmed published), and
never claim a TikTok send reached a public audience without the user
having confirmed their app's audit status.Confirmation display, single item (shown before the dry run below, never replaced by it):
Account: your n8n webhook (automation handoff, not a direct platform post)
Destination: https://your-n8n-host/webhook/abc123
Attachments: none
Final Text:
Speed got us here. It won't be the only thing that keeps us here...
(full LinkedIn post text)
Reply to confirm this exact send, or say what to change first.
Confirmation display, batch of three, one stale:
Three rows are ready to send. Reply with the numbers to approve (e.g.
"1 and 3, skip 2") — an unqualified "send them all" won't be treated as
approving any of these.
1. [Stale — queued 19 days ago] Account: your n8n webhook · Destination:
https://your-n8n-host/webhook/abc123 · Attachments: none · Final Text:
"Most teams lose an afternoon a month to manual exports..."
2. Account: dev.to — personal account · Destination: dev.to (tags:
showdev, saas) · Attachments: none · Final Text: "I built this because
our own export flow was the thing customers complained about most..."
3. Account: your n8n webhook · Destination: https://your-n8n-host/webhook/abc123
· Attachments: 1 image (state/assets/export-diagram.png) · Final Text:
"One-click export is live today for every customer..."
Reported this way regardless of how the request was phrased ("send the
ready ones," "go ahead with today's batch") — a reply naming specific
numbers is the only thing that moves those rows to Approved.
Dry run (the technical payload behind a single confirmed item):
$ python3 ${CLAUDE_PLUGIN_ROOT}/scripts/publish_webhook.py --payload-file /tmp/payload.json --dry-run
=== DRY RUN: no request sent ===
Method: POST
URL: https://your-n8n-host/webhook/abc123
Headers:
Content-Type: application/json
Body (application/json, 412 bytes):
{
"run_id": "2026-09-25T14-30-00",
"timestamp": "2026-09-25T14:30:00Z",
...
}
=== END DRY RUN ===
Reported to the user as: "Dry run only — nothing was sent. Here's the exact payload and destination above; confirm to send for real."
Real send, success:
Sent to https://your-n8n-host/webhook/abc123
Status: 200 OK
Response: (empty body)
Reported as: "Sent successfully (200 OK) to your n8n webhook."
Real send, failure:
Webhook returned non-2xx status
Status: 500 Internal Server Error
Response: {"error": "workflow disabled"}
Reported as: "Send failed — the endpoint returned 500 (workflow disabled). Nothing further was attempted."
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/ad-copy-generatorWrites paid ad copy for Meta (Facebook and Instagram), Google Search, and LinkedIn: several variants, each testing a different hook, sized to each platform's limits. Use whenever someone wants ads, ad headlines, PPC or paid social copy, or variants to A/B test, even for one quick ad./clip-montageEdits the user's own video clips into a finished vertical reel for TikTok, Reels, and Shorts: the best moment of each clip, cuts on the beat, captions, labels, and an end card. Use whenever someone has videos, clips, or footage and wants a montage, reel, recap, tour, or highlights, even before they've sent the files. Only photos: that's montage-video./community-post-generatorWrites a post for one specific community (a subreddit, Show HN, Product Hunt, Indie Hackers, dev.to, Discord, Slack, Telegram) after checking its rules, with a Go/No-Go first. Use whenever someone wants to post, launch, or share in one, even when they pasted the rules or the post looks obvious. LinkedIn, X, or Facebook: that's content-repurposer./competitor-researchWrites a competitor brief or sales battlecard: positioning, recent moves, SWOT, and how to win, with every claim sourced. Use whenever someone asks about a competitor, how two products compare, or for talking points against a rival, even with no web access and only a pasted page or notes to go on./content-calendarPlans and writes a week or month of dated social posts (LinkedIn, X, newsletter, Reddit, short video), checked against the saved calendar so topics don't repeat, and queued for approval. Use whenever someone wants a content calendar, a posting schedule, or the next week's or month's posts, even for one launch week./content-repurposerTurns one piece of content (a blog post, an announcement, notes, or a URL) into a LinkedIn post, an X thread, and a newsletter blurb, each in its channel's format. Use whenever someone wants a LinkedIn post, a tweet or thread, or a newsletter section made from something, even a pasted paragraph. Subreddits and forums: that's community-post-generator.npx claudepluginhub marcosmodly/marketing-skill --plugin marketing-skillOther plugins' skills for the same job