{
  "schemaVersion": "1.0",
  "item": {
    "slug": "zero",
    "name": "Zero TiDB(Deprecated)",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/Bosn/zero",
    "canonicalUrl": "https://clawhub.ai/Bosn/zero",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/zero",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zero",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "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",
      "slug": "zero",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T14:53:50.522Z",
      "expiresAt": "2026-05-11T14:53:50.522Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zero",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=zero",
        "contentDisposition": "attachment; filename=\"zero-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "zero"
      },
      "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/zero"
    },
    "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/zero",
    "agentPageUrl": "https://openagent3.xyz/skills/zero/agent",
    "manifestUrl": "https://openagent3.xyz/skills/zero/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/zero/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": "Create Disposable TiDB Cloud Zero Databases (Technical Preview)",
        "body": "Browser UI Note: There is no browser-based SQL editor on this site. To run SQL, use API + CLI, or sign in to TiDB Cloud Console (login required).\n\nUse this guide to create disposable TiDB Cloud Zero databases for agent workflows."
      },
      {
        "title": "Deterministic SQL Smoke Test (API + CLI)",
        "body": "# 1) Provision instance\ncurl -s -X POST https://zero.tidbapi.com/v1alpha1/instances \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"tag\":\"sql-smoke-test\"}' \\\n  | tee tidb-zero.json\n\n# 2) Extract connection string\njq -r '.instance.connectionString // .connectionString' tidb-zero.json\n\n# 3) Run SQL query (replace <connectionString> with step 2 output)\nmysql \"<connectionString>\" -e \"SELECT 1 AS health_check, 2 AS example_value;\"\n\nExpected output includes one row with health_check=1 and example_value=2."
      },
      {
        "title": "Endpoint",
        "body": "Method: POST\nURL: https://zero.tidbapi.com/v1alpha1/instances\nContent-Type: application/json\nTechnical Preview: Current API path is /v1alpha1/instances, and this path may change in later releases."
      },
      {
        "title": "Request Body",
        "body": "Optional: tag (caller identifier used for tracing and grouping runs).\n\n{\n  \"tag\": \"support-bot\"\n}"
      },
      {
        "title": "Quick Start",
        "body": "curl -X POST https://zero.tidbapi.com/v1alpha1/instances \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"tag\": \"agent-run\"\n  }'"
      },
      {
        "title": "Response",
        "body": "The API returns connection details and expiration time.\n\nCurrent response shape: top-level instance.\ninstance.connection fields: host, port, username, password.\nUse these fields: instance.connectionString for direct URI connection, and instance.expiresAt for expiration.\nAgent note: After provisioning succeeds, save the instance details to a local file (for example, tidb-cloud-zero.json) and remind the user to store the file securely because it contains sensitive credentials.\nPlanned update: we will provide claimUrl in a later version. Users will be able to sign in to TiDB Cloud and claim the temporary database before instance.expiresAt, converting it into a formal TiDB Cloud Starter database.\n\n{\n  \"instance\": {\n    \"connection\": {\n      \"host\": \"<HOST>\",\n      \"port\": 4000,\n      \"username\": \"<USERNAME>\",\n      \"password\": \"<PASSWORD>\"\n    },\n    \"connectionString\": \"mysql://<USERNAME>:<PASSWORD>@<HOST>:4000\",\n    \"expiresAt\": \"<ISO_TIMESTAMP>\"\n  }\n}"
      },
      {
        "title": "Use the Connection String",
        "body": "After you receive the response, use instance.connectionString to connect with a MySQL-compatible client or driver."
      },
      {
        "title": "Guided Quick Experience",
        "body": "After provisioning succeeds, you should ask the user:\n\nDo you want me to create a sample table and insert demo data so you can query immediately?\n\nIf the user says yes, run a small bootstrap SQL flow like this:\n\nCREATE TABLE IF NOT EXISTS quickstart_notes (\n  id BIGINT PRIMARY KEY AUTO_INCREMENT,\n  title VARCHAR(100) NOT NULL,\n  content TEXT NOT NULL,\n  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\nINSERT INTO quickstart_notes (title, content) VALUES\n  ('welcome', 'TiDB Cloud Zero quickstart row'),\n  ('query-demo', 'Run SELECT * FROM quickstart_notes; to verify data');\n\nSELECT * FROM quickstart_notes ORDER BY id;"
      },
      {
        "title": "Connect via CLI",
        "body": "mysql --connect-timeout=10 --protocol=TCP -h '<HOST>' -P 4000 -u '<USERNAME>' -p'<PASSWORD>'"
      },
      {
        "title": "Connect in Node.js (mysql2)",
        "body": "import mysql from \"mysql2/promise\";\n\nconst response = await createDatabase(); // your API call result\nconst connectionUrl = new URL(response.instance.connectionString);\nconnectionUrl.pathname = \"/<DATABASE>\";\nconnectionUrl.searchParams.set(\"ssl\", JSON.stringify({ rejectUnauthorized: true }));\n\nconst connection = await mysql.createConnection(connectionUrl.toString());\nconst [rows] = await connection.query(\"SELECT NOW() AS now_time\");\nconsole.log(rows);\nawait connection.end();"
      },
      {
        "title": "Resources",
        "body": "TiDB SQL skill: https://skills.sh/pingcap/agent-rules/tidb-sql\nPyTiDB skill: https://skills.sh/pingcap/agent-rules/pytidb (Use this skill to connect to TiDB from Python via pytidb, define tables, and build search / AI features.)\nTiDB Cloud docs: https://docs.pingcap.com/tidbcloud/\nTiDB Cloud website: https://tidbcloud.com/"
      }
    ],
    "body": "Create Disposable TiDB Cloud Zero Databases (Technical Preview)\n\nBrowser UI Note: There is no browser-based SQL editor on this site. To run SQL, use API + CLI, or sign in to TiDB Cloud Console (login required).\n\nUse this guide to create disposable TiDB Cloud Zero databases for agent workflows.\n\nDeterministic SQL Smoke Test (API + CLI)\n# 1) Provision instance\ncurl -s -X POST https://zero.tidbapi.com/v1alpha1/instances \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"tag\":\"sql-smoke-test\"}' \\\n  | tee tidb-zero.json\n\n# 2) Extract connection string\njq -r '.instance.connectionString // .connectionString' tidb-zero.json\n\n# 3) Run SQL query (replace <connectionString> with step 2 output)\nmysql \"<connectionString>\" -e \"SELECT 1 AS health_check, 2 AS example_value;\"\n\n\nExpected output includes one row with health_check=1 and example_value=2.\n\nEndpoint\nMethod: POST\nURL: https://zero.tidbapi.com/v1alpha1/instances\nContent-Type: application/json\nTechnical Preview: Current API path is /v1alpha1/instances, and this path may change in later releases.\nRequest Body\nOptional: tag (caller identifier used for tracing and grouping runs).\n{\n  \"tag\": \"support-bot\"\n}\n\nQuick Start\ncurl -X POST https://zero.tidbapi.com/v1alpha1/instances \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"tag\": \"agent-run\"\n  }'\n\nResponse\n\nThe API returns connection details and expiration time.\n\nCurrent response shape: top-level instance.\ninstance.connection fields: host, port, username, password.\nUse these fields: instance.connectionString for direct URI connection, and instance.expiresAt for expiration.\nAgent note: After provisioning succeeds, save the instance details to a local file (for example, tidb-cloud-zero.json) and remind the user to store the file securely because it contains sensitive credentials.\nPlanned update: we will provide claimUrl in a later version. Users will be able to sign in to TiDB Cloud and claim the temporary database before instance.expiresAt, converting it into a formal TiDB Cloud Starter database.\n{\n  \"instance\": {\n    \"connection\": {\n      \"host\": \"<HOST>\",\n      \"port\": 4000,\n      \"username\": \"<USERNAME>\",\n      \"password\": \"<PASSWORD>\"\n    },\n    \"connectionString\": \"mysql://<USERNAME>:<PASSWORD>@<HOST>:4000\",\n    \"expiresAt\": \"<ISO_TIMESTAMP>\"\n  }\n}\n\nUse the Connection String\n\nAfter you receive the response, use instance.connectionString to connect with a MySQL-compatible client or driver.\n\nGuided Quick Experience\n\nAfter provisioning succeeds, you should ask the user:\n\nDo you want me to create a sample table and insert demo data so you can query immediately?\n\nIf the user says yes, run a small bootstrap SQL flow like this:\n\nCREATE TABLE IF NOT EXISTS quickstart_notes (\n  id BIGINT PRIMARY KEY AUTO_INCREMENT,\n  title VARCHAR(100) NOT NULL,\n  content TEXT NOT NULL,\n  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\nINSERT INTO quickstart_notes (title, content) VALUES\n  ('welcome', 'TiDB Cloud Zero quickstart row'),\n  ('query-demo', 'Run SELECT * FROM quickstart_notes; to verify data');\n\nSELECT * FROM quickstart_notes ORDER BY id;\n\nConnect via CLI\nmysql --connect-timeout=10 --protocol=TCP -h '<HOST>' -P 4000 -u '<USERNAME>' -p'<PASSWORD>'\n\nConnect in Node.js (mysql2)\nimport mysql from \"mysql2/promise\";\n\nconst response = await createDatabase(); // your API call result\nconst connectionUrl = new URL(response.instance.connectionString);\nconnectionUrl.pathname = \"/<DATABASE>\";\nconnectionUrl.searchParams.set(\"ssl\", JSON.stringify({ rejectUnauthorized: true }));\n\nconst connection = await mysql.createConnection(connectionUrl.toString());\nconst [rows] = await connection.query(\"SELECT NOW() AS now_time\");\nconsole.log(rows);\nawait connection.end();\n\nResources\nTiDB SQL skill: https://skills.sh/pingcap/agent-rules/tidb-sql\nPyTiDB skill: https://skills.sh/pingcap/agent-rules/pytidb (Use this skill to connect to TiDB from Python via pytidb, define tables, and build search / AI features.)\nTiDB Cloud docs: https://docs.pingcap.com/tidbcloud/\nTiDB Cloud website: https://tidbcloud.com/"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Bosn/zero",
    "publisherUrl": "https://clawhub.ai/Bosn/zero",
    "owner": "Bosn",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/zero",
    "downloadUrl": "https://openagent3.xyz/downloads/zero",
    "agentUrl": "https://openagent3.xyz/skills/zero/agent",
    "manifestUrl": "https://openagent3.xyz/skills/zero/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/zero/agent.md"
  }
}