{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/black-box",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=black-box",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "DESIGN.md",
      "PROTOCOL.md",
      "SKILL.md",
      "requirements.txt",
      "run.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/black-box",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "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."
      },
      {
        "title": "Security & Provisioning",
        "body": "Bring Your Own Database (Recommended): Set TIDB_* environment variables.\nAuto-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."
      },
      {
        "title": "Why use this?",
        "body": "Crash Survival: Local logs vanish when containers crash. Cloud logs persist.\nAudit Trail: Prove exactly what your agent did and why (compliance).\nDebugging: Retrieve the last 100 actions leading up to a failure."
      },
      {
        "title": "Prerequisites",
        "body": "TiDB Credentials: Standard MySQL connection parameters (TIDB_HOST, TIDB_USER, etc.).\nNetwork: Outbound access to TiDB Cloud (port 4000)."
      },
      {
        "title": "1. Log an Event",
        "body": "Record a critical action or error:\n\npython {baseDir}/run.py --action log --level ERROR --message \"System crash imminent: Memory leak detected\""
      },
      {
        "title": "2. Read Logs",
        "body": "Retrieve the last N logs (default: 10):\n\npython {baseDir}/run.py --action read --limit 20"
      },
      {
        "title": "Schema",
        "body": "This skill creates a table agent_logs with columns: timestamp, level, message, metadata (JSON)."
      }
    ],
    "body": "Black Box (Powered by TiDB Zero)\nOverview\n\nBlack 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.\n\nSecurity & Provisioning\nBring Your Own Database (Recommended): Set TIDB_* environment variables.\nAuto-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.\nWhy use this?\nCrash Survival: Local logs vanish when containers crash. Cloud logs persist.\nAudit Trail: Prove exactly what your agent did and why (compliance).\nDebugging: Retrieve the last 100 actions leading up to a failure.\nPrerequisites\nTiDB Credentials: Standard MySQL connection parameters (TIDB_HOST, TIDB_USER, etc.).\nNetwork: Outbound access to TiDB Cloud (port 4000).\nUsage\n1. Log an Event\n\nRecord a critical action or error:\n\npython {baseDir}/run.py --action log --level ERROR --message \"System crash imminent: Memory leak detected\"\n\n2. Read Logs\n\nRetrieve the last N logs (default: 10):\n\npython {baseDir}/run.py --action read --limit 20\n\nSchema\n\nThis skill creates a table agent_logs with columns: timestamp, level, message, metadata (JSON)."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/lilyjazz/black-box",
    "publisherUrl": "https://clawhub.ai/lilyjazz/black-box",
    "owner": "lilyjazz",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}