[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77RX4XSHSTB807Y1FMN1QCA":3,"skill-same:01M77RX4XSHSTB807Y1FMN1QCA":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M77RX4XSHSTB807Y1FMN1QCA","posta",null,"Post to Instagram, TikTok, LinkedIn, YouTube, X\u002FTwitter, Facebook, Pinterest, Threads and Bluesky from your terminal. Create posts with AI-generated images and captions, upload media, schedule or publish instantly, view analytics, and manage all your social accounts — without leaving your editor. Use this skill when the user wants to create social media content, generate images\u002Fvideos\u002Ftext with AI, upload media, create posts, schedule or publish posts, view analytics, compare post performance, or manage social accounts through Posta.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fposta\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: posta\ndescription: Post to Instagram, TikTok, LinkedIn, YouTube, X\u002FTwitter, Facebook, Pinterest, Threads and Bluesky from your terminal. Create posts with AI-generated images and captions, upload media, schedule or publish instantly, view analytics, and manage all your social accounts — without leaving your editor. Use this skill when the user wants to create social media content, generate images\u002Fvideos\u002Ftext with AI, upload media, create posts, schedule or publish posts, view analytics, compare post performance, or manage social accounts through Posta.\nlicense: MIT\nhomepage: https:\u002F\u002Fgithub.com\u002FSTGime\u002Fposta-skill\nmetadata:\n  author: Posta\n  version: 1.2.2\n  tags:\n    - social-media\n    - scheduling\n    - analytics\n    - content-generation\n    - instagram\n    - tiktok\n    - twitter\n    - linkedin\n  clawdbot:\n    requires:\n      env:\n        - POSTA_API_TOKEN\n      bins:\n        - curl\n        - jq\n    primaryEnv: POSTA_API_TOKEN\n---\n\n# Posta — Social Media Content & Scheduling\n\nPosta is a social media management platform that lets you create, schedule, and publish posts across Instagram, TikTok, Facebook, X\u002FTwitter, LinkedIn, YouTube, Pinterest, Threads, and Bluesky.\n\nThis skill enables you to interact with the Posta API to manage social media content end-to-end: authenticate, list accounts, upload media, create\u002Fschedule\u002Fpublish posts, generate AI content, and view analytics.\n\n## Setup\n\n### Authentication (one of the following)\n\n- `POSTA_API_TOKEN` — **Recommended.** Personal API token (starts with `posta_`). Long-lived, revocable, no password exposure.\n- `POSTA_EMAIL` + `POSTA_PASSWORD` — Legacy login. The skill logs in and caches a JWT automatically.\n\nIf `POSTA_API_TOKEN` is set, email\u002Fpassword are not needed and the login flow is skipped entirely.\n\n### Optional Environment Variables\n\n- `POSTA_BASE_URL` — API base URL (default: `https:\u002F\u002Fapi.getposta.app\u002Fv1`)\n- `FIREWORKS_API_KEY` — Fireworks.ai API key (for image generation). Keys start with `fw_`. Get one at https:\u002F\u002Ffireworks.ai\u002Faccount\u002Fapi-keys. The skill auto-discovers this from env vars, `~\u002F.posta\u002Fcredentials`, or `.env` files.\n- `GEMINI_API_KEY` — Google Gemini API key (for caption\u002Ftext generation)\n- `OPENAI_API_KEY` — OpenAI API key (alternative text generation)\n\n### Credentials Auto-Discovery\n\nThe skill searches a fixed list of dedicated config files for `POSTA_API_TOKEN` (or legacy `POSTA_EMAIL`\u002F`POSTA_PASSWORD`). Only exact variable names are matched — no other file content is read. Shell profiles (`~\u002F.zshrc`, `~\u002F.bashrc`) are **never** accessed. Search order:\n\n1. Already-set environment variables (no file access)\n2. `~\u002F.posta\u002Fcredentials` — dedicated Posta config file (preferred)\n3. `.env`, `.env.local`, `.env.production` in the working directory\n\nIf `POSTA_API_TOKEN` is found, the skill uses it immediately and skips email\u002Fpassword lookup. See `SECURITY.md` in the repo root for full details.\n\n### Helper Script\n\nSource the bash helper for all API interactions:\n\n```bash\nsource \"${POSTA_SKILL_ROOT:-${OPENCLAW_SKILL_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}}\u002Fskills\u002Fposta\u002Fscripts\u002Fposta-api.sh\"\n```\n\nThis provides:\n- **Auth & Core:** `posta_login`, `posta_get_token`, `posta_api`, `posta_discover_credentials`\n- **Media:** `posta_detect_mime`, `posta_upload_media`, `posta_upload_from_url`, `posta_list_media`, `posta_get_media`, `posta_delete_media`, `posta_generate_carousel_pdf`\n- **Posts:** `posta_list_posts`, `posta_create_post`, `posta_create_post_from_file`, `posta_get_post`, `posta_update_post`, `posta_delete_post`, `posta_schedule_post`, `posta_publish_post`, `posta_cancel_post`, `posta_get_calendar`\n- **Platform Discovery:** `posta_list_platforms`, `posta_get_platform_specs`, `posta_get_aspect_ratios`, `posta_get_platform`, `posta_get_pinterest_boards`\n- **Analytics:** `posta_get_analytics_overview`, `posta_get_analytics_capabilities`, `posta_get_analytics_posts`, `posta_get_post_analytics`, `posta_get_analytics_trends`, `posta_get_best_times`, `posta_get_content_types`, `posta_get_hashtag_analytics`, `posta_compare_posts`, `posta_get_benchmarks`, `posta_export_analytics_csv`, `posta_export_analytics_pdf`, `posta_refresh_post_analytics`, `posta_refresh_all_analytics`\n- **User:** `posta_get_plan`, `posta_get_profile`, `posta_update_profile`\n- **Fireworks:** `fireworks_validate_key`\n\n### Reference Docs\n\n- [Posta API Reference](references\u002Fposta-api-reference.md) — Full REST API documentation\n- [Content Generation Patterns](references\u002Fcontent-generation.md) — Fireworks\u002FGemini\u002FOpenAI usage\n- [Workflow Examples](examples\u002Fworkflows.md) — Full example conversations\n\n---\n\n## Core Workflows\n\n### 1. Authenticate\n\nAuthentication is automatic. If `POSTA_API_TOKEN` is set, the skill uses it directly — no login step needed. Otherwise it falls back to email\u002Fpassword login with JWT caching. If a request returns 401:\n- **API token**: reports the token is invalid\u002Frevoked (no retry)\n- **JWT**: re-authenticates and retries once\n\n```bash\nsource \"${POSTA_SKILL_ROOT:-${OPENCLAW_SKILL_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}}\u002Fskills\u002Fposta\u002Fscripts\u002Fposta-api.sh\"\n# Token is fetched\u002Fcached automatically on first API call\n```\n\nTo verify credentials are working:\n```bash\nposta_api GET \"\u002Fauth\u002Fme\"\n```\n\n### 2. List Connected Social Accounts\n\n```bash\nACCOUNTS=$(posta_list_accounts)\n# Returns a plain array (wrapper is auto-unwrapped)\necho \"$ACCOUNTS\" | jq -r '.[] | \"\\(.platform)\\t\\(.username)\\t\\(.isActive)\"'\n```\n\nDisplay as a table showing: Platform, Username, Active status, Last used.\n\n> **Note:** Account IDs from `posta_list_accounts` are integers (e.g. `35`). Wrap them in quotes when passing to `socialAccountIds`: `\"socialAccountIds\": [\"35\"]`\n\n### 3. Upload Media\n\nThe upload flow has 3 steps: create signed URL → PUT binary → confirm upload. MIME type is auto-detected from the file — no need to specify it manually.\n\n**From a local file (auto-detect MIME):**\n```bash\nMEDIA_ID=$(posta_upload_media \"\u002Fpath\u002Fto\u002Ffile.jpg\")\n```\n\n**From a local file (explicit MIME):**\n```bash\nMEDIA_ID=$(posta_upload_media \"\u002Fpath\u002Fto\u002Ffile.jpg\" \"image\u002Fjpeg\")\n```\n\n**From a URL (auto-detect from extension):**\n```bash\nMEDIA_ID=$(posta_upload_from_url \"https:\u002F\u002Fexample.com\u002Fimage.png\")\n```\n\n**Detect MIME type separately:**\n```bash\nMIME=$(posta_detect_mime \"\u002Fpath\u002Fto\u002Ffile.mp4\")\n# Returns: video\u002Fmp4\n```\n\n**Supported formats:**\n- Images: `image\u002Fjpeg`, `image\u002Fpng`, `image\u002Fwebp`, `image\u002Fgif` (max 20MB)\n- Videos: `video\u002Fmp4`, `video\u002Fquicktime`, `video\u002Fwebm` (max 500MB)\n\nAfter upload, the media enters `processing` status. For images this is fast (thumbnails\u002Fvariants). For videos it takes longer. Check status with:\n```bash\nposta_get_media \"$MEDIA_ID\"\n```\n\n**List media library:**\n```bash\nALL_MEDIA=$(posta_list_media)\nIMAGES_ONLY=$(posta_list_media \"image\")\nCOMPLETED=$(posta_list_media \"\" \"completed\" 50)\n```\n\n**Delete media:**\n```bash\nposta_delete_media \"$MEDIA_ID\"\n```\n\n**Generate carousel PDF from images:**\n```bash\nRESULT=$(posta_generate_carousel_pdf '[\"media-id-1\", \"media-id-2\", \"media-id-3\"]' \"My Carousel Title\")\n```\n\n### 4. Create, Schedule & Publish Posts\n\n**Create a draft post:**\n```bash\nPOST=$(posta_create_post '{\n  \"caption\": \"Your caption here\",\n  \"hashtags\": [\"tag1\", \"tag2\"],\n  \"mediaIds\": [\"media-uuid\"],\n  \"socialAccountIds\": [\"35\", \"42\"],\n  \"isDraft\": true\n}')\nPOST_ID=$(echo \"$POST\" | jq -r '.id')\n```\n\n**Create a post with multiline caption (from file):**\n```bash\ncat > \u002Ftmp\u002Fcaption.txt \u003C\u003C 'EOF'\nLine one of the caption.\n\nLine two with details.\n\nCall to action here.\nEOF\nPOST=$(posta_create_post_from_file \u002Ftmp\u002Fcaption.txt '[\"media-uuid\"]' '[\"35\", \"42\"]' true '[\"tag1\", \"tag2\"]')\nPOST_ID=$(echo \"$POST\" | jq -r '.id')\n```\n\n**Schedule for a specific time:**\n```bash\nposta_schedule_post \"$POST_ID\" \"2026-03-15T09:00:00Z\"\n```\n\n**Reschedule an already-scheduled post:**\nThe API only allows scheduling posts in draft status. To reschedule, cancel first, then schedule again:\n```bash\nposta_cancel_post \"$POST_ID\"\nposta_schedule_post \"$POST_ID\" \"2026-03-16T09:00:00Z\"\n```\n\n**Publish immediately:**\n```bash\nposta_publish_post \"$POST_ID\"\n```\n\n**Platform-specific configuration** (optional):\n```json\n{\n  \"platformConfigurations\": {\n    \"tiktok\": {\n      \"privacyLevel\": \"PUBLIC_TO_EVERYONE\",\n      \"allowComment\": true,\n      \"allowDuet\": false,\n      \"allowStitch\": false\n    },\n    \"pinterest\": {\n      \"boardId\": \"board-id\",\n      \"link\": \"https:\u002F\u002Fyour-link.com\",\n      \"altText\": \"Image description\"\n    }\n  }\n}\n```\n\nNote: Either `caption` or at least one `mediaIds` entry is required. Text-only posts work for X\u002FTwitter.\n\n### 5. Generate AI Content\n\n**Generate an image with Fireworks SDXL:**\n```bash\ncurl -s -X POST \\\n  \"https:\u002F\u002Fapi.fireworks.ai\u002Finference\u002Fv1\u002Fimage_generation\u002Faccounts\u002Ffireworks\u002Fmodels\u002Fstable-diffusion-xl-1024-v1-0\" \\\n  -H \"Authorization: Bearer ${FIREWORKS_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Accept: image\u002Fpng\" \\\n  -d '{\n    \"prompt\": \"your descriptive prompt, photorealistic, natural colors, high quality, detailed\",\n    \"negative_prompt\": \"text, watermark, blurry, low quality, distorted\",\n    \"width\": 1024, \"height\": 1024, \"steps\": 30, \"guidance_scale\": 7.5\n  }' --output \u002Ftmp\u002Fgenerated.png\n\nMEDIA_ID=$(posta_upload_media \u002Ftmp\u002Fgenerated.png \"image\u002Fpng\")\n```\n\n**Generate a caption with Gemini:**\n```bash\nCAPTION=$(curl -s -X POST \\\n  \"https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002Fgemini-2.0-flash:generateContent?key=${GEMINI_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"contents\": [{\"parts\": [{\"text\": \"Write an engaging Instagram caption about [topic]. Max 150 words.\"}]}],\n    \"generationConfig\": {\"temperature\": 0.8, \"maxOutputTokens\": 300}\n  }' | jq -r '.candidates[0].content.parts[0].text')\n```\n\nSee [content-generation.md](references\u002Fcontent-generation.md) for full patterns including OpenAI and hashtag generation.\n\n### 6. View Analytics\n\n**Overview stats:**\n```bash\nOVERVIEW=$(posta_get_analytics_overview \"30d\")\necho \"$OVERVIEW\" | jq '{totalPosts, totalImpressions, totalEngagements, avgEngagementRate}'\n```\n\n**Best posting times:**\n```bash\nBEST_TIMES=$(posta_get_best_times)\n```\n\n**Top performing posts:**\n```bash\nTOP=$(posta_api GET \"\u002Fanalytics\u002Fposts?limit=10&sortBy=engagements&sortOrder=desc\")\n```\n\n**Trends over time:**\n```bash\nTRENDS=$(posta_api GET \"\u002Fanalytics\u002Ftrends?period=30d&metric=engagements\")\n```\n\n**Check plan and usage:**\n```bash\nPLAN=$(posta_get_plan)\necho \"$PLAN\" | jq '{plan, usage, limits}'\n```\n\n### 7. Platform Discovery\n\nQuery platform capabilities, character limits, media requirements, and supported features before creating posts.\n\n**List all supported platforms:**\n```bash\nposta_list_platforms\n```\n\n**Get full specs (char limits, media requirements, features):**\n```bash\nSPECS=$(posta_get_platform_specs)\n```\n\n**Get specs for a specific platform:**\n```bash\nposta_get_platform \"instagram\"\n```\n\n**Get aspect ratio reference:**\n```bash\nposta_get_aspect_ratios\n```\n\n**Get Pinterest boards for a connected account:**\n```bash\nBOARDS=$(posta_get_pinterest_boards \"$ACCOUNT_ID\")\n```\n\nUse platform discovery to validate content before posting — check character limits, required media dimensions, and supported post types.\n\n### 8. Calendar View\n\nView scheduled and posted content on a calendar:\n```bash\nCALENDAR=$(posta_get_calendar \"2026-03-01\" \"2026-03-31\")\necho \"$CALENDAR\" | jq '.items[] | {id, caption: .caption[:50], status, scheduledAt}'\n```\n\n### 9. Extended Analytics\n\n**Analytics capabilities (what your plan supports):**\n```bash\nposta_get_analytics_capabilities\n```\n\n**Top performing posts (sorted, paginated):**\n```bash\nTOP=$(posta_get_analytics_posts 10 0 \"engagements\" \"desc\")\n```\n\n**Single post analytics:**\n```bash\nposta_get_post_analytics \"$POST_ID\"\n```\n\n**Trends over time with custom period:**\n```bash\nTRENDS=$(posta_get_analytics_trends \"90d\" \"engagement_rate\")\n```\n\n**Content type performance breakdown:**\n```bash\nposta_get_content_types\n```\n\n**Hashtag performance (pro plan):**\n```bash\nposta_get_hashtag_analytics\n```\n\n**Compare posts side by side (2-4 posts, pro plan):**\n```bash\nposta_compare_posts \"post-id-1,post-id-2,post-id-3\"\n```\n\n**Engagement benchmarks (pro plan):**\n```bash\nposta_get_benchmarks\n```\n\n**Export analytics:**\n```bash\nposta_export_analytics_csv \"30d\"\nposta_export_analytics_pdf \"90d\"\n```\n\n**Refresh analytics:**\n```bash\nposta_refresh_post_analytics \"$POST_RESULT_ID\"\nposta_refresh_all_analytics  # Rate limited: 1 per hour\n```\n\n---\n\n## Guidelines\n\n1. **Always show a preview before publishing.** Display the caption, target platforms, media description, and scheduled time. Ask for confirmation before calling publish or schedule.\n\n2. **Suggest optimal posting times.** When the user wants to schedule, fetch best-times analytics and recommend the highest-engagement time slot.\n\n3. **Ask before spending API credits.** Image generation (Fireworks) and text generation (Gemini\u002FOpenAI) cost money. Confirm with the user before making generation API calls.\n\n4. **Handle errors gracefully.** If an API call fails, show the error message and suggest next steps (check credentials, verify account connection, check plan limits).\n\n5. **Respect plan limits.** Check the user's plan with `posta_get_plan` before attempting operations that may exceed limits (posts, accounts, storage).\n\n6. **Use appropriate aspect ratios.** Match the content format to the target platform — portrait for TikTok\u002FReels, square for Instagram feed, landscape for LinkedIn\u002FX.\n\n7. **Create posts as drafts first.** Always set `isDraft: true` when creating posts, then schedule or publish after user confirmation.\n\n8. **Combine media types strategically.** For maximum reach, generate both an image (for Instagram\u002FLinkedIn) and a video (for TikTok\u002FReels) from the same content.\n\n9. **Preview generated images before uploading.** After generating an image with Fireworks, use the Read tool to preview it visually before uploading to Posta. This prevents wasted uploads and media quota.\n\n10. **Use `posta_create_post_from_file` for multiline captions.** Write the caption to a temp file and use the file-based helper instead of trying to embed multiline text in JSON strings. This avoids escaping issues.\n\n11. **Suggest hashtags for posts.** When creating a post, suggest 5–10 relevant hashtags based on the caption content, target platform, and topic. Mix broad reach tags (e.g. #AI, #Marketing) with niche tags (e.g. #LaborMarket, #FutureOfWork). Show the suggested hashtags to the user and include them in the post only after the user approves or edits them.\n\n12. **Use `\u002Ftmp\u002F.posta_last_response` for captured output.** When capturing `posta_api` output in a variable with `$()`, avoid using `echo` to re-output it — macOS echo corrupts `\\n` in JSON strings. Instead pipe directly (`posta_api ... | jq`) or read from the file (`jq ... \u002Ftmp\u002F.posta_last_response`).\n\n13. **Use platform discovery for validation.** Before creating posts for unfamiliar platforms, call `posta_get_platform_specs` or `posta_get_platform \"\u003Cplatform>\"` to check character limits, required media dimensions, and supported features. This prevents failed posts due to platform constraints.\n\n14. **Auto MIME detection for uploads.** When uploading media, you can omit the MIME type parameter — `posta_upload_media` and `posta_upload_from_url` auto-detect it from the file content or extension. Only specify MIME type manually when the auto-detection might be wrong (e.g., `.bin` files).\n\n15. **Always set TikTok privacy level.** When creating posts that include TikTok, you MUST include `platformConfigurations.tiktok.privacyLevel` — TikTok requires it and publishing will fail without it. Use `\"PUBLIC_TO_EVERYONE\"` unless the user specifies otherwise. Valid values: `PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `SELF_ONLY`, `FOLLOWER_OF_CREATOR`.\n","# Posta — Social Media Content & Scheduling\n\nPosta is a social media management platform that lets you create, schedule, and publish posts across Instagram, TikTok, Facebook, X\u002FTwitter, LinkedIn, YouTube, Pinterest, Threads, and Bluesky.\n\nThis skill enables you to interact with the Posta API to manage social media content end-to-end: authenticate, list accounts, upload media, create\u002Fschedule\u002Fpublish posts, generate AI content, and view analytics.\n\n## Setup\n\n### Authentication (one of the following)\n\n- `POSTA_API_TOKEN` — **Recommended.** Personal API token (starts with `posta_`). Long-lived, revocable, no password exposure.\n- `POSTA_EMAIL` + `POSTA_PASSWORD` — Legacy login. The skill logs in and caches a JWT automatically.\n\nIf `POSTA_API_TOKEN` is set, email\u002Fpassword are not needed and the login flow is skipped entirely.\n\n### Optional Environment Variables\n\n- `POSTA_BASE_URL` — API base URL (default: `https:\u002F\u002Fapi.getposta.app\u002Fv1`)\n- `FIREWORKS_API_KEY` — Fireworks.ai API key (for image generation). Keys start with `fw_`. Get one at https:\u002F\u002Ffireworks.ai\u002Faccount\u002Fapi-keys. The skill auto-discovers this from env vars, `~\u002F.posta\u002Fcredentials`, or `.env` files.\n- `GEMINI_API_KEY` — Google Gemini API key (for caption\u002Ftext generation)\n- `OPENAI_API_KEY` — OpenAI API key (alternative text generation)\n\n### Credentials Auto-Discovery\n\nThe skill searches a fixed list of dedicated config files for `POSTA_API_TOKEN` (or legacy `POSTA_EMAIL`\u002F`POSTA_PASSWORD`). Only exact variable names are matched — no other file content is read. Shell profiles (`~\u002F.zshrc`, `~\u002F.bashrc`) are **never** accessed. Search order:\n\n1. Already-set environment variables (no file access)\n2. `~\u002F.posta\u002Fcredentials` — dedicated Posta config file (preferred)\n3. `.env`, `.env.local`, `.env.production` in the working directory\n\nIf `POSTA_API_TOKEN` is found, the skill uses it immediately and skips email\u002Fpassword lookup. See `SECURITY.md` in the repo root for full details.\n\n### Helper Script\n\nSource the bash helper for all API interactions:\n\n```bash\nsource \"${POSTA_SKILL_ROOT:-${OPENCLAW_SKILL_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}}\u002Fskills\u002Fposta\u002Fscripts\u002Fposta-api.sh\"\n```\n\nThis provides:\n- **Auth & Core:** `posta_login`, `posta_get_token`, `posta_api`, `posta_discover_credentials`\n- **Media:** `posta_detect_mime`, `posta_upload_media`, `posta_upload_from_url`, `posta_list_media`, `posta_get_media`, `posta_delete_media`, `posta_generate_carousel_pdf`\n- **Posts:** `posta_list_posts`, `posta_create_post`, `posta_create_post_from_file`, `posta_get_post`, `posta_update_post`, `posta_delete_post`, `posta_schedule_post`, `posta_publish_post`, `posta_cancel_post`, `posta_get_calendar`\n- **Platform Discovery:** `posta_list_platforms`, `posta_get_platform_specs`, `posta_get_aspect_ratios`, `posta_get_platform`, `posta_get_pinterest_boards`\n- **Analytics:** `posta_get_analytics_overview`, `posta_get_analytics_capabilities`, `posta_get_analytics_posts`, `posta_get_post_analytics`, `posta_get_analytics_trends`, `posta_get_best_times`, `posta_get_content_types`, `posta_get_hashtag_analytics`, `posta_compare_posts`, `posta_get_benchmarks`, `posta_export_analytics_csv`, `posta_export_analytics_pdf`, `posta_refresh_post_analytics`, `posta_refresh_all_analytics`\n- **User:** `posta_get_plan`, `posta_get_profile`, `posta_update_profile`\n- **Fireworks:** `fireworks_validate_key`\n\n### Reference Docs\n\n- [Posta API Reference](references\u002Fposta-api-reference.md) — Full REST API documentation\n- [Content Generation Patterns](references\u002Fcontent-generation.md) — Fireworks\u002FGemini\u002FOpenAI usage\n- [Workflow Examples](examples\u002Fworkflows.md) — Full example conversations\n\n---\n\n## Core Workflows\n\n### 1. Authenticate\n\nAuthentication is automatic. If `POSTA_API_TOKEN` is set, the skill uses it directly — no login step needed. Otherwise it falls back to email\u002Fpassword login with JWT caching. If a request returns 401:\n- **API token**: reports the token is invalid\u002Frevoked (no retry)\n- **JWT**: re-authenticates and retries once\n\n```bash\nsource \"${POSTA_SKILL_ROOT:-${OPENCLAW_SKILL_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}}\u002Fskills\u002Fposta\u002Fscripts\u002Fposta-api.sh\"\n# Token is fetched\u002Fcached automatically on first API call\n```\n\nTo verify credentials are working:\n```bash\nposta_api GET \"\u002Fauth\u002Fme\"\n```\n\n### 2. List Connected Social Accounts\n\n```bash\nACCOUNTS=$(posta_list_accounts)\n# Returns a plain array (wrapper is auto-unwrapped)\necho \"$ACCOUNTS\" | jq -r '.[] | \"\\(.platform)\\t\\(.username)\\t\\(.isActive)\"'\n```\n\nDisplay as a table showing: Platform, Username, Active status, Last used.\n\n> **Note:** Account IDs from `posta_list_accounts` are integers (e.g. `35`). Wrap them in quotes when passing to `socialAccountIds`: `\"socialAccountIds\": [\"35\"]`\n\n### 3. Upload Media\n\nThe upload flow has 3 steps: create signed URL → PUT binary → confirm upload. MIME type is auto-detected from the file — no need to specify it manually.\n\n**From a local file (auto-detect MIME):**\n```bash\nMEDIA_ID=$(posta_upload_media \"\u002Fpath\u002Fto\u002Ffile.jpg\")\n```\n\n**From a local file (explicit MIME):**\n```bash\nMEDIA_ID=$(posta_upload_media \"\u002Fpath\u002Fto\u002Ffile.jpg\" \"image\u002Fjpeg\")\n```\n\n**From a URL (auto-detect from extension):**\n```bash\nMEDIA_ID=$(posta_upload_from_url \"https:\u002F\u002Fexample.com\u002Fimage.png\")\n```\n\n**Detect MIME type separately:**\n```bash\nMIME=$(posta_detect_mime \"\u002Fpath\u002Fto\u002Ffile.mp4\")\n# Returns: video\u002Fmp4\n```\n\n**Supported formats:**\n- Images: `image\u002Fjpeg`, `image\u002Fpng`, `image\u002Fwebp`, `image\u002Fgif` (max 20MB)\n- Videos: `video\u002Fmp4`, `video\u002Fquicktime`, `video\u002Fwebm` (max 500MB)\n\nAfter upload, the media enters `processing` status. For images this is fast (thumbnails\u002Fvariants). For videos it takes longer. Check status with:\n```bash\nposta_get_media \"$MEDIA_ID\"\n```\n\n**List media library:**\n```bash\nALL_MEDIA=$(posta_list_media)\nIMAGES_ONLY=$(posta_list_media \"image\")\nCOMPLETED=$(posta_list_media \"\" \"completed\" 50)\n```\n\n**Delete media:**\n```bash\nposta_delete_media \"$MEDIA_ID\"\n```\n\n**Generate carousel PDF from images:**\n```bash\nRESULT=$(posta_generate_carousel_pdf '[\"media-id-1\", \"media-id-2\", \"media-id-3\"]' \"My Carousel Title\")\n```\n\n### 4. Create, Schedule & Publish Posts\n\n**Create a draft post:**\n```bash\nPOST=$(posta_create_post '{\n  \"caption\": \"Your caption here\",\n  \"hashtags\": [\"tag1\", \"tag2\"],\n  \"mediaIds\": [\"media-uuid\"],\n  \"socialAccountIds\": [\"35\", \"42\"],\n  \"isDraft\": true\n}')\nPOST_ID=$(echo \"$POST\" | jq -r '.id')\n```\n\n**Create a post with multiline caption (from file):**\n```bash\ncat > \u002Ftmp\u002Fcaption.txt \u003C\u003C 'EOF'\nLine one of the caption.\n\nLine two with details.\n\nCall to action here.\nEOF\nPOST=$(posta_create_post_from_file \u002Ftmp\u002Fcaption.txt '[\"media-uuid\"]' '[\"35\", \"42\"]' true '[\"tag1\", \"tag2\"]')\nPOST_ID=$(echo \"$POST\" | jq -r '.id')\n```\n\n**Schedule for a specific time:**\n```bash\nposta_schedule_post \"$POST_ID\" \"2026-03-15T09:00:00Z\"\n```\n\n**Reschedule an already-scheduled post:**\nThe API only allows scheduling posts in draft status. To reschedule, cancel first, then schedule again:\n```bash\nposta_cancel_post \"$POST_ID\"\nposta_schedule_post \"$POST_ID\" \"2026-03-16T09:00:00Z\"\n```\n\n**Publish immediately:**\n```bash\nposta_publish_post \"$POST_ID\"\n```\n\n**Platform-specific configuration** (optional):\n```json\n{\n  \"platformConfigurations\": {\n    \"tiktok\": {\n      \"privacyLevel\": \"PUBLIC_TO_EVERYONE\",\n      \"allowComment\": true,\n      \"allowDuet\": false,\n      \"allowStitch\": false\n    },\n    \"pinterest\": {\n      \"boardId\": \"board-id\",\n      \"link\": \"https:\u002F\u002Fyour-link.com\",\n      \"altText\": \"Image description\"\n    }\n  }\n}\n```\n\nNote: Either `caption` or at least one `mediaIds` entry is required. Text-only posts work for X\u002FTwitter.\n\n### 5. Generate AI Content\n\n**Generate an image with Fireworks SDXL:**\n```bash\ncurl -s -X POST \\\n  \"https:\u002F\u002Fapi.fireworks.ai\u002Finference\u002Fv1\u002Fimage_generation\u002Faccounts\u002Ffireworks\u002Fmodels\u002Fstable-diffusion-xl-1024-v1-0\" \\\n  -H \"Authorization: Bearer ${FIREWORKS_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Accept: image\u002Fpng\" \\\n  -d '{\n    \"prompt\": \"your descriptive prompt, photorealistic, natural colors, high quality, detailed\",\n    \"negative_prompt\": \"text, watermark, blurry, low quality, distorted\",\n    \"width\": 1024, \"height\": 1024, \"steps\": 30, \"guidance_scale\": 7.5\n  }' --output \u002Ftmp\u002Fgenerated.png\n\nMEDIA_ID=$(posta_upload_media \u002Ftmp\u002Fgenerated.png \"image\u002Fpng\")\n```\n\n**Generate a caption with Gemini:**\n```bash\nCAPTION=$(curl -s -X POST \\\n  \"https:\u002F\u002Fgenerativelanguage.googleapis.com\u002Fv1beta\u002Fmodels\u002Fgemini-2.0-flash:generateContent?key=${GEMINI_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"contents\": [{\"parts\": [{\"text\": \"Write an engaging Instagram caption about [topic]. Max 150 words.\"}]}],\n    \"generationConfig\": {\"temperature\": 0.8, \"maxOutputTokens\": 300}\n  }' | jq -r '.candidates[0].content.parts[0].text')\n```\n\nSee [content-generation.md](references\u002Fcontent-generation.md) for full patterns including OpenAI and hashtag generation.\n\n### 6. View Analytics\n\n**Overview stats:**\n```bash\nOVERVIEW=$(posta_get_analytics_overview \"30d\")\necho \"$OVERVIEW\" | jq '{totalPosts, totalImpressions, totalEngagements, avgEngagementRate}'\n```\n\n**Best posting times:**\n```bash\nBEST_TIMES=$(posta_get_best_times)\n```\n\n**Top performing posts:**\n```bash\nTOP=$(posta_api GET \"\u002Fanalytics\u002Fposts?limit=10&sortBy=engagements&sortOrder=desc\")\n```\n\n**Trends over time:**\n```bash\nTRENDS=$(posta_api GET \"\u002Fanalytics\u002Ftrends?period=30d&metric=engagements\")\n```\n\n**Check plan and usage:**\n```bash\nPLAN=$(posta_get_plan)\necho \"$PLAN\" | jq '{plan, usage, limits}'\n```\n\n### 7. Platform Discovery\n\nQuery platform capabilities, character limits, media requirements, and supported features before creating posts.\n\n**List all supported platforms:**\n```bash\nposta_list_platforms\n```\n\n**Get full specs (char limits, media requirements, features):**\n```bash\nSPECS=$(posta_get_platform_specs)\n```\n\n**Get specs for a specific platform:**\n```bash\nposta_get_platform \"instagram\"\n```\n\n**Get aspect ratio reference:**\n```bash\nposta_get_aspect_ratios\n```\n\n**Get Pinterest boards for a connected account:**\n```bash\nBOARDS=$(posta_get_pinterest_boards \"$ACCOUNT_ID\")\n```\n\nUse platform discovery to validate content before posting — check character limits, required media dimensions, and supported post types.\n\n### 8. Calendar View\n\nView scheduled and posted content on a calendar:\n```bash\nCALENDAR=$(posta_get_calendar \"2026-03-01\" \"2026-03-31\")\necho \"$CALENDAR\" | jq '.items[] | {id, caption: .caption[:50], status, scheduledAt}'\n```\n\n### 9. Extended Analytics\n\n**Analytics capabilities (what your plan supports):**\n```bash\nposta_get_analytics_capabilities\n```\n\n**Top performing posts (sorted, paginated):**\n```bash\nTOP=$(posta_get_analytics_posts 10 0 \"engagements\" \"desc\")\n```\n\n**Single post analytics:**\n```bash\nposta_get_post_analytics \"$POST_ID\"\n```\n\n**Trends over time with custom period:**\n```bash\nTRENDS=$(posta_get_analytics_trends \"90d\" \"engagement_rate\")\n```\n\n**Content type performance breakdown:**\n```bash\nposta_get_content_types\n```\n\n**Hashtag performance (pro plan):**\n```bash\nposta_get_hashtag_analytics\n```\n\n**Compare posts side by side (2-4 posts, pro plan):**\n```bash\nposta_compare_posts \"post-id-1,post-id-2,post-id-3\"\n```\n\n**Engagement benchmarks (pro plan):**\n```bash\nposta_get_benchmarks\n```\n\n**Export analytics:**\n```bash\nposta_export_analytics_csv \"30d\"\nposta_export_analytics_pdf \"90d\"\n```\n\n**Refresh analytics:**\n```bash\nposta_refresh_post_analytics \"$POST_RESULT_ID\"\nposta_refresh_all_analytics  # Rate limited: 1 per hour\n```\n\n---\n\n## Guidelines\n\n1. **Always show a preview before publishing.** Display the caption, target platforms, media description, and scheduled time. Ask for confirmation before calling publish or schedule.\n\n2. **Suggest optimal posting times.** When the user wants to schedule, fetch best-times analytics and recommend the highest-engagement time slot.\n\n3. **Ask before spending API credits.** Image generation (Fireworks) and text generation (Gemini\u002FOpenAI) cost money. Confirm with the user before making generation API calls.\n\n4. **Handle errors gracefully.** If an API call fails, show the error message and suggest next steps (check credentials, verify account connection, check plan limits).\n\n5. **Respect plan limits.** Check the user's plan with `posta_get_plan` before attempting operations that may exceed limits (posts, accounts, storage).\n\n6. **Use appropriate aspect ratios.** Match the content format to the target platform — portrait for TikTok\u002FReels, square for Instagram feed, landscape for LinkedIn\u002FX.\n\n7. **Create posts as drafts first.** Always set `isDraft: true` when creating posts, then schedule or publish after user confirmation.\n\n8. **Combine media types strategically.** For maximum reach, generate both an image (for Instagram\u002FLinkedIn) and a video (for TikTok\u002FReels) from the same content.\n\n9. **Preview generated images before uploading.** After generating an image with Fireworks, use the Read tool to preview it visually before uploading to Posta. This prevents wasted uploads and media quota.\n\n10. **Use `posta_create_post_from_file` for multiline captions.** Write the caption to a temp file and use the file-based helper instead of trying to embed multiline text in JSON strings. This avoids escaping issues.\n\n11. **Suggest hashtags for posts.** When creating a post, suggest 5–10 relevant hashtags based on the caption content, target platform, and topic. Mix broad reach tags (e.g. #AI, #Marketing) with niche tags (e.g. #LaborMarket, #FutureOfWork). Show the suggested hashtags to the user and include them in the post only after the user approves or edits them.\n\n12. **Use `\u002Ftmp\u002F.posta_last_response` for captured output.** When capturing `posta_api` output in a variable with `$()`, avoid using `echo` to re-output it — macOS echo corrupts `\\n` in JSON strings. Instead pipe directly (`posta_api ... | jq`) or read from the file (`jq ... \u002Ftmp\u002F.posta_last_response`).\n\n13. **Use platform discovery for validation.** Before creating posts for unfamiliar platforms, call `posta_get_platform_specs` or `posta_get_platform \"\u003Cplatform>\"` to check character limits, required media dimensions, and supported features. This prevents failed posts due to platform constraints.\n\n14. **Auto MIME detection for uploads.** When uploading media, you can omit the MIME type parameter — `posta_upload_media` and `posta_upload_from_url` auto-detect it from the file content or extension. Only specify MIME type manually when the auto-detection might be wrong (e.g., `.bin` files).\n\n15. **Always set TikTok privacy level.** When creating posts that include TikTok, you MUST include `platformConfigurations.tiktok.privacyLevel` — TikTok requires it and publishing will fail without it. Use `\"PUBLIC_TO_EVERYONE\"` unless the user specifies otherwise. Valid values: `PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `SELF_ONLY`, `FOLLOWER_OF_CREATOR`.\n",{"name":5,"license":15,"homepage":24,"metadata":25,"description":7},"https:\u002F\u002Fgithub.com\u002FSTGime\u002Fposta-skill",{"tags":26,"author":35,"version":36,"clawdbot":37},[27,28,29,30,31,32,33,34],"social-media","scheduling","analytics","content-generation","instagram","tiktok","twitter","linkedin","Posta","1.2.2",{"requires":38,"primaryEnv":40},{"env":39,"bins":41},[40],"POSTA_API_TOKEN",[42,43],"curl","jq","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fp\u002Fposta",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill posta",{"tool":59,"command":60},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill posta",{"tool":62,"command":63},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill posta","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fposta\u002FSKILL.md",true,[],[68,75,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]