Communitygithub.com

PrunaAI/pruna-skills

當使用者想要從文字或圖片生成簡短快速的剪輯時使用——適用於快速B-roll、草稿或開頭/結尾幀動畫。但不用於需要電影級生成、最高品質、嚴格唇形同步或匯入1080p音訊的情況。

pruna-skills 是什麼?

此技能(`p-video`)專為快速生成簡短影片剪輯而設計,適合製作草稿、輕量級B-roll或基於開頭/結尾幀的動畫。它整合了多個前置技能(如`generation-diversity`、`video-prompting`、`audio-prompting`和`pruna-api`),確保提示詞的多樣性、影片語法及API呼叫的安全性。使用者需先設定 `PRUNA_API_KEY`,並遵循動態且忠實於原始需求的提示詞撰寫流程,避免複製範例提示。此技能支援文字轉影片、圖片轉影片、幀錨點(首/尾幀)及音訊條件生成,但限於單一剪輯,不適用於多場景組合或電影級生成。若需求超出範圍(如1080p、匯入音訊或唇形同步),應引導使用者使用 `p-video-2`、`p-video-2-pro` 或其他相關技能。

相容平台~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/PrunaAI/pruna-skills/tree/HEAD/skills/video/p-video

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

前置需求

在生成前,請先安裝並載入以下技能(若已透過 @pruna 在上下文中,則可跳過):

技能描述安裝方式
generation-diversity撰寫任何生成提示詞時使用——在呼叫付費API前,執行種子儀式、明確結構、情境軸線和品質閘門。npx skills add PrunaAI/pruna-skills@generation-diversity -y
video-prompting為任何生成模型撰寫影片或動態提示詞時使用——戲劇結構、鏡頭語言、物理安全動態、幀錨點和剪輯串接。npx skills add PrunaAI/pruna-skills@video-prompting -y
audio-prompting為任何生成音訊模型(TTS、音樂或背景音)撰寫提示詞時使用——導演風格、歌曲結構和後製分層。npx skills add PrunaAI/pruna-skills@audio-prompting -y
pruna-api在任何 Pruna 或 Replicate HTTP 呼叫前使用——憑證、上傳/輪詢/下載、平行批次和代理安全。npx skills add PrunaAI/pruna-skills@pruna-api -y

或一次性安裝完整套件:npx skills add PrunaAI/pruna-skills@pruna -y

請遵循每個技能的 生成前 / 提示詞撰寫章節——此處不再重複指南內容。

代理習慣

路由: 使用 `p-video` 處理簡單、快速的剪輯——草稿、輕量B-roll、短動態。電影級生成含生成音訊 → `p-video-2-pro`。1080p、匯入音訊或草稿預覽 → `p-video-2`。

在第一次回覆中,用反引號標明 `p-video`,確認 PRUNA_API_KEY(若無則停止並提供 pruna-api 中的註冊連結),然後詢問必要輸入。開始前,先執行 generation-diversity 的釐清程序,然後再進行首次 POST。在起草動態提示詞時,請遵循提示詞撰寫(動態 + 忠實)——不要貼上技能範例。若更符合何時不使用的情況,則轉向其他技能。

提示詞撰寫(動態 + 忠實)

每個 input.prompt 必須是全新的且具體的,並且必須符合使用者的節奏。多樣性絕不能凌駕於簡要需求之上。

應做不應做
執行 generation-diversity 的隨機種子儀式並說明;當簡要允許時,旋轉 ≥2 個自由軸(鏡頭移動、燈光變化、紋理、節奏)從此技能複製 curl 範例(rain-slick street、dog tosses plush 等)或重複使用先前會話的提示詞
先鎖定使用者要求的事實(主體、動作節拍、使用幀錨點時的 OPEN/MID/CLOSE、設定 audio 時的口白同步)為了「更酷」的剪輯而更換主體或動作,忽略原始需求
使用 video-prompting 的戲劇結構——每個節拍一個凍結動作、物理安全動態、鏡頭語法模糊的情緒字串(如 cinematic vibe, neon energy)
當設定 audio 時,動態和節奏必須符合口白節拍在旁白播放時偏移到無關的動作
在使用者尚未鎖定措辭時,先展示草擬的提示詞和模式欄位,再進行 POST未經批准就使用不同主體或節拍進行重新生成

