用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RonShih/social-media-bot --skill publish-instagram命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | publish-instagram |
| description | Publish an Instagram Feed post (image or Reel) via Playwright. Reads brand from active YAML. |
Common rules:
docs/OPERATING_RULES.md. IG-specific quirks only.
caption: post text.hashtags: list of strings — appended after a blank line, on a fresh paragraph.mode: post (Feed photo) | video (Reel).local_image_path (required for mode: post).local_video_path (required for mode: video).{ "post_url": "https://www.instagram.com/p/...", "platform": "instagram" }
browser_navigate → socials.instagram.url.mode.browser_file_upload with the asset.caption + "\n\n" + hashtags.join(" ") into the caption box.mode: video (Reel).mp4 reliably. .mov files often hang at "uploading" — if the asset is .mov, copy / rename to .mp4 first via cp <src.mov> <dst.mp4> (no transcode needed; Instagram accepts the H.264 inside).extra.cover_path is provided.After the success toast, navigate to socials.instagram.url and read the first post tile in the profile grid. Use browser_evaluate:
() => {
const a = document.querySelector('article a[href*="/p/"], article a[href*="/reel/"]');
return a ? a.getAttribute('href') : null;
}
Prepend https://www.instagram.com if the href is path-only. Do this within 90 seconds of publish; older posts shift the grid.
If the grid does not refresh (cache) → browser_navigate to the profile URL once more, wait 3s, retry. Two failures → { "post_url": null, "error": "url_extraction_failed" }.
browser_close.{ "status": "dry_run_ok" } or the failure form.