[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79CB791D8J5MPFSGN4WS2S7":3,"skill-same:01M79CB791D8J5MPFSGN4WS2S7":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":44},"01M79CB791D8J5MPFSGN4WS2S7","scan-cui",null,"自動掃描小翠時政財經最新影片，判斷是否已下載，若無則自動執行處理流程","Automata-Theatre\u002Fcui-member-skill","Automata-Theatre","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F88235783?v=4","01M79CAJC6MZ13WPJ2SYYESANP","Automata Theatre(人形劇団)","01M79CAJCWD5B69FCGVMCFWD9C",3,"MIT","https:\u002F\u002Fgithub.com\u002FAutomata-Theatre\u002Fcui-member-skill\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fscan-cui\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: scan-cui\ndescription: '自動掃描小翠時政財經最新影片，判斷是否已下載，若無則自動執行處理流程'\ndisable-model-invocation: true\n---\n## 任務：自動掃描最新影片 (Auto-Scan)\n\n請你執行 `\u002Fscan_cui` 的自動化掃描任務。\n\n### 執行步驟\n\n#### Step 0: 初始化環境與讀取設定\n無論是在 Windows 或 Mac 環境，請**一律先執行對應的載入腳本**，以取得環境變數與判斷條件，**絕對不要直接讀取 `.env` 文件**：\n- **Windows**:\n  ```powershell\n  Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass; . scripts\u002Fload-env.ps1\n  ```\n- **Mac**:\n  ```bash\n  source scripts\u002Fload-env.sh\n  ```\n執行後，根據腳本輸出的環境變數或回顯結果判斷是否需使用容器（依據 `AGENTS.md` 的規則）。\n- 若需使用容器，後續指令請加上容器執行前綴，例如 `$env:CONTAINER_RUNTIME exec $env:CUI_CONTAINER uv run ...` (Windows) 或 `$CONTAINER_RUNTIME exec $CUI_CONTAINER uv run ...` (Mac)。\n- 若不需使用容器，則後續指令直接使用 `uv run ...` 即可。\n#### Step 1: 取得最新影片資訊\n1. 根據作業系統執行對應指令，取得「小翠時政財經」最新直播影片的標題、URL 與美東上傳\u002F開播時間（加上 `--with-time`）：\n   - **Mac**: `uv run skills\u002Fget_latest_video.py \"https:\u002F\u002Fwww.youtube.com\u002F@cui_news\u002Fstreams\" --with-time`\n   - **Windows**: 依環境設定使用容器指令（如 `& $env:CONTAINER_RUNTIME exec $env:CUI_CONTAINER uv run skills\u002Fget_latest_video.py \"https:\u002F\u002Fwww.youtube.com\u002F@cui_news\u002Fstreams\" --with-time`）或直接執行（`uv run skills\u002Fget_latest_video.py \"https:\u002F\u002Fwww.youtube.com\u002F@cui_news\u002Fstreams\" --with-time`）\n2. 加上 `--with-time` 時腳本會返回 `\u003C標題>|\u003CURL>|\u003C美東時間>` 的格式（未加時為 `\u003C標題>|\u003CURL>`）。請解析出該影片的 **標題**、**URL** 與 **美東時間**，並在回報時附上該影片的美東上傳\u002F開播時間。\n\n#### Step 2: 檢查是否已下載與處理\n1. 使用以下命令檢查剛才取得的 **URL** 是否已存在於下載紀錄中（腳本會自動解析影片 ID 並搜尋 `logs\u002Fdownload.log`）：\n   - **Mac**: `uv run skills\u002Flog_download.py check \"\u003CURL>\"`\n   - **Windows**: 依環境設定使用容器指令或直接執行 `uv run skills\u002Flog_download.py check \"\u003CURL>\"`\n2. 判斷邏輯：\n   - 若輸出 `[FOUND]`（結束代碼 0），代表已經處理過。請向使用者回報「小翠時政財經：最新影片已處理過，無須重新下載」，並 **結束此任務**。\n   - 若輸出 `[NOT_FOUND]`（結束代碼 1），代表這是新的未處理影片，請進入 Step 3。\n\n#### Step 3: 執行處理流程 (處理新影片)\n既然這是一部新影片，請你自動針對剛取得的 **URL** 依序執行以下操作：\n1. **下載**: 執行 `\u002Fdownload`，先以 `skills\u002Fresolve_target_dir.py` 決定歸檔資料夾（同日已有 `summary.md` 時自動順延一天），再以 `--output-dir` 直接下載至該資料夾。\n2. **分類**: `\u002Forganize` 僅需確認分類結果（檔案已在 `docs\u002F小翠時政財經\u002F...`）。\n3. **轉譯**: 執行 `\u002Ftranscribe` 產生文字稿。\n4. **摘要**: 執行 `\u002Fsummarize` 產生投資分析報告 (`summary.md`)。\n5. **結束任務**: 若你是單獨執行 `\u002Fscan_cui`，請到此（完成 `\u002Fsummarize`）為止，向使用者回報「小翠時政財經：新影片已下載並完成摘要」，**不要**接著執行 `\u002Fscan_meitou_news`、`\u002Fscan_meitou_stock`、`\u002Fcompare`、`\u002Fsync_gist` 或 `\u002Farchive`。\n\n### 注意\n- **⚠️ 處理 Cookie 錯誤（[COOKIE_ERROR]）**：若執行 `get_latest_video.py` 或 `download_audio.py` 時遇到 `[COOKIE_ERROR]` 或因 YouTube 認證失敗而中斷，請**立即終止**所有後續流程（不可繼續下載或摘要）。請向使用者提示目前的 Cookie 檔案路徑（如 `.env` 中的 `COOKIES_PATH` 或是預設的 `.\u002Fcookies.txt`），並詢問使用者要選擇以下哪種方式處理：\n  1. 手動更新目前的 Cookie 檔案（提示檔案路徑）\n  2. 指定另一個新的 Cookie 檔案路徑\n  3. 改為從瀏覽器自動讀取 Cookie（請使用者指定瀏覽器，例如 chrome, edge, firefox）\n- 回報與執行結果請使用**繁體中文**。\n","## 任務：自動掃描最新影片 (Auto-Scan)\n\n請你執行 `\u002Fscan_cui` 的自動化掃描任務。\n\n### 執行步驟\n\n#### Step 0: 初始化環境與讀取設定\n無論是在 Windows 或 Mac 環境，請**一律先執行對應的載入腳本**，以取得環境變數與判斷條件，**絕對不要直接讀取 `.env` 文件**：\n- **Windows**:\n  ```powershell\n  Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass; . scripts\u002Fload-env.ps1\n  ```\n- **Mac**:\n  ```bash\n  source scripts\u002Fload-env.sh\n  ```\n執行後，根據腳本輸出的環境變數或回顯結果判斷是否需使用容器（依據 `AGENTS.md` 的規則）。\n- 若需使用容器，後續指令請加上容器執行前綴，例如 `$env:CONTAINER_RUNTIME exec $env:CUI_CONTAINER uv run ...` (Windows) 或 `$CONTAINER_RUNTIME exec $CUI_CONTAINER uv run ...` (Mac)。\n- 若不需使用容器，則後續指令直接使用 `uv run ...` 即可。\n#### Step 1: 取得最新影片資訊\n1. 根據作業系統執行對應指令，取得「小翠時政財經」最新直播影片的標題、URL 與美東上傳\u002F開播時間（加上 `--with-time`）：\n   - **Mac**: `uv run skills\u002Fget_latest_video.py \"https:\u002F\u002Fwww.youtube.com\u002F@cui_news\u002Fstreams\" --with-time`\n   - **Windows**: 依環境設定使用容器指令（如 `& $env:CONTAINER_RUNTIME exec $env:CUI_CONTAINER uv run skills\u002Fget_latest_video.py \"https:\u002F\u002Fwww.youtube.com\u002F@cui_news\u002Fstreams\" --with-time`）或直接執行（`uv run skills\u002Fget_latest_video.py \"https:\u002F\u002Fwww.youtube.com\u002F@cui_news\u002Fstreams\" --with-time`）\n2. 加上 `--with-time` 時腳本會返回 `\u003C標題>|\u003CURL>|\u003C美東時間>` 的格式（未加時為 `\u003C標題>|\u003CURL>`）。請解析出該影片的 **標題**、**URL** 與 **美東時間**，並在回報時附上該影片的美東上傳\u002F開播時間。\n\n#### Step 2: 檢查是否已下載與處理\n1. 使用以下命令檢查剛才取得的 **URL** 是否已存在於下載紀錄中（腳本會自動解析影片 ID 並搜尋 `logs\u002Fdownload.log`）：\n   - **Mac**: `uv run skills\u002Flog_download.py check \"\u003CURL>\"`\n   - **Windows**: 依環境設定使用容器指令或直接執行 `uv run skills\u002Flog_download.py check \"\u003CURL>\"`\n2. 判斷邏輯：\n   - 若輸出 `[FOUND]`（結束代碼 0），代表已經處理過。請向使用者回報「小翠時政財經：最新影片已處理過，無須重新下載」，並 **結束此任務**。\n   - 若輸出 `[NOT_FOUND]`（結束代碼 1），代表這是新的未處理影片，請進入 Step 3。\n\n#### Step 3: 執行處理流程 (處理新影片)\n既然這是一部新影片，請你自動針對剛取得的 **URL** 依序執行以下操作：\n1. **下載**: 執行 `\u002Fdownload`，先以 `skills\u002Fresolve_target_dir.py` 決定歸檔資料夾（同日已有 `summary.md` 時自動順延一天），再以 `--output-dir` 直接下載至該資料夾。\n2. **分類**: `\u002Forganize` 僅需確認分類結果（檔案已在 `docs\u002F小翠時政財經\u002F...`）。\n3. **轉譯**: 執行 `\u002Ftranscribe` 產生文字稿。\n4. **摘要**: 執行 `\u002Fsummarize` 產生投資分析報告 (`summary.md`)。\n5. **結束任務**: 若你是單獨執行 `\u002Fscan_cui`，請到此（完成 `\u002Fsummarize`）為止，向使用者回報「小翠時政財經：新影片已下載並完成摘要」，**不要**接著執行 `\u002Fscan_meitou_news`、`\u002Fscan_meitou_stock`、`\u002Fcompare`、`\u002Fsync_gist` 或 `\u002Farchive`。\n\n### 注意\n- **⚠️ 處理 Cookie 錯誤（[COOKIE_ERROR]）**：若執行 `get_latest_video.py` 或 `download_audio.py` 時遇到 `[COOKIE_ERROR]` 或因 YouTube 認證失敗而中斷，請**立即終止**所有後續流程（不可繼續下載或摘要）。請向使用者提示目前的 Cookie 檔案路徑（如 `.env` 中的 `COOKIES_PATH` 或是預設的 `.\u002Fcookies.txt`），並詢問使用者要選擇以下哪種方式處理：\n  1. 手動更新目前的 Cookie 檔案（提示檔案路徑）\n  2. 指定另一個新的 Cookie 檔案路徑\n  3. 改為從瀏覽器自動讀取 Cookie（請使用者指定瀏覽器，例如 chrome, edge, firefox）\n- 回報與執行結果請使用**繁體中文**。\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","10d1fa25c1c0f756d20dcac4dac715fe8201e77d",".github\u002Fskills\u002Fscan-cui",2,"https:\u002F\u002Fgithub.com\u002FAutomata-Theatre\u002Fcui-member-skill","https:\u002F\u002Fgithub.com\u002FAutomata-Theatre","2026-11-14 17:50:51",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Automata-Theatre\u002Fcui-member-skill --skill scan-cui",{"tool":38,"command":39},"bunx","bunx skills add Automata-Theatre\u002Fcui-member-skill --skill scan-cui",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Automata-Theatre\u002Fcui-member-skill --skill scan-cui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAutomata-Theatre\u002Fcui-member-skill\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fscan-cui\u002FSKILL.md",[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M79CBTNPNHWA9Q4Z9Z5R52HQ","transcribe","Step 3: 使用 Whisper 將音訊轉為文字稿","https:\u002F\u002Fgithub.com\u002FAutomata-Theatre\u002Fcui-member-skill\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftranscribe\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M79CBSE5KKYVD7X36KQ6X7XW","sync-gist","Step 6: 同步至 Gist","https:\u002F\u002Fgithub.com\u002FAutomata-Theatre\u002Fcui-member-skill\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsync-gist\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M79CBP54XZEHNDQRX08M56TC","summarize","Step 4: 閱讀文字稿並生成摘要與投資分析報告","https:\u002F\u002Fgithub.com\u002FAutomata-Theatre\u002Fcui-member-skill\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsummarize\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M79CBHH2VPVKVHT0XBJMJ2PN","stock-eval","特殊任務: 以「股價 = EPS × PE」拆解為核心，並補強內部人\u002F大股東\u002F機構\u002F經營陣容\u002F盈利品質\u002F訴訟與政策風險等視角，客觀評價指定公司或股票代碼（Gemini 提示詞或 Agent 內部分析，僅限手動執行）","https:\u002F\u002Fgithub.com\u002FAutomata-Theatre\u002Fcui-member-skill\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fstock-eval\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79CBDWTFE8Y5AFF3Q0TBZ8J","scan-meitou-stock","自動掃描美投講美股最新影片（每週日更新），判斷是否已下載，若無則自動執行處理流程","https:\u002F\u002Fgithub.com\u002FAutomata-Theatre\u002Fcui-member-skill\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fscan-meitou-stock\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79CBA17R44YYVY8E5TN4FRH","scan-meitou-news","自動掃描美投侃新聞最新影片，判斷是否已下載，若無則自動執行處理流程","https:\u002F\u002Fgithub.com\u002FAutomata-Theatre\u002Fcui-member-skill\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fscan-meitou-news\u002FSKILL.md",[],[]]