技能圖譜SKILLSGROVE
技能圖譜/短影片與自媒體/SamurAIGPT/muapi-skills/muapi-social-pack

muapi-social-pack

安裝

$npx skills add https://github.com/SamurAIGPT/muapi-skills --skill muapi-social-pack
$git clone --depth 1 https://github.com/SamurAIGPT/muapi-skills.git /tmp/muapi-skills && mkdir -p ~/.claude/skills && cp -r /tmp/muapi-skills/skills/library/social/social-pack ~/.claude/skills/muapi-social-pack
請幫我安裝這個 Agent Skill:https://github.com/SamurAIGPT/muapi-skills/tree/1dd7527a9d5e0477e18af8baf8c6915053585680/skills/library/social/social-pack ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITRe-render a hero image into Instagram, TikTok, YouTube-shorts and Twitter/X aspect ratios.
以下 SKILL.md 內容轉載自 SamurAIGPT/muapi-skills(提交 1dd7527),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Social Media Pack

Re-render a hero image into Instagram, TikTok, YouTube-shorts and Twitter/X aspect ratios.

Inputs

Name Type Required Default Description
source_image image_url yes — URL of the hero image (or asset_id from this session).
caption_idea text no — Optional caption / overlay direction (kept short).
formats list no 1:1, 9:16, 4:5, 16:9 Aspect ratios to produce.

Steps

Use the plan to fan out one node per format.

  1. For each requested aspect ratio in {{formats}}:
    • Call muapi image edit (model=nano-banana-2-edit) with the source image.
    • Prompt: "Reframe the composition to {{aspect_ratio}} for social media. Keep the subject centred and uncropped. Match the original lighting and palette. {{caption_idea_hint}}".
    • Where {{caption_idea_hint}} = "Leave headroom at the top for a caption: '<caption_idea>'." (only if caption_idea is non-empty).
  2. All formats run in parallel (no inter-node dependencies).
  3. Return one asset id per format, labelled with the platform it suits:
    • 1:1 → Instagram feed
    • 9:16 → TikTok / IG Reels / YT Shorts
    • 4:5 → Instagram portrait
    • 16:9 → Twitter / X / YouTube
    • 21:9 → cinematic banner

Notes

  • Don't generate fresh images — only reframe / re-edit the source.
  • If the source already matches a format, skip that node and surface the original asset id for it.

Trigger Keywords

social pack, resize for social, cross-post, multi-platform


Notes for the Executing Agent

  • This recipe is LLM-orchestrated: read each phase, gather any missing inputs from the user, then call muapi CLI commands. Use muapi auth configure first if MUAPI_API_KEY is unset.
  • For model IDs without a CLI alias yet, fall back to the raw endpoint via curl -X POST https://api.muapi.ai/api/v1/<endpoint> -H "x-api-key: $MUAPI_API_KEY" -H 'content-type: application/json' -d '{...}' and poll with muapi predict wait <request_id>.
  • Substitute {{input_name}} placeholders with the user's actual inputs before issuing each call.
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.