# Send Predicate Snapshot to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "predicate-snapshot",
    "name": "Predicate Snapshot",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/rcholic/predicate-snapshot",
    "canonicalUrl": "https://clawhub.ai/rcholic/predicate-snapshot",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/predicate-snapshot",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=predicate-snapshot",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "demo/compare.ts",
      "demo/llm-action.ts",
      "demo/login-demo.ts",
      "docker-compose.yml"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "predicate-snapshot",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T05:19:34.370Z",
      "expiresAt": "2026-05-10T05:19:34.370Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=predicate-snapshot",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=predicate-snapshot",
        "contentDisposition": "attachment; filename=\"predicate-snapshot-0.4.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "predicate-snapshot"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/predicate-snapshot"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/predicate-snapshot",
    "downloadUrl": "https://openagent3.xyz/downloads/predicate-snapshot",
    "agentUrl": "https://openagent3.xyz/skills/predicate-snapshot/agent",
    "manifestUrl": "https://openagent3.xyz/skills/predicate-snapshot/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/predicate-snapshot/agent.md"
  }
}
```
## Documentation

### Predicate Snapshot Engine

Replaces default browser snapshots with Predicate's ML-ranked DOM elements.
Reduces prompt token usage by 95% while preserving actionable elements.

### Why Use This?

ApproachTokensElementsSignal QualityAccessibility Tree (default)~18,000~800Low (noise)Predicate Snapshot~80050High (ranked)

Result: Faster LLM inference, lower costs, fewer retries.

### Requirements

Node.js 18+
PREDICATE_API_KEY environment variable (optional)

Without API key: Local heuristic-based pruning (~80% token reduction)
With API key: ML-powered ranking for cleaner output (~95% token reduction, less noise)

Get your free API key at predicate.systems/keys

### Installation

npx clawdhub@latest install predicate-snapshot

Or manually:

git clone https://github.com/predicate-systems/predicate-snapshot-skill ~/.openclaw/skills/predicate-snapshot
cd ~/.openclaw/skills/predicate-snapshot && npm install && npm run build

### Configuration

For enhanced ML-powered ranking, set your API key:

export PREDICATE_API_KEY="sk-..."

Or configure in ~/.openclaw/config.yaml:

skills:
  predicate-snapshot:
    api_key: "sk-..."
    # Optional: set usage limits
    max_credits_per_session: 100

### /predicate-snapshot

Capture a pruned DOM snapshot optimized for LLM consumption.

/predicate-snapshot [--limit=50] [--include-ordinal]

Options:

--limit=N - Maximum elements to return (default: 50)
--include-ordinal - Include ordinal ranking for list items

Output format:

ID|role|text|imp|is_primary|docYq|ord|DG|href
42|button|Add to Cart|0.95|true|320|1|cart-actions|
15|button|Buy Now|0.92|true|340|2|cart-actions|
23|link|Product Details|0.78|false|400|0||/dp/...

### /predicate-act

Execute an action on an element by its Predicate ID.

/predicate-act <action> <element_id> [value]

Examples:

# Click element 42
/predicate-act click 42

# Type into element 15
/predicate-act type 15 "search query"

# Scroll to element 23
/predicate-act scroll 23

### /predicate-snapshot-local

Local-only snapshot without ML re-ranking (free, lower accuracy).

/predicate-snapshot-local [--limit=50]

Use this for development or when you don't need ML-powered ranking.

### Example Workflow

1. Navigate to page
2. /predicate-snapshot          # Get ranked elements
3. /predicate-act click 42      # Click "Add to Cart" (element 42)
4. /predicate-snapshot          # Refresh snapshot
5. Verify cart updated

### Pricing

TierCredits/MonthPriceHobby500FreeBuilder20,000$19/moPro40,000$49/moTeams120,000$149/moEnterpriseCustomContact us

Each snapshot consumes 1 credit. Local snapshots are free.

### Comparison: Before & After

Before (Accessibility Tree):

@e1 navigation "Skip to main content"
@e2 link "Amazon"
@e3 search "Search Amazon"
... (800+ elements)
@e742 button "Add to Cart"  <-- buried in noise
... (more elements)

After (Predicate Snapshot):

ID|role|text|imp|is_primary|docYq|ord|DG|href
42|button|Add to Cart|0.98|true|520|1|cart-actions|  <-- ranked #1
15|button|Buy Now|0.95|true|540|2|cart-actions|
23|link|See All Buying...|0.72|false|560|3|cart-actions|

### Support

Documentation: predicatesystems.ai/docs
Issues: GitHub Issues
Discord: Predicate Community
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: rcholic
- Version: 0.4.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-03T05:19:34.370Z
- Expires at: 2026-05-10T05:19:34.370Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/predicate-snapshot)
- [Send to Agent page](https://openagent3.xyz/skills/predicate-snapshot/agent)
- [JSON manifest](https://openagent3.xyz/skills/predicate-snapshot/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/predicate-snapshot/agent.md)
- [Download page](https://openagent3.xyz/downloads/predicate-snapshot)