Communitygithub.com

Conz-Wilts/ai-editor

供編輯器維護者使用。將使用者回報的修正轉化為永久性的問題修復,並透過程式碼和測試確實執行,而不是僅靠筆記。

ai-editor 是什麼?

此技能專為 AI 影片編輯器的維護者設計,協助他們系統性地處理並解決使用者回饋。它會從多個來源收集回饋,包括使用者的「對所有人都有幫助」標記建議(`~/.ai-video-editor/suggestions.jsonl`)、品味規則回歸報告(`taste.py report`)、預覽修正(`edits/*/corrections.jsonl`)、審閱頁面筆記(`*/review.json`)以及標記為 `feedback` 的公開 GitHub issues。此技能會將這些回饋分組,並找出重複出現的問題。維護者接受某個項目後,此技能會自動執行一套四步驟流程:將通用規則寫入 `PRINCIPLES.md` 與所屬的 SKILL.md;透過加強現有檢查或新增檢查來實施該規則;為規則建立測試(確保在修正前會失敗,修正後會通過);並在 `docs/feedback-matrix.md` 中記錄此項目。最後,它會執行完整的測試套件(`check_plugins.py`、`okf.py check`、`demos.sh` 等)以確保一切正常。此技能支援在 macOS、Linux 和 Windows 上運作,並提供維護者與使用者兩種模式——使用者模式只會將自訂設定儲存在不會被更新覆蓋的獨立圖層中。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Conz-Wilts/ai-editor/tree/HEAD/.claude/skills/improve

在你喜歡的 AI 中提問

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

說明文件

改善

路徑:${CLAUDE_SKILL_DIR} 代表包含此 SKILL.md 的資料夾,而 ${CLAUDE_SKILL_DIR}/../.. 代表編輯器位於該資料夾上兩層的 .claude/ 資料夾。

所有對使用者的提問都請放在問題框中:使用 AskUserQuestion 工具(提供 2-4 個選項,建議選項排第一位)。只有在不具備該工具的代理程式中,才以文字方式提出編號問題。

此技能在儲存庫的檢出副本中執行,供維護該儲存庫的人使用。在此處進行的修正,將在所有使用者下次更新時生效。S="${CLAUDE_SKILL_DIR}/scripts"。在 Mac 和 Linux 上使用 python3 執行腳本,在 Windows 上使用 py 執行。

0. 誰在執行此技能

python3 "$S/improve.py" mode

maintainer:僅在設定 AI_EDITOR_MAINTAINER=1 的儲存庫 git 檢出副本中執行:請繼續進行步驟 1。

user:編輯器本身的檔案會在每次更新時被取代,因此絕對不要編輯它們(不得編輯 SKILL.md、參考文件、腳本或 PRINCIPLES.md)。請按照以下方式收集並挑選,然後將每個接受的項目儲存在使用者自己的圖層中,該圖層不會被更新觸及(儲存庫中的 docs/customise.md):

  • 一個設定,使用 taste.py add ... --set;
  • 一個單字規則,使用 python3 "${CLAUDE_SKILL_DIR}/../../lib/ai_editor/custom.py" rule "<rule>";
  • 一個字幕外觀,儲存為 custom/captions/<name>.json 加上 taste.py set captions.preset <name>;
  • 範本預設值,儲存為 custom/templates/<type>.json。

然後提供 taste.py suggest,以便維護者可以為所有人修復問題。在此停止。

1. 收集

python3 "$S/improve.py" collect [--edits D] [--no-gh]

一行一條規則,最常重複的排在最前面:出現次數、來源(建議、品味回歸、預覽修正、審閱筆記、GitHub issue)、所屬擁有者名稱,以及最多三個範例。由多位使用者提出,或是在套用後又被提出的規則會優先顯示。

2. 挑選

顯示佇列頂端的項目,並在問題框中詢問現在要修正哪一個(多選,最常重複的排第一位,建議選項)。對於每個項目,如果資訊不明確,也請一併詢問:每位使用者(建議選項) / 僅限部分創作者的風格(這屬於 style.json 欄位,而非規則) / 不修正(關閉)。

3. 依序修正每個項目

  1. 規則。 在 ${CLAUDE_SKILL_DIR}/../../PRINCIPLES.md 的適當標題下一行,說明在何處實施,以及相同的規則也納入所屬的 SKILL.md 或參考文件中。規則應具有通用性,永遠不要針對單一影片:例如「縮放淡入淡出至少需要 0.5 秒」,而不是「0:12 的縮放太突然」。
  2. 實施方式。 讓規則得以強制執行、無需任何人記憶的最小程式碼:在檢查腳本(check.py、quality.py、product.py check、ai_tells.py)中出現的 FAIL、在可能違反規則的腳本中出現的拒絕(gates.py)、一個無法產生違規情況的預設值,或是針對儲存庫規則在 tests/check_plugins.py 中新增的一行。優先考慮加強現有檢查,而非新增檢查。
  3. 測試。 在該腳本的 demo()(或 tests/)中新增一個斷言,基於一個小的合成失敗範例來建置。在修正前執行測試,確認它會失敗;然後在修正後執行,確認它會通過。只有代理程式才能遵循的規則(需要提問或說明),則改為在 evals/ 中建立評估案例:包含 prompt.md 以及 tool_used 或 llm 評分器。
  4. 記錄。 在 docs/feedback-matrix.md 中記錄:規則、規則寫在哪裡、由什麼機制執行、有哪些測試。

