Community编程与开发github.com

plugin-sdk-impact

统计ClawHub上活跃版本和捆绑的OpenClaw插件中Plugin SDK的消费者数量,以辅助弃用、移除或行为变更决策;支持公开发布日期筛选。

plugin-sdk-impact 是什么?

该技能用于评估Plugin SDK变更对生态的影响,通过结合ClawHub仓库中发布的插件和所有捆绑的OpenClaw插件进行静态分析。它识别哪些插件依赖特定的SDK导出、API方法或运行时成员,从而量化潜在影响范围。支持按公开发布日期筛选,但捆绑插件的分析始终是不经过滤的。技能覆盖多种查询场景,包括缺失证据时的处理方法,例如当捆绑插件没有包名时报告可能的重叠范围,而不是猜测。结果分为四种类型:观察到的消费者、未观察到消费者但覆盖完整、分析不完整以及空语料库,每种都有明确的报告格式。最终建议需要结合证据和决策者判断,不能仅凭计数决定兼容性风险。

兼容平台~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 导出和运行时路径。根据定义和已知调用者验证拼写;错误的键可能会返回一个看似正确的零值。同时追踪分组外观、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
命名的钩子hook:hook.before_agent_start
清单契约manifest-contract:manifest.contracts.tools:example_tool

键描述的是 SDK 身份,而不是本地别名。api.runtime 成员规范化为 runtime.*。清单包含受支持和已弃用的引用;非空的 deprecationCodes 选择与现有警告关联的条目。每个插件的检查可通过 https://clawhub.ai/api/v1/sdk-usage/plugin?package=<编码后的名称> 获取;跟随其 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.

相关技能