Community程式設計與開發github.com

Plugin SDK 影響分析

統計 ClawHub 正式版本與 OpenClaw 綑綁外掛中的 Plugin SDK 使用者數量,支援以公開版本發佈日期進行篩選,協助判斷淘汰、移除或行為變更的影響範圍。

Plugin SDK 影響分析 是什麼?

這項技能專門用於分析 Plugin SDK 變更(例如 API 淘汰、移除或行為調整)對生態系的實際影響。它會同時查詢 ClawHub 上的公開版本(已發佈的成品)與 OpenClaw 綑綁外掛的原始碼,找出所有直接或間接使用特定 SDK 表面(模組、匯出、API 方法、執行時期成員、Hook 與 Manifest 合約)的外掛。技能會彙整兩邊的數據並回報合併使用量,同時清楚標示覆蓋缺口(如掃描失敗、超時或缺少進入點),避免將零次匹配誤解為「無人使用」。技術上透過 `query.mjs` 腳本查詢正規鍵值,支援以公開版本發佈日期進行分頁篩選,並產出結構化的使用量報告,包含 `distinctPlugins`、`bundled`、`combined` 等欄位。最終報告需附上相容性建議,由 SDK 維護者決定是保留行為、提供遷移方案還是依既有政策繼續執行。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/plugin-sdk-impact

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

在你喜歡的 AI 中提問

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

說明文件

Plugin SDK 影響分析 是做什麼的?

結合目前的 ClawHub 庫存資料與每個綑綁 OpenClaw 外掛的原始碼掃描(包括未上架 ClawHub 的外掛),以輔助相容性決策。靜態使用分析可識別依賴關係,但無法證明實際執行或依賴特定行為。請以 SDK 邊界指南 中的核准與淘汰規則為權威依據。

調查

  1. 從原始碼中識別所有受影響的公開表面,包括替代的 SDK 匯出與執行時期路徑。請根據定義與已知呼叫者驗證拼寫;錯誤的鍵可能回傳看似合理的零結果。同時追蹤群組化外觀(grouped facades)、SDK 輔助函式與註冊讀取器:一個扁平別名可能沒有直接的外掛呼叫,但卻實作了某個支援的群組化方法。

  2. 取得一份完整且最新的綑綁庫存。在建立或重複使用報告前,請先閱讀綑綁掃描程序。只有針對未變更的原始碼副本才能重複使用已完成的報告;失敗、超時、中斷以及缺少進入點的分析仍屬於覆蓋缺口。

  3. 使用兩種來源查詢每個正規鍵:

    node {baseDir}/scripts/query.mjs 'api-member:api.registerTool' \
      --bundled /tmp/openclaw-bundled-sdk-usage.json
    

    如需版本日期篩選、分頁、範例或完整輸出,請參閱查詢視窗與完整輸出。日期篩選僅適用於公開版本;綑綁原始碼部分必須單獨回報且不經篩選。

  4. 將比對到的證據與提議的變更進行比對。某個方法呼叫可能並未使用正在被變更的行為。純類型的使用者對於類型/匯出的移除仍然重要。請分別查詢相關成員;模組匯入不代表使用了每個匯出。同一外掛中的重複引用只計為一個使用者。混合引用則分別計入執行時期與類型的總數中。

  5. 對於使用量統計問題,請回報鍵值、查詢時間、精確的版本視窗(如有要求)、ClawHub 與綑綁數量、合併數量、綑綁的提交記錄,以及兩邊的覆蓋缺口。頂層的 distinctPlugins 與 coverage 僅限 ClawHub;bundled 描述原始碼結果;combined 則將精確的套件身分合併一次。某些綑綁外掛沒有套件名稱:當它們可能與公開匹配重疊時,combined.distinctPlugins 會是 null,而 distinctPluginBounds 則回報可能的範圍。observedPluginIdentities 會在不確定重疊前計算原始碼身分數量。請回報範圍,而非將上限當作精確數量。不同的名稱仍視為不同;切勿根據顯示名稱猜測別名。缺少綑綁證據會導致無法提供合併影響。 對於提議的 SDK 變更,也請回報比對到的證據、間接呼叫者,以及您的相容性建議。以維護者的決定完成變更調查:保留行為、以遷移方案淘汰,或依既有政策繼續執行。切勿根據使用量推斷權限。

正規鍵值

表面範例
SDK 模組sdk-module:openclaw/plugin-sdk/core
具名 SDK 匯出sdk-export:openclaw/plugin-sdk/core#OpenClawPluginApi
外掛 API 方法api-member:api.registerTool
主機執行時期成員runtime-member:runtime.channel.reply.dispatchReplyFromConfig
具名 Hookhook:hook.before_agent_start
Manifest 合約manifest-contract:manifest.contracts.tools:example_tool

鍵值描述的是 SDK 身分,而非本地別名。api.runtime 的成員會正規化為 runtime.*。庫存包含支援與已淘汰的引用;非空的 deprecationCodes 表示該項目有對應的現行警告。每個外掛的檢查可在 https://clawhub.ai/api/v1/sdk-usage/plugin?package=<encoded-name> 進行;請跟隨其 nextCursor 直到 null 以取得完整庫存。

解讀結果

結果報告
觀察到使用者回報公開、綑綁與合併數量及其各自範圍。在判斷行為變更前請檢視證據。
未觀察到使用者,但覆蓋完整「在 N 個公開/綑綁外掛身分中未偵測到靜態引用。」需要兩種掃描都完成;排除未綑綁的私人外掛與非綑綁的依賴。這不表示沒人使用該 API。
部分分析、失敗、遺失、不相容或未解析陳述觀察到的匹配、缺口數量及代表性缺口。零匹配表示影響未知。
空的語料庫未觀察到任何合格外掛;這無法提供生態系保證。
端點不可用、結果格式錯誤或遍歷不完整影響未知。請保留錯誤並使用本地證據;切勿以零取代。

覆蓋率與當前的版本/成品及分析版本相關。合格的 ClawHub 報告應有 inputKind: "artifact";綑綁報告使用 "source"。原始碼結帳基準無法確定已發佈的套件內容。純原始碼的類型引用對於 SDK 類型與匯出的移除仍然重要;請保留每個匹配的來源。舊的掃描時間戳本身不會使不可變的成品過時。證據是取樣而得;每個掃描會回報其證據/未知限制。頁面是即時讀取,而非單次快照:如果在調查期間版本或可見性發生變化,請重新執行。輔助工具會標記其觀察到的變更,但無法建立交易層級的快照。

請勿僅因未觀察到使用者而忽略安全議題。請描述使用證據如何影響相容性風險;安全性與 SDK 的擁有者仍將決定修復方式以及任何偏離正常遷移視窗的例外情況。

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

Verify Telegram draft and final delivery sequencing in QA Lab with QA Channel or Crabline Telegram.

clawdtributor

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

clawhub

Find an integration when asked to install, connect, or set up an app. Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相關技能