← 返回 Skills 市场
631
总下载
1
收藏
5
当前安装
4
版本数
在 OpenClaw 中安装
/install predicate-snapshot
功能描述
ML-powered DOM pruning for 95% smaller browser prompts
安全使用建议
This skill appears to do what it says: prune DOM snapshots and optionally call Predicate's ML ranking service. Two things to consider before installing:
1) Prompt override risk — The docs explicitly tell you to edit your agent/system prompt so the agent always uses /predicate-snapshot. That is effectively a prompt-injection recommendation: if you follow it, the agent will prefer this skill for all page observations. Only do this if you trust the vendor and understand that snapshots (page elements and visible text) may be sent to an external service.
2) Data exfiltration surface — If you set PREDICATE_API_KEY, snapshots are likely sent to predicate.systems for ML ranking. These snapshots can include page text, links, and possibly sensitive data displayed in the browser. If you cannot or do not want page content leaving your environment, run only local mode (/predicate-snapshot-local) and avoid setting PREDICATE_API_KEY.
Practical recommendations:
- Review the '@predicatesystems/runtime' dependency (not included here) and inspect network endpoints it contacts before supplying an API key.
- Test the skill in an isolated environment (the repo provides Docker test scripts) without setting PREDICATE_API_KEY or LLM keys first.
- Do not blindly modify your agent/system prompt globally; instead, add /predicate-snapshot to specific task prompts where you trust it.
- If you must use the API key, consider limiting usage via the suggested max_credits_per_session and monitor outbound network traffic.
Given the explicit prompt-override guidance and the potential to send page snapshots externally, treat this skill as potentially risky unless you verify the external service and limit how broadly you apply the instructions.
功能分析
Type: OpenClaw Skill
Name: predicate-snapshot
Version: 0.4.0
The OpenClaw AgentSkills skill bundle for 'predicate-snapshot' is benign. It provides ML-powered DOM snapshots and action execution for browser automation, aiming to reduce LLM token usage. The code and documentation clearly outline its purpose, which involves interacting with the `predicate.systems` API (its owner) and optionally with legitimate LLM providers (OpenAI, Anthropic) for enhanced functionality. All external network calls, file system operations, and shell commands observed in the installation and test scripts are standard for a skill of this nature and are directly tied to its stated purpose. There is no evidence of data exfiltration, unauthorized persistence, malicious execution, or prompt injection attempts designed to subvert the AI agent's core directives or steal sensitive information.
能力评估
Purpose & Capability
Name/description match the code and docs: the code captures accessibility trees, formats pruned snapshots, and optionally calls a Predicate service when PREDICATE_API_KEY is provided. Demo scripts and CLI commands align with the claimed purpose.
Instruction Scope
SKILL.md explicitly instructs users to modify agent system prompts to 'always use /predicate-snapshot' and to include Predicate snapshot instructions in task prompts. That is effectively a prompt-injection pattern that grants the skill (or its usage) broad influence over agent decisions. The README and SKILL.md also instruct putting PREDICATE_API_KEY into ~/.openclaw/config.yaml, which would cause page snapshots to be sent to an external service — this is expected for an external ML ranking service but is a significant privacy surface and should be highlighted to users.
Install Mechanism
No install spec in registry (instruction-only) and repository provides normal npm-based build/demo scripts. Manual install uses git + npm which are standard; demos use Docker and Playwright. No suspicious arbitrary binary downloads or obfuscated installers were observed in the provided files.
Credentials
Registry metadata declared no required env vars, but SKILL.md and demos use an optional PREDICATE_API_KEY and demonstrate using LLM keys (OPENAI_API_KEY / ANTHROPIC_API_KEY) for demos. These environment variables are reasonable for an ML ranking service and demo LLM providers, but the skill will transmit page snapshots to predicate.systems when the API key is set — users should treat that as potential data exfiltration of page content.
Persistence & Privilege
always:false (good). However, the skill's documentation explicitly encourages altering agent system prompts and task prompts to force use of the skill across workflows; combined with normal autonomous invocation this increases the blast radius (agents can be instructed or coerced to always send page snapshots to the external service). The skill itself does not request permanent system-level privileges, but the recommended user actions effectively grant it persistent influence.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install predicate-snapshot - 安装完成后,直接呼叫该 Skill 的名称或使用
/predicate-snapshot触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.4.0
ML-rank refined DOM snapshots to help OpenClaw use browsers efficiently with 90%+ token reduction
v0.3.0
ML-rank refined DOM snapshots to help OpenClaw use browsers efficiently with 90%+ token reduction
v0.2.0
ML-rank refined DOM snapshots to help OpenClaw use browsers efficiently with 90%+ token reduction
v0.1.0
ML-rank refined DOM snapshots to help OpenClaw use browsers efficiently with 90%+ token reduction
元数据
常见问题
Predicate Snapshot 是什么?
ML-powered DOM pruning for 95% smaller browser prompts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 631 次。
如何安装 Predicate Snapshot?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install predicate-snapshot」即可一键安装,无需额外配置。
Predicate Snapshot 是免费的吗?
是的,Predicate Snapshot 完全免费(开源免费),可自由下载、安装和使用。
Predicate Snapshot 支持哪些平台?
Predicate Snapshot 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Predicate Snapshot?
由 rcholic(@rcholic)开发并维护,当前版本 v0.4.0。
推荐 Skills