# Send black-box 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": "black-box",
    "name": "black-box",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/lilyjazz/black-box",
    "canonicalUrl": "https://clawhub.ai/lilyjazz/black-box",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/black-box",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=black-box",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "DESIGN.md",
      "PROTOCOL.md",
      "SKILL.md",
      "requirements.txt",
      "run.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "black-box",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T18:51:43.675Z",
      "expiresAt": "2026-05-06T18:51:43.675Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=black-box",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=black-box",
        "contentDisposition": "attachment; filename=\"black-box-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "black-box"
      },
      "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/black-box"
    },
    "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/black-box",
    "downloadUrl": "https://openagent3.xyz/downloads/black-box",
    "agentUrl": "https://openagent3.xyz/skills/black-box/agent",
    "manifestUrl": "https://openagent3.xyz/skills/black-box/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/black-box/agent.md"
  }
}
```
## Documentation

### Overview

Black Box is an indestructible audit log for AI Agents. It acts as a "Flight Data Recorder" that streams critical actions, errors, and reasoning chains to a persistent cloud database (TiDB Zero) in real-time.

### Security & Provisioning

Bring Your Own Database (Recommended): Set TIDB_* environment variables.
Auto-Provisioning (Fallback): If no credentials are found, this skill uses the TiDB Zero API to create a temporary database for logging. The connection string is cached in ~/.openclaw_black_box_dsn.

### Why use this?

Crash Survival: Local logs vanish when containers crash. Cloud logs persist.
Audit Trail: Prove exactly what your agent did and why (compliance).
Debugging: Retrieve the last 100 actions leading up to a failure.

### Prerequisites

TiDB Credentials: Standard MySQL connection parameters (TIDB_HOST, TIDB_USER, etc.).
Network: Outbound access to TiDB Cloud (port 4000).

### 1. Log an Event

Record a critical action or error:

python {baseDir}/run.py --action log --level ERROR --message "System crash imminent: Memory leak detected"

### 2. Read Logs

Retrieve the last N logs (default: 10):

python {baseDir}/run.py --action read --limit 20

### Schema

This skill creates a table agent_logs with columns: timestamp, level, message, metadata (JSON).
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lilyjazz
- Version: 1.0.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-04-29T18:51:43.675Z
- Expires at: 2026-05-06T18:51:43.675Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/black-box)
- [Send to Agent page](https://openagent3.xyz/skills/black-box/agent)
- [JSON manifest](https://openagent3.xyz/skills/black-box/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/black-box/agent.md)
- [Download page](https://openagent3.xyz/downloads/black-box)