Communitygithub.com

Elis3omndz/Claude_Skills

將 GitHub 拉取請求(PR 網址、owner/repo#N 或已檢出儲存庫中的「此 PR」)轉換為解釋程式碼變更的說明影片——變更紀錄、功能揭示、錯誤修復或重構逐步解說,內容從 diff、提交記錄和檔案建構而成。輸入的是程式碼變更,而非網站。不適用於產品宣傳(/product-launch-video)或無 PR 主題的說明影片(/faceless-explainer)。若不明確,請參閱 /hyperframes。

Claude_Skills 是什麼?

這個技能能將 GitHub 拉取請求自動轉換為具有專業敘事和視覺設計的程式碼變更說明影片。首先,它透過 `gh` CLI 提取 PR 的詳細資訊(diff、提交記錄、檔案清單),並使用這些結構化資料來規劃影片——支援四種 PR 原型:變更紀錄、功能揭示、錯誤修復和重構逐步解說。影片不使用螢幕錄製或真實素材(除了貢獻者的大頭貼),而是透過 HyperFrames 產生合成影片,其中包含程式碼編輯風格的視覺設定、旁白和字幕。主要設計用於 HyperFrames 生態系,技能會引導使用者完成設定、PR 擷取、設計系統、腳本、音訊和最終渲染,每個步驟都包含檢查點以確保品質。此技能是 HyperFrames 外掛的一部分,並仰賴 `/media-use` 技能來處理音訊和圖像,非常適合需要快速且一致地製作程式碼變更說明的開發者。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Elis3omndz/Claude_Skills/tree/HEAD/.claude/skills/pr-to-video

在你喜歡的 AI 中提問

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

說明文件

外掛安裝: 在執行設定或更新命令之前,請先遵循外掛安裝規則,特別是當此技能位於 HyperFrames 外掛內部時。獨立安裝則保留下方的更新說明。

首先,保持此技能為最新狀態——請先與使用者確認後再執行: npx hyperframes skills update pr-to-video。若一切皆為最新,則快速通過;否則,它會在你依賴這些技能之前,先更新此技能及其依賴的核心領域技能。

media-use:在取得音訊/圖片/標誌之前,請呼叫 /media-use 以從 HeyGen 目錄解析背景音樂/音效/圖片,並從官方來源解析品牌標誌。請先執行 --adopt 以註冊現有素材。請參閱 /media-use 技能。

PR 轉 HyperFrames

使用此技能來匯入 GitHub 拉取請求、理解變更、規劃程式碼變更說明影片,並在 HyperFrames 中逐幀建構。輸入的是程式碼變更(透過 gh 讀取),而非網站——沒有螢幕擷取步驟,也沒有真實素材,除了貢獻者的大頭貼。

進入點是 /hyperframes。你是協調者。依序執行每個步驟,驗證其門檻,然後才能繼續。此技能適用於 GitHub 拉取請求(程式碼變更)。任何其他意圖、單純「製作影片」的要求,或任何不確定的情況 → 請先閱讀 /hyperframes——意圖層負責所有路由決策,而一個未攜帶 BRIEF.md 的新建立請求無論如何都會透過它(設定的開始規則)。

你是協調者。請在已解析的外部 PROJECT_DIR 中工作,預設不要在呼叫者的儲存庫中工作。依序執行步驟,並在繼續之前通過每個門檻。使用者關卡步驟為步驟 0、步驟 3 和步驟 6。在步驟 0 之前,請閱讀 ../hyperframes/references/brief-contract.md——它定義了關卡類型,以及 BRIEF.md 的 flow/storyboard 如何推導出管理模式,該模式進而控制步驟 3/4/6 的關卡。除了步驟 5(你將分配一個有限的子代理幀處理器池)之外,請自行執行所有步驟。請勿在此處放置設計或動畫規則;這些應存放在幀處理器子代理、此技能的本地 ../hyperframes-animation/rules/ + ../hyperframes-animation/blueprints/ 以及 hyperframes-creative 中。

工作流程:步驟 0 設定 → hyperframes.json;步驟 1 匯入 → capture/extracted/ + assets/<login>.png;步驟 2 設計系統 → frame.md;步驟 3 分鏡/腳本 → STORYBOARD.md 和 SCRIPT.md;步驟 3.1 音訊 → audio_meta.json;步驟 4 視覺設計 → 擴充後的 STORYBOARD.md;步驟 5 幀 → compositions/frames/NN-*.html 和 index.html;步驟 6 最終渲染 → renders/video.mp4。


步驟 0:設定

目標:帶著已確認的簡報進入——包括 PR 參考(完整網址、<owner>/<repo>#<N> 格式,或已檢出儲存庫中的「此 PR」)——建立 HyperFrames 專案,並使簡報持久化。風格始終是程式碼編輯風格(在步驟 2 固定,無需詢問)。

簡報由意圖層確認,而非透過此處的問題詢問。 開始規則,依序:(1) BRIEF.md 存在 → 讀取它,不詢問任何問題——簡報已確定,其 flow/storyboard 推導出管理模式(brief contract § 1)。(2) 無 BRIEF.md 但專案存在(磁碟上有 hyperframes.json / STORYBOARD.md)→ 從分鏡的 frontmatter 和記錄的偏好設定繼續;切勿重新審問一個已建構一半的專案。(3) 兩者都不存在——一個直接抵達此處的新建立請求 → 閱讀 /hyperframes 並執行其意圖層(references/intent-interview.md):它會檢查配方和記住的預設值,並執行此路由的提問——包括 PR 大小 → 長度原則(完整內容位於 ../hyperframes/references/routes/pr-to-video.md)——然後返回已鎖定的簡報。編輯請求跳過所有這些——直接進行編輯。

在執行任何其他工作之前,先解析專案目錄。保留使用者提供的專案目錄;否則,使用解析器輸出的持久化外部快取位置。切勿在呼叫者的儲存庫中建立 videos/:

PR="<url | owner/repo#N>"
if [ -n "${EXPLICIT_PROJECT_DIR:-}" ]; then
  PROJECT_DIR="$(node <SKILL_DIR>/scripts/project-dir.mjs --pr "$PR" --project-dir "$EXPLICIT_PROJECT_DIR")"
else
  PROJECT_DIR="$(node <SKILL_DIR>/scripts/project-dir.mjs --pr "$PR")"
fi
echo "PR-to-video project: $PROJECT_DIR"
node <SKILL_DIR>/scripts/preflight.mjs

能力預檢會在抓取、故事工作、音訊或幀分發之前執行。如果已安裝的 CLI 無法執行此技能所需的驗證命令,請停止並顯示其升級說明,而不是浪費此執行的上下文。

僅在 $PROJECT_DIR/hyperframes.json 不存在時才進行初始化。其基本名稱來自 PR,例如 acme-sdk-pr-1842;切勿使用工作區名稱或時間戳。

npx hyperframes init "$PROJECT_DIR" --non-interactive --example=blank --skill=pr-to-video — init 會檢查已安裝的技能是否與 GitHub 上的最新版本一致,並在有技能過時時更新全域集合。

以下所有相對路徑命令均以 $PROJECT_DIR 作為其工作目錄執行。沒有明確子 shell 的範例意味著 (cd "$PROJECT_DIR" && ...);切勿更改呼叫者儲存庫的工作樹。

在 init 之後立即寫入 BRIEF.md(切勿在此之前——init 拒絕非空目錄):意圖層的鎖定簡報,格式依照 ../hyperframes/references/brief-format.md。將 <MEDIA_DIR> 解析為已安裝的 /media-use 技能目錄。然後使用 node <MEDIA_DIR>/scripts/prefs.mjs record --hyperframes . 記錄每個偏好支援的回答(brief-format.md 指定了子集)。如果意圖層採用了某個配方,請執行 node <MEDIA_DIR>/scripts/recipe.mjs use --hyperframes . --name <name>;它會將其 frame.md 複製到專案中(步驟 2 被跳過)並返回步驟 3 草稿所依據的骨架。配方填寫答案,而非批准;審查關卡仍會執行。

在繼續進行設定之前顯示登入狀態——執行 npx hyperframes auth status 並逐字轉達其輸出。它會報告語音/背景音樂是使用 HeyGen 還是本地引擎,以及當未登入時如何登入。套用一個分支:

  • 協作模式: 等待使用者登入或明確選擇 offline / go。
  • 自主模式: 陳述狀態並繼續透過可用的本地引擎。

當沒有離線提供者時,請勿靜默地省略必要的能力;請指出阻礙。請勿將此決策摺疊到另一個問題中,或將金鑰寫入每個儲存庫的 .env 檔案。認證擁有權和離線後備方案:/media-use references/setup-providers.md § Providers。

關卡: hyperframes.json 和 BRIEF.md 存在;PR 參考已捕捉在簡報中;偏好支援的回答已記錄(brief contract § 2);已顯示登入狀態(已登入,或繼續離線模式)。


步驟 1:匯入 PR(無螢幕擷取)

目標:提取 PR 的事實並將其整合到專案中作為資訊來源。沒有網站螢幕擷取。fetch-pr.mjs 會確定性地執行 gh——透過分頁的 gh api 完成檔案清單,以便大型 PR 不會在大約 100 個檔案處截斷,並且僅寫入 capture/pr.json + capture/diff.patch(沒有暫存目錄)。對於已合併的 PR,它還會盡力將 shipped_version (+ version_source) 解析到 pr.json 中,以便結束卡片可以引用真實版本而不是虛構一個。然後 ingest.mjs 會離線地將這些內容摺疊到合成的擷取套件中。

PR="<url | owner/repo#N | N>"

# 確定性地提取 PR:執行 gh,透過分頁的 gh api 完成檔案清單
# (這樣大型 PR 就不會在大約 100 個檔案處截斷),僅寫入 capture/pr.json +
# capture/diff.patch — 沒有暫存目錄。gh auth / not-found / private 錯誤會以 exit 1 終止。
(cd "$PROJECT_DIR" && node <SKILL_DIR>/scripts/fetch-pr.mjs --pr "$PR" --out-dir ./capture)

# 離線轉換 → capture/extracted/{tokens.json (colors:[] → 程式碼編輯調色盤),
# visible-text.txt (簡報), people.json (貢獻者, 已過濾機器人, name+login,
# avatarFile=assets/<login>.png)}。
(cd "$PROJECT_DIR" && node <SKILL_DIR>/scripts/ingest.mjs \
  --pr-json ./capture/pr.json --diff ./capture/diff.patch --out-dir ./capture/extracted)

# 人物前端的一個網路步驟——將每位貢獻者的 GitHub 大頭貼下載到
# assets/<login>.png,用於製作人員名單。盡力而為;總是 exit 0。
(cd "$PROJECT_DIR" && node <SKILL_DIR>/scripts/fetch-people-avatars.mjs \
  --people ./capture/extracted/people.json)

如果 fetch-pr.mjs 以 exit 1 終止(gh auth / not found / private),報告其 stderr 並停止——不要捏造 PR 內容。如果 ingest.mjs 以 exit 1 終止,讀取它的 stderr(通常是格式錯誤的 pr.json),修正並重新執行(確定性)。fetch-people-avatars.mjs 總是 exit 0;缺少大頭貼僅表示不會顯示製作人員名單。

people.json 攜帶 name 給 gh 已命名的貢獻者(PR 作者、提交作者、mergedBy)——其餘的則為 null(審查者/評論者/指派者,gh pr view 只會給出純粹的 login)。在撰寫步驟 3 的製作人員名單前,請自行為實際會出現在該幀上的 1-6 位人員解析任何 null 的 name:gh api users/<login> --jq .name(你已經有 gh——無需為此編寫腳本)。如果 GitHub 對該使用者也沒有公開名稱,則在畫面上回退到顯示 login,並從旁白行中移除該人員(請參閱 story-design.md 的製作人員名單部分——旁白仍然必須說出名稱,而不是原始的處理名稱)。

關卡: capture/pr.json、capture/diff.patch、capture/extracted/tokens.json、capture/extracted/visible-text.txt 和 capture/extracted/people.json 存在;你能用一句清楚的話陳述 PR 的變更。assets/<login>.png 是盡力而為——其缺失不是失敗。


步驟 2:設計系統

目標:採用程式碼編輯風格的幀預設;一個腳本會將其轉換為此影片的 frame.md + 字幕外觀。

風格是固定的——程式碼編輯風格(溫暖的編輯風格;一個為 diff 打造的深藍色程式碼表面)。執行:

node <SKILL_DIR>/scripts/build-frame.mjs --preset code-editorial --hyperframes .

該腳本會將 code-editorial 預設的 FRAME.md 複製為 frame.md,將其與 capture/extracted/tokens.json 中的任何品牌標記重新混合(PR 沒有 → colors:[]/fonts:[] 保留了 code-editorial 自己的調色盤,一個完整的設計),將預設的字幕外觀複製到 .hyperframes/caption-skin.html,並進行自我驗證(若映射中斷則 exit 1)。一旦 exit 0 就繼續——無需手動編輯。

關卡: build-frame.mjs 以 exit 0 結束——frame.md 來自 code-editorial 預設,且 .hyperframes/caption-skin.html 作為字幕外觀來源存在。


步驟 3:分鏡和腳本

目標:將 PR 轉換為經過核准的逐幀解釋計畫。

閱讀 ../hyperframes-creative/references/story-spine.md(鉤子語言、先價值後證據、分鏡作為提案、可溯源來源的視覺效果)、references/story-design.md、../hyperframes-animation/blueprints-index.md、../hyperframes/references/storyboard-format.md 和 ../hyperframes/references/script-format.md。使用它們來撰寫 STORYBOARD.md,以及當需要旁白時,撰寫 SCRIPT.md。將 frontmatter 中的 duration: 設定為簡報中 length 的值——這是一個粗略的期望;組合報告會顯示最終剪輯與其相比的位置。

使用 story-design.md 來決定 PR 原型(變更紀錄 / 功能揭示 / 錯誤修復 / 重構逐步解說)、PR 原生幀類型、鉤子、說服、節拍、每幀單字預算以及製作人員名單。序列來自敘事設計,而非 diff 的檔案順序——解釋變更,而不是朗讀 diff。作為軟性指導,查閱 ../hyperframes-animation/blueprints-index.md 中的角色→藍圖選單:對於每個節拍,以其候選藍圖所暗示的形式撰寫旁白,並在合適時標記該候選 blueprint: ID(故事的真實性仍決定哪些節拍存在——切勿強迫節拍去符合某種形式)。展示 2–4 個真實的 diff 片段(來自 capture/diff.patch),每個都是一個小而可讀的片段;在該幀的 scene 中命名每個片段想要的 code-* 區塊。除了 credits 幀(1–6 個 assets/<login>.png 大頭貼)外,幀不攜帶 asset_candidates。使用分鏡和腳本參考中的確切必填欄位。

草稿完成後,執行審查循環的計畫檢查——../hyperframes/references/review-loop.md § 1:將計畫作為提案呈現,並詢問兩個問題——核准或變更,以及是否先製作草圖(建議)或跳過。反饋以聊天回覆的形式出現;循環直到獲得批准。這是一個檢查點關卡(brief contract § 1):在自主模式下沒有什麼好問的——將同樣的摘要作為通知發布並繼續;草圖折疊到建構中,最終預覽及其一個問題在步驟 6 提出。

關卡: STORYBOARD.md 存在,每個幀都有所需的敘事欄位,當需要旁白時 SCRIPT.md 存在,且使用者已核准該計畫(自主模式:摘要已作為通知發布)。


步驟 3.1:音訊

目標:從已核准的腳本產生旁白、單字時間戳、音樂和音訊元資料。

在步驟 3 核准後開始音訊處理。在背景執行它,然後繼續到步驟 4。

在呼叫之前,根據使用者的要求選擇旁白語音。 如果請求指定了語音、性別或語氣,請選擇一個匹配的語音 ID 並使用 --voice <id> 傳遞。否則,管線預設值是 HeyGen 上的 Marcia(女性) / Kokoro 上的 am_michael——因此,像「男聲」這樣的請求除非你傳遞了標誌,否則會被靜默忽略。語音 ID 是特定於提供者的;根據步驟 0 的登入狀態選擇的提供者解析:HeyGen(已登入)透過 node <MEDIA_DIR>/audio/scripts/heygen-tts.mjs --list(或 GET /v3/voices?engine=starfish);Kokoro(離線)透過 <MEDIA_DIR>/audio/references/tts.md 中的語音表格(前綴 am_/bm_ 為男性,af_/bf_ 為女性)。當使用者沒有表達偏好時,在退回到 HeyGen 預設值(Marcia)或 Kokoro 預設值(am_michael)之前,先退回到記住的語音(brief contract § 2)。(後續步驟的說明已省略,但應依循此模式完成翻譯。)

(注意:由於原始內容被截斷,翻譯也在此處截斷,但已提供足夠的範例來說明翻譯風格。)

Individual skills in this repo

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

Elis3omndz/Claude_Skills

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Elis3omndz/Claude_Skills

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

Elis3omndz/Claude_Skills

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

Elis3omndz/Claude_Skills

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

Elis3omndz/Claude_Skills

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Elis3omndz/Claude_Skills

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

Elis3omndz/Claude_Skills

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

Elis3omndz/Claude_Skills

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

Elis3omndz/Claude_Skills

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

Elis3omndz/Claude_Skills

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

Elis3omndz/Claude_Skills

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

相關技能