Community程式設計與開發github.com

知識自動化

建立排程的知識擷取自動化流程,包含驗證過的工作者、私有知識庫權限,以及端到端的排程執行。當被要求排程或修復任何來源的定期擷取時使用。

知識自動化 是什麼?

此技能專為 AI agent(如 Claude Code、Cursor 或 Codex)設計,用於建立可靠的排程知識擷取自動化流程。它確保工作者擁有正確的授權(特別是針對私有知識庫),並透過完整的端對端測試驗證排程路徑。支援的平台包括 OpenClaw 等 CLI 工具,其運作方式是先檢查現有自動化任務、透過委派機制建立持久的擷取工作者、使用要求的工作流程(如 `knowledge-source-ingest` 和 `knowledge-ingest`)建立主機自動化,最後透過實際排程觸發來驗證整個鏈路。此技能會強制執行嚴格的權限邊界(如禁止自我重新授權)、明確的錯誤回報(`AUTOMATION_FAILED` 格式),以及重複資料刪除驗證,以防止重複發佈。若未經適當的擁有者委派,無法使用排程或腳本捷徑,從而確保安全性與資料完整性。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/extensions/knowledge/skills/knowledge-automation

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

知識自動化 是做什麼的?

  1. 識別任務。 在建立替代任務之前,先檢查現有的自動化任務。 確認授權的來源、預期的 agent/知識庫、排程頻率和時區。 驗證正在執行的 OpenClaw 安裝及其當前的自動化 CLI/架構; PATH 上不同的 CLI 可能指向不相容的安裝。最後應確認 預期的任務以及任何已存在的檢查點。

  2. 建立工作者的權限。 對於擁有者私有的知識庫擷取,請使用 經過驗證的 OpenClaw 2026.9.8 組合:一個由操作者撰寫、命名為 session 的 自動化任務,目標是保留的、真正由擁有者委派的 OpenClaw session。 從授權的擁有者對話中,使用 sessions_spawn 搭配 runtime: "subagent"、cleanup: "keep",且不啟用收集器模式。讓子程序 檢查 knowledge_status 以取得預期的範圍/agent/知識庫,並在可用時讀取已知的 現有記錄;保留其傳回的 session 金鑰。這是 持久的擷取工作者,而非內部研究子 agent。 僅有操作者排程並不授予私有存取權。一個全新的命名 session、分離的 current 執行或無頭腳本不能替代 委派。最終應保留一個已展現預期存取權的工作者。

  3. 建立主機自動化。 使用經過驗證的安裝所支援的 操作者 CLI(openclaw automations add,或編輯預期的現有任務), 搭配 agent 輪訊息和 --session "session:<傳回的 session 金鑰>"。 以請求者為範圍的自動化建立無法鎖定另一個對話的 工作空間。如果操作者排程不可用,請回報此阻礙;切勿 偽造擁有者上下文或編輯已儲存的權限收據。設定要求的 排程/時區、足夠的逾時時間以及工作流程的有限工具允許清單。 發現排程執行階段的實際執行工具,而非假設互動式工具名稱。 讀回目標和任務配置。

    任務訊息必須在每次執行時要求:

    • 在擷取或寫入之前,先檢查預期的知識庫範圍/存取權。
    • 使用來源現有的授權憑證路徑進行全新的擷取。
    • 視情況使用 knowledge-source-ingest 進行增量覆蓋/協調,然後使用 knowledge-ingest 或 knowledge-meeting-ingest 處理內容。
    • 在提交其檢查點之前驗證所選的工作流程; 若失敗則保留可重試的工作和先前的檢查點。
    • 若為無法解決的失敗,在其第一行使用 AUTOMATION_FAILED,後接 原因。NO_REPLY 用於成功的無變更執行,而非隱藏的錯誤。
  4. 證明排程路徑。 透過排程器執行,而非僅使用互動式工具。 要求終端執行收據、正確的知識庫存取、驗證過的已儲存覆蓋 和檢查點讀回。使用不變的來源內容重複執行,並 驗證沒有重複發佈。同時確認實際的計時器觸發; 僅建立任務或列出來源並不能證明擷取成功。在替換 任務時,請在驗證後停用舊任務,並確認只有一個任務處於啟用狀態。 明確回報任何未經測試的發佈或重複行為。

  5. 回報操作與限制。 提供任務、執行頻率、下次執行時間和已驗證的 結果。分別檢查結果傳遞和失敗警報:靜默傳遞 (delivery.mode: "none")會將結果保留在自動化歷史記錄中,並 不代表主動通知。父層的重設/移除/重新指派會撤銷 委派;工作者重設或移除也可能使存取權失效。檢查 有效的重設/保留政策。若失去權限,請停止寫入和檢查點 推進;僅能透過新授權的擁有者委派和支援的 重新定位來恢復,絕不能自我重新授權。

Individual skills in this repo

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

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

相關技能