4. 執行所有項目

python3 tests/check_plugins.py
python3 .claude/lib/ai_editor/okf.py check

然後執行 tests/demos.sh(每個腳本的展示)、node tests/test_record.mjs,以及如果渲染器已設定,則執行 tests/smoke.py 和 tests/golden.py。全部通過後才能交接。請勿提交變更;維護者會審閱差異並提交。

對於現在已修正的 GitHub issue,在詢問後,可以提議在 issue 中留言一行摘要說明修正內容並關閉它(gh issue close <n> --comment "...")。

絕對禁止

  • 絕對不要編輯使用者的 taste.md、taste.json、rules.json 或 suggestions.jsonl:這些是屬於他們的檔案。
  • 絕對不要將個人資料放入儲存庫中:不得包含姓名、帳號、電子郵件、檔案名稱或來自回饋的影片素材。請撰寫通用規則和合成範例。tests/check_plugins.py 會對已知的私人名稱檢查失敗;在放入每個範例前,請先仔細閱讀。
  • 絕對不要僅靠一則筆記就結束一個問題的處理。一個沒有實施機制和測試的規則不算完成。

檔案

  • scripts/improve.py:mode、collect、demo。僅供讀取。
  • ${CLAUDE_SKILL_DIR}/../../lib/ai_editor/custom.py:使用者的 <library>/custom/ 資料夾(使用者模式會寫入此處)。
  • ${CLAUDE_SKILL_DIR}/../../skills/taste/scripts/taste.py:suggest 和 issue 會將使用者端的資料寫入此處。

Individual skills in this repo

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

Conz-Wilts/ai-editor

Turns one long video or podcast (a local file or a YouTube link) into the best 3-5 short vertical clips, each cut and styled in the user's profile style. Transcribes once, splits the talk into candidate clips at sentence boundaries inside the chosen length, scores every candidate in code (speech rate, loudness, laughter, numbers and names said), shows the shortlist on one page with a preview of each, then trims, cuts and style-edits each pick as its own edit. Use when the user says "clip this video", "make shorts from my podcast", "find the best clips", "cut this into TikToks", "turn this YouTube video into reels", "repurpose this long video", or drops a long video (over about 3 minutes) or a YouTube link and wants short clips. Not for editing one short take (that is start or cut), and not for measuring someone else's style (that is creator-teardown).

Conz-Wilts/ai-editor

Reverse-engineers a short-form creator's video format from their real numbers. Pulls a TikTok or YouTube Shorts profile (or pasted links, Instagram reels too) with view, like and save counts, transcribes the top videos word for word, measures pace, pauses and fillers, maps each video into timed beats, and writes a teardown.md someone can film from, a teardown.html page of their graphics, motion and sound, and the style.json the style-edit skill edits from (on its own it can write an edit plan as a table and .srt). Use when the user wants to analyse, break down or study a creator ("analyse @handle", "tear down @handle", "teardown of @handle", "break down this creator", "what makes this creator's videos work"), pastes TikTok, YouTube or Instagram links and asks what the pattern is, or asks to set up creator-teardown. Not for editing the user's own video like a creator (that is start), not for researching a topic, and not for cutting raw footage.

Conz-Wilts/ai-editor

Cuts raw talking-head footage into a clean jump cut. Takes one take or several joined (mp4 or mov, any aspect, 4K phone footage is fine), transcribes it word by word, removes retakes, false starts, fillers and dead pauses, and renders cut.mp4 at the source resolution plus words.json timed to the cut. The user approves the cut on a page with the whole transcript and every removed word struck through. Use when the user says "cut my video", "just cut it", "remove my mistakes", "cut out the retakes", "remove the pauses", "clean up this take", "jump cut this", "tighten this clip", or asks only for the cut of a raw take; start calls it for a full edit. Runs before style-edit. Not for a general request to edit a video or to make it look like a creator (that is start), not for adding captions, zooms or cards (style-edit), and not for analysing someone else's videos (creator-teardown).

Conz-Wilts/ai-editor

Generates new footage with Higgsfield and puts it on the edit's timeline. Prices every generation first, asks the user with the dollar amount (and, for their own footage, whether it may be uploaded to Higgsfield), then submits, waits, downloads into the edit's generated/ folder and adds the result to the timeline's Generated track. Covers motion transfer on a clip of the user's video (their moves onto a character or styled look), b-roll from a sentence (text to video), a still brought to life (image to video) and stills for cards (text to image). Use when the user says "generate b-roll", "make a shot of", "AI b-roll", "generate a clip", "use Higgsfield", "motion transfer", "put my moves on", "restyle this part with AI", or asks for footage they did not film. Not for animated diagrams or motion graphics (motion), not for real screenshots and logos (overlays, logo-pack), and not for the cut (cut).

相關技能