gitroomhq/agent-media

Publish to Social

Publish a generated Agent-Media UGC Video to the user''s connected TikTok, Instagram, or X. Connect channels (OAuth) and post or schedule via the REST API. Use after producing a video with make_ugc.

Installation

$ npx skills add gitroomhq/agent-media --skill publish-to-social

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from gitroomhq/agent-media · top by installs.

npx skills add gitroomhq/agent-media

Browse all from gitroomhq/agent-media

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 80
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,021 B
  • docs SUMMARY.md 223 B

History

  1. First recorded snapshot · 122 installs

SKILL.md

Publish to Social

Post a finished agent-media video (an R2 videourl from any of the video skills) to the user's connected social channels — TikTok, Instagram, or X. Works from three surfaces: REST, the CLI (agent-media social ...), and MCP tools (socialchannels / socialconnect / socialpublish). All calls use the user's Authorization: Bearer ma_... token against https://api.agent-media.ai.

1. Connect a channel (one-time, requires the human)

GET    /v1/social/providers             -> connectable networks: tiktok, instagram, instagram-standalone, x
POST   /v1/social/connect { provider }  -> { url }   # the user opens this OAuth url and authorizes
GET    /v1/social/channels              -> { channels: [{ id, name, provider, profile, picture }] }
DELETE /v1/social/channels/:channelId   -> disconnect

The connect step returns an OAuth URL the human must open and authorize — an agent cannot complete OAuth itself. Once authorized, the channel appears in /v1/social/channels with an id you pass to publish.

CLI: agent-media social providers · agent-media social connect x · agent-media social channels. MCP: socialconnect { provider } (returns the URL for the user) · socialchannels.

2. Publish a video

curl -X POST https://api.agent-media.ai/v1/social/publish \
  -H "Authorization: Bearer ma_..." -H "Content-Type: application/json" \
  -d '{ "video_url": "https://pub-...r2.dev/generation-outputs/<user>/<job>/...mp4",
        "channel_ids": ["<channel-id-from-/channels>"],
        "caption": "made with agent-media",
        "type": "now" }'    # or "type":"schedule" + "date":"2026-06-01T10:00:00.000Z"

CLI: agent-media social publish --video <url> --channels <id,id> --caption "..." (add --at <iso> to schedule). MCP: socialpublish { videourl, channel_ids, caption, type }.

videourl must be an agent-media R2 URL (the output of a video skill) — agent-media re-hosts it on the publishing provider for you. channelids come from /v1/social/channels. Per-network requirements (e.g. X reply settings) are filled in server-side; you don't send them.

Returns { success: true, mediaid, postids: ["..."] }. A real post was created only when postids is non-empty — treat an empty postids as a failure, not a success.

Typical flow

  1. Produce a video → makeugcfinaloutput.video_url.
  2. If the user has no connected channel, send them to connect (step 1) — you can't OAuth for them.
  3. Publish that videourl to the chosen channelids; confirm post_ids came back.

Note: social operations run on a shared rate budget — don't poll; connect once and publish on demand.