# Send JD Price Protection 京东自动价保 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. 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. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "jd-price-protect",
    "name": "JD Price Protection 京东自动价保",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Danielwangyy/jd-price-protect",
    "canonicalUrl": "https://clawhub.ai/Danielwangyy/jd-price-protect",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/jd-price-protect",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=jd-price-protect",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/price-protect.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/jd-price-protect"
    },
    "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/jd-price-protect",
    "downloadUrl": "https://openagent3.xyz/downloads/jd-price-protect",
    "agentUrl": "https://openagent3.xyz/skills/jd-price-protect/agent",
    "manifestUrl": "https://openagent3.xyz/skills/jd-price-protect/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/jd-price-protect/agent.md"
  }
}
```
## Documentation

### JD Price Protection

Auto-apply price protection (价格保护) on all eligible JD.com orders via Chrome Browser Relay.

### Prerequisites

Chrome with OpenClaw Browser Relay extension installed and connected (badge ON)
User must be logged into JD.com in Chrome
OpenClaw gateway running

### Usage

Run the script:

node <skill-dir>/scripts/price-protect.js

The script will:

Connect to Chrome via OpenClaw's CDP relay (auto-derives relay token from gateway config)
Navigate to https://pcsitepp-fm.jd.com/ if needed
Click every "申请价保" button on the page
Reload and collect results (successes with refund amounts, failures with reasons)
Output JSON results

### Interpreting Results

{
  "total": 11,
  "clicked": 11,
  "success": [{"name": "ANKER 140W充电线...", "amount": "6.00"}],
  "failed": [{"name": "KAMAN收纳盒...", "reason": "无差价"}]
}

Only notify user if success array is non-empty (refunds obtained)
If all items show "无差价", update state silently

### Scheduled Usage

Set up a cron job to run every ~8 hours. Example agent prompt:

Run node <skill-dir>/scripts/price-protect.js. If Chrome relay is disconnected (error), skip silently. If refunds found, notify user. Otherwise update checkedAt silently.

### Troubleshooting

"No browser page available": Chrome relay disconnected. User must click Browser Relay toolbar icon.
"No gateway token found": Set GATEWAY_TOKEN env var or ensure ~/.openclaw/openclaw.json has gateway.auth.token.
Timeout on clicks: A popup may be blocking. Script presses Escape after each click to dismiss.

### How It Works

Derives the relay auth token via HMAC-SHA256(gatewayToken, "openclaw-extension-relay-v1:<port>"), connects Playwright to Chrome's CDP websocket, then uses getByText('申请价保', {exact: true}).click() to trigger each button.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Danielwangyy
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/jd-price-protect)
- [Send to Agent page](https://openagent3.xyz/skills/jd-price-protect/agent)
- [JSON manifest](https://openagent3.xyz/skills/jd-price-protect/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/jd-price-protect/agent.md)
- [Download page](https://openagent3.xyz/downloads/jd-price-protect)