一键导入
notes-label-repair
Repair corrupted `??:` labels in ATM task-card notes. Use when notes fields contain `??:` instead of `狀態:` / `驗證:` / `變更:` / `阻塞:`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Repair corrupted `??:` labels in ATM task-card notes. Use when notes fields contain `??:` instead of `狀態:` / `驗證:` / `變更:` / `阻塞:`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | notes-label-repair |
| description | Repair corrupted `??:` labels in ATM task-card notes. Use when notes fields contain `??:` instead of `狀態:` / `驗證:` / `變更:` / `阻塞:`. |
修復任務卡 YAML frontmatter notes: 欄位中,因 Agent(如 vs-code-gpt-5.4-mini / codex-gpt-5)無法輸出中文字元而產生的 ??: 標籤損壞。
USE FOR:
notes: 欄位出現 ??: in-progress / ??: pending / ??: none 等模式DO NOT USE FOR:
? — 那是真正的資料損失,需手動補全部分 Agent 在終端輸出時無法顯示中文,會把 狀態: / 驗證: / 變更: / 阻塞: 等 2 字標籤寫成 ??:。
標籤可以 100% 確定性還原,因為格式是固定的 pipe-delimited 位置:
DATE | 狀態: VALUE | 驗證: VALUE | 變更: VALUE | 阻塞: VALUE
|)→ 狀態:驗證:變更:阻塞:node tools_node/repair-notes-labels.js
或指定目錄:
node tools_node/repair-notes-labels.js --dir docs/agent-briefs/tasks/ATM
node tools_node/repair-notes-labels.js --write
隨機抽查幾個修復後的檔案,確認標籤已還原:
Select-String -Pattern "\?\?:" -Path "docs\agent-briefs\tasks\ATM\*.md"
如果輸出為空,代表 ??: 已全部消除。
? 需要手動補全修復後仍可能有值內的 ?(代表損失的中文內容),例如:
狀態: done | 驗證: node scripts/validate.mjs pass | 變更: ?? map workbench ??? | 阻塞: none
這些 ? 代表的中文無法自動還原,需根據上下文手動補全。
git -C <repo-root> add docs/agent-briefs/tasks/ATM/*.md
git -C <repo-root> commit -m "fix(notes): restore ??-label corruption in task card notes"
tools_node/repair-notes-labels.js
| 參數 | 說明 |
|---|---|
| (無) | Dry run,只報告不修改 |
--write | 實際寫入修復後的內容 |
--dir <path> | 指定目錄(預設 docs/agent-briefs/tasks) |
--file <path> | 只修復指定的單一檔案 |
| 可修復 | 不可修復 |
|---|---|
??: 標籤(狀態/驗證/變更/阻塞) | 值內的 ?(損失的中文內容) |
| Word-wrap 跨行的 notes 行 | 整行亂碼(需用其他 encoding repair 工具) |
| 有 ` | ??:` 模式的任何 .md 檔案 |
腳本使用「反向掃描定位」策略:
YYYY-MM-DD | note entry 起點| ??: 出現位置,找最近的 note entry 起點| ??: 之間的 | 數量 → 確定 pipe 位置此策略能正確處理 word-wrapped notes(一個 note entry 跨多個實體行的情況)。
ATM Captain 派工治理。觸發詞 派工 / 派工單 / dispatch / 開卡 / 派任務 / 派代理 / Phase 0 / Phase 1 / AAO / task card / condition review / 收口。負責 AI-Atomic-Framework (AAF) + 3KLife 雙 repo 治理:強制 Context Map 4 層、雙代理拆分(防外卡 mirror commit)、AAF 嚴格 2 commit、3KLife target_repo 嚴格 1 commit、7-8 段回報、禁止清單前置強化、Captain condition review。承載 0064 → 0093+ 累積的紀律教訓。
通用任務開單器 SKILL — 統一建立或回寫 Markdown task card、docs/tasks/tasks-*.json 分片、UI quality shard,並強制遵守 docs/agent-briefs/Readme.md (doc_ai_0023) 與 docs/遊戲規格文件/系統規格書/名詞定義文件.md (doc_spec_0008) 的硬規則。USE FOR: 開任務卡、開單、task card、task shard、tasks-ui.json、tasks-prog.json、tasks-dc.json、tasks-data.json、agent-briefs/tasks、docs/tasks/*_task.md、UI pipeline 開卡。DO NOT USE FOR: 純 runtime 除錯、單純修改既有功能碼但不需要新卡、只做極小 typo 修補。
Plan ATM framework refactors by preserving atom/map semantics before splitting large governance modules.
Route natural-language cleanup, refactor, migration, and candidate ranking goals through ATM before local analysis.
Recommend the next official ATM guidance action from current state.
Resolve the current user prompt into an atm.taskIntent.v1 proposal before next-action routing.