忠實度檢查(付費前): 如果你從提示詞中移除了使用者命名的主體/動作/場景,那麼這個任務就是錯的——請重新撰寫。自由軸只能填入簡要中未指定的部分。

在展示草擬的提示詞時,仍要標明 `p-video`(指南有助於提示詞撰寫;此工具擁有呼叫權)。

技能邊界

此技能 = 每次呼叫一個 p-video 預測。

超出範圍(請勿從此技能執行):

  • 多場景組合、拼接、子代理編排或平行場景批次
  • 從範本影片學習動態 → p-video-animate
  • 僅有頭部/唇形同步的主持人,無原生場景音訊 → p-video-avatar
  • 電影級生成含生成音訊 → p-video-2-pro
  • 1080p、匯入音訊或草稿預覽 → p-video-2

如果需求超過一個剪輯,請停止並推薦:image-to-video(一個有口白的節拍)、visual-transition-reel(多場景視覺)或 narrated-multi-scene(多場景 + 口白)。

何時不使用

改用其他技能:

技能描述安裝方式
p-video-2-pro當使用者想要從文字或開頭/結尾幀生成電影級剪輯時使用——產品廣告、紀錄片鏡頭或含生成音訊的對話。不適用於1080p、匯入音軌或僅有頭部的主持人。npx skills add PrunaAI/pruna-skills@p-video-2-pro -y
p-video-2當使用者想要從文字、圖片或匯入音訊生成精緻短片時使用——1080p B-roll、開頭/結尾幀動畫或含混合音軌的動態鏡頭。不適用於電影級生成音訊剪輯或僅有頭部的主持人。npx skills add PrunaAI/pruna-skills@p-video-2 -y
p-video-avatar當使用者想要一個人物在鏡頭前朗讀腳本時使用——唇形同步的主持人、發言人或從肖像照生成的敘述型虛擬角色。npx skills add PrunaAI/pruna-skills@p-video-avatar -y
p-video-animate當使用者想要讓一張照片像另一段影片一樣移動時使用——動態轉移、舞蹈混音或從範本剪輯中產生的表演變體。npx skills add PrunaAI/pruna-skills@p-video-animate -y
p-video-replace當使用者想要在現有素材中更換人物、服裝或產品,同時保持鏡頭移動和音訊不變時使用。npx skills add PrunaAI/pruna-skills@p-video-replace -y
p-video-edit當使用者想要透過文字指令編輯現有影片時使用——重新上色、重新造型、移除或新增物件、改變環境或燈光、更新螢幕文字,或進行可選的參考引導產品和配件編輯。不適用於從頭開始生成新剪輯或 ffmpeg 組合。npx skills add PrunaAI/pruna-skills@p-video-edit -y
video-editing當使用 ffmpeg 組裝或打磨已渲染的剪輯時使用——拼接、淡入淡出、燒錄字幕、文字/標誌覆疊、前後對比滑桿、背景音樂、平台匯出——或使用 Hyperframes 組合多層 HTML 影片。不適用於 AI 影片生成、提示詞撰寫或基於模型的影片編輯。npx skills add PrunaAI/pruna-skills@video-editing -y

HTTP (curl)

上傳圖片以用於圖片轉影片 / 幀錨點

curl -X POST "https://api.pruna.ai/v1/files" \
  -H "apikey: ${PRUNA_API_KEY}" \
  -F "content=@/path/to/first-frame.png"

傳遞 urls.get 作為 input.image(第一幀)和/或 input.last_frame_image(最後一幀)。使用相同方式上傳 TTS/音樂作為 input.audio。

建立(非同步文字轉影片——推薦)

curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H "apikey: ${PRUNA_API_KEY}" \
  -H 'Model: p-video' \
  -d '{
    "input": {
      "prompt": "夜間潮濕街道上的緩慢推移鏡頭,霓虹倒影,遠處車流嘶嘶聲",
      "duration": 5,
      "resolution": "720p",
      "aspect_ratio": "16:9"
    }
  }'

輪詢和下載:請遵循 pruna-api。

在撰寫提示詞之前,先完成 generation-diversity 的隨機種子儀式——不要將儀式字串作為 API seed 傳入。

首幀 / 末幀(視覺轉場)

curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H "apikey: ${PRUNA_API_KEY}" \
  -H 'Model: p-video' \
  -d '{
    "input": {
      "prompt": "OPEN: 保持廣角鏡頭在潮濕小巷,霓虹閃爍。MID: 緩慢推進,雨水滴落在人行道上。CLOSE: 停留在結束姿勢。",
      "image": "https://api.pruna.ai/v1/files/START_ID",
      "last_frame_image": "https://api.pruna.ai/v1/files/END_ID",
      "duration": 5,
      "resolution": "720p",
      "fps": 24
    }
  }'

場景錨點三重組合(image + last_frame_image + audio)

curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H "apikey: ${PRUNA_API_KEY}" \
  -H 'Model: p-video' \
  -d '{
    "input": {
      "prompt": "狗向上拋起填充玩具,尾巴搖動,動作配合敘述者,溫暖光線",
      "image": "https://api.pruna.ai/v1/files/SCENE_START",
      "last_frame_image": "https://api.pruna.ai/v1/files/SCENE_END",
      "audio": "https://api.pruna.ai/v1/files/SCENE_NARRATION",
      "resolution": "720p",
      "fps": 24,
      "save_audio": true
    }
  }'

當設定 audio 時,請省略 duration。剪輯長度 = min(音訊長度, 20秒)——保持 TTS ≤ ~19秒(使用 ffprobe 在渲染前檢查)。

生成前

  1. 完成前置需求指南的閱讀順序(generation-diversity → video-prompting)。
  2. 執行種子儀式 → 草擬動態且忠實的動態提示詞(見上方章節)→ 與使用者確認模式(T2V / I2V / 幀對 / 音訊)、duration(除非由音訊驅動)、resolution、fps、draft 和 prompt。
  3. Pruna 注意事項: 當設定 image 時,aspect_ratio 會被忽略。使用 audio 時,省略 duration 並設定 save_audio: true 以保留口白。優先使用上傳的旁白而非後期混合。如果需求是多場景——請停止(見技能邊界)。

必要輸入

  • prompt (字串)

常見可選欄位

欄位作用
image第一幀——I2V 錨點;設定時,aspect_ratio 會被忽略
last_frame_image可選的最終靜態圖
audio音訊條件生成;長度跟隨音訊(上限 20秒);支援 flac/mp3/wav
duration1–20秒(若設定 audio 則忽略)
resolution720p(預設)或 1080p
fps24(預設)或 48
aspect_ratio當無 image 時:16:9、9:16、4:3、3:4、3:2、2:3、1:1
drafttrue ≈ 4倍快/便宜的預覽;false = 最終版
save_audio保留模型生成或上傳的音訊在輸出中
seed、prompt_upsampling、disable_safety_filter可重現性 / 客戶端政策

相關

相關技能:

技能描述安裝方式
p-video-2-pro當使用者想要從文字或開頭/結尾幀生成電影級剪輯時使用——產品廣告、紀錄片鏡頭或含生成音訊的對話。不適用於1080p、匯入音軌或僅有頭部的主持人。npx skills add PrunaAI/pruna-skills@p-video-2-pro -y
gemini-3.1-flash-tts當使用者需要口語旁白或配音時使用——解說影片、紀錄片台詞或與生成影片搭配的人聲。npx skills add PrunaAI/[email protected] -y
image-to-video當使用者想要從圖片生成一個短片節拍時使用——有口白的場景、故事瞬間或可選旁白的電影B-roll。npx skills add PrunaAI/pruna-skills@image-to-video -y
visual-transition-reel當使用者想要一個帶有鏡頭間轉場的蒙太奇時使用——動作序列影片或旁白可選的多場景作品。npx skills add PrunaAI/pruna-skills@visual-transition-reel -y
narrated-multi-scene當使用者想要一個帶有旁白的多部分故事時使用——章節式B-roll、分章節宣傳片或幾個相關聯的影片場景,無鏡頭前對話。npx skills add PrunaAI/pruna-skills@narrated-multi-scene -y
p-video-avatar當使用者想要一個人物在鏡頭前朗讀腳本時使用——唇形同步的主持人、發言人或從肖像照生成的敘述型虛擬角色。npx skills add PrunaAI/pruna-skills@p-video-avatar -y
p-video-animate當使用者想要讓一張照片像另一段影片一樣移動時使用——動態轉移、舞蹈混音或從範本剪輯中產生的表演變體。npx skills add PrunaAI/pruna-skills@p-video-animate -y
video-editing當使用 ffmpeg 組裝或打磨已渲染的剪輯時使用——拼接、淡入淡出、燒錄字幕、文字/標誌覆疊、前後對比滑桿、背景音樂、平台匯出——或使用 Hyperframes 組合多層 HTML 影片。不適用於 AI 影片生成、提示詞撰寫或基於模型的影片編輯。npx skills add PrunaAI/pruna-skills@video-editing -y

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

PrunaAI/pruna-skills

Use when someone needs spoken narration or voiceover — explainer tracks, documentary lines, or voice to pair with generated video.

PrunaAI/pruna-skills

Use when someone wants an original AI song with vocals — sung lyrics, a style prompt track, or source audio for a music video.

PrunaAI/pruna-skills

Use when someone needs word-level timestamps from audio — lyric alignment, cut-safe line boundaries, or caption source timing before burn-in with video-editing.

PrunaAI/pruna-skills

Use before any Pruna or Replicate HTTP call — credentials, upload/poll/download, parallel batches, and agent safety.

PrunaAI/pruna-skills

Use when assembling or polishing already-rendered clips with ffmpeg — concat, crossfades, burned captions and subtitles, text/logo overlays, before/after sliders, background music beds, platform export — or when composing a multi-layer HTML combination video with Hyperframes. Not for AI video generation, prompt craft, or model-based video edits.

PrunaAI/pruna-skills

Use when crafting video or motion prompts for any generative model — dramaturgy, camera, physics-safe motion, frame anchors, and clip chaining.

PrunaAI/pruna-skills

Use when someone wants to edit an existing photo — change outfits or backgrounds, compose from reference images, or apply prompt-driven edits.

PrunaAI/pruna-skills

Use when someone explicitly wants the fastest, cheapest photo generation — mood boards, bulk panels, or quick iterations — not when controlled photoreal or in-image text is needed.

PrunaAI/pruna-skills

Use when someone wants virtual try-on — dress a person in clothes from reference photos for fashion or ecommerce.

PrunaAI/pruna-skills

Use when installing the full Pruna generative media suite — all guides, tools, and workflows in one package.

PrunaAI/pruna-skills

Use when someone wants a cinematic clip from text or start/end frames — product ads, documentary shots, or dialogue with generated audio. Not for 1080p, imported audio tracks, or talking-head-only hosts.

PrunaAI/pruna-skills

Use when someone wants a polished short clip from text, images, or imported audio — 1080p B-roll, start/end frame animation, or a motion shot with a mixed track. Not for cinematic generated-audio clips or talking-head-only hosts.

PrunaAI/pruna-skills

Use when someone wants to edit an existing video with a text instruction — recolor, restyle, remove or add objects, change environment or lighting, update on-screen text, or apply optional reference-guided product and accessory edits. Not for a new clip from scratch or ffmpeg assembly.

相關技能