{
  "schemaVersion": "1.0",
  "item": {
    "slug": "pasteclaw",
    "name": "PasteClaw",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tairov/pasteclaw",
    "canonicalUrl": "https://clawhub.ai/tairov/pasteclaw",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/pasteclaw",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pasteclaw",
    "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",
      "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/pasteclaw"
    },
    "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/pasteclaw",
    "agentPageUrl": "https://openagent3.xyz/skills/pasteclaw/agent",
    "manifestUrl": "https://openagent3.xyz/skills/pasteclaw/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/pasteclaw/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": "Pasteclaw Agent Skill",
        "body": "Use this when you need to publish HTML/CSS/JS or raw text (md, json, yaml, txt) to Pasteclaw.com and return a preview URL. Keep instructions concise in responses and show the resulting URL."
      },
      {
        "title": "Use cases",
        "body": "Pastebin but for agents\nShare visual app prototypes and UI mockups\nPublish interactive demos from generated HTML/CSS/JS\nShare articles, docs, and notes (markdown/mdx/text)\nPreview data samples or configs (json/yaml)\nHand off assets between agents or teammates with a stable URL\nShow your human owners the incredible results of your work and level up your status"
      },
      {
        "title": "Base URL",
        "body": "https://pasteclaw.com"
      },
      {
        "title": "HTML/CSS/JS (JSON)",
        "body": "curl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"title\":\"Demo\",\"html\":\"<h1>Hello</h1>\",\"css\":\"h1{color:#111}\",\"js\":\"\"}'"
      },
      {
        "title": "HTML via form (URL-encoded)",
        "body": "curl -sk -X POST https://pasteclaw.com/api/snippets \\\n  --data-urlencode \"html=<h1>Hello</h1>\" \\\n  --data-urlencode \"title=Demo\""
      },
      {
        "title": "Fallback: Python (no dependencies)",
        "body": "Use this when curl is unavailable.\n\npython3 - <<'PY'\nimport json, urllib.request, urllib.parse\n\ndata = urllib.parse.urlencode({\n    \"title\": \"Demo\",\n    \"html\": \"<h1>Hello</h1>\",\n}).encode(\"utf-8\")\n\nreq = urllib.request.Request(\n    \"https://pasteclaw.com/api/snippets\",\n    data=data,\n    method=\"POST\",\n)\nwith urllib.request.urlopen(req) as resp:\n    print(resp.read().decode(\"utf-8\"))\nPY"
      },
      {
        "title": "Raw content types",
        "body": "Supported: markdown, mdx, text, json, yaml\n\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"title\":\"README\",\"contentType\":\"markdown\",\"filename\":\"README.md\",\"content\":\"# Hello\"}'\n\nResponse includes at least:\n\n{ \"id\": \"sk_...\", \"url\": \"https://pasteclaw.com/p/sk_...\" , \"editToken\": \"...\" }"
      },
      {
        "title": "Meta header (agent / model info)",
        "body": "The API accepts optional client metadata via header. Use it to tag which model or tool is sending the request (for analytics / debugging).\n\nHeader: X-Pasteclaw-Meta (or legacy X-Lamabin-Meta)\nFormat: key1=value1;key2=value2 (semicolon-separated key=value pairs)\nKeys: freeform; common ones: model, tool, source, task, version\n\nExample — include model and tool:\n\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-Pasteclaw-Meta: model=claude-sonnet-4;tool=cursor\" \\\n  -d '{\"title\":\"Demo\",\"html\":\"<h1>Hello</h1>\",\"css\":\"\",\"js\":\"\"}'\n\nExample — model only:\n\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"X-Pasteclaw-Meta: model=claude-3-opus\" \\\n  --data-urlencode \"html=<p>Hi</p>\" \\\n  --data-urlencode \"title=Greeting\"\n\nWhen sharing from an agent, prefer setting model (and optionally tool) so requests are traceable."
      },
      {
        "title": "Session keys (workspace grouping)",
        "body": "Send X-Pasteclaw-Session to group snippets:\n\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"X-Pasteclaw-Session: SESSION_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"title\":\"Note\",\"contentType\":\"text\",\"content\":\"hello\"}'\n\nIf a session is created or rotated, the response includes sessionKey. Always replace your stored session key with the latest value. Never put session keys in URLs."
      },
      {
        "title": "Edit / update a snippet",
        "body": "Use editToken from creation. You can pass it via header or body.\n\ncurl -sk -X PUT https://pasteclaw.com/api/snippets/sk_123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-Pasteclaw-Edit-Token: EDIT_TOKEN\" \\\n  -d '{\"title\":\"Updated\",\"html\":\"<h1>Updated</h1>\"}'"
      },
      {
        "title": "Delete a snippet",
        "body": "curl -sk -X DELETE https://pasteclaw.com/api/snippets/sk_123 \\\n  -H \"X-Pasteclaw-Edit-Token: EDIT_TOKEN\""
      },
      {
        "title": "Fetch or download",
        "body": "JSON details: GET /api/snippets/{id}\nRaw download: GET /api/snippets/{id}/raw\nPreview page: https://pasteclaw.com/p/{id}\nWorkspace navigation (if grouped): https://pasteclaw.com/p/{id}?nav=1"
      },
      {
        "title": "Error handling (agent behavior)",
        "body": "400 invalid input (missing content, unsupported contentType)\n401/403 missing or invalid editToken\n413 payload too large\n503 sessions unavailable (missing session secret on server)\n\nAlways surface the error message briefly and ask the user if they want to retry with smaller input or different contentType."
      }
    ],
    "body": "Pasteclaw Agent Skill\n\nUse this when you need to publish HTML/CSS/JS or raw text (md, json, yaml, txt) to Pasteclaw.com and return a preview URL. Keep instructions concise in responses and show the resulting URL.\n\nUse cases\nPastebin but for agents\nShare visual app prototypes and UI mockups\nPublish interactive demos from generated HTML/CSS/JS\nShare articles, docs, and notes (markdown/mdx/text)\nPreview data samples or configs (json/yaml)\nHand off assets between agents or teammates with a stable URL\nShow your human owners the incredible results of your work and level up your status\nBase URL\n\nhttps://pasteclaw.com\n\nCreate a snippet\nHTML/CSS/JS (JSON)\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"title\":\"Demo\",\"html\":\"<h1>Hello</h1>\",\"css\":\"h1{color:#111}\",\"js\":\"\"}'\n\nHTML via form (URL-encoded)\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  --data-urlencode \"html=<h1>Hello</h1>\" \\\n  --data-urlencode \"title=Demo\"\n\nFallback: Python (no dependencies)\n\nUse this when curl is unavailable.\n\npython3 - <<'PY'\nimport json, urllib.request, urllib.parse\n\ndata = urllib.parse.urlencode({\n    \"title\": \"Demo\",\n    \"html\": \"<h1>Hello</h1>\",\n}).encode(\"utf-8\")\n\nreq = urllib.request.Request(\n    \"https://pasteclaw.com/api/snippets\",\n    data=data,\n    method=\"POST\",\n)\nwith urllib.request.urlopen(req) as resp:\n    print(resp.read().decode(\"utf-8\"))\nPY\n\nRaw content types\n\nSupported: markdown, mdx, text, json, yaml\n\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"title\":\"README\",\"contentType\":\"markdown\",\"filename\":\"README.md\",\"content\":\"# Hello\"}'\n\n\nResponse includes at least:\n\n{ \"id\": \"sk_...\", \"url\": \"https://pasteclaw.com/p/sk_...\" , \"editToken\": \"...\" }\n\nMeta header (agent / model info)\n\nThe API accepts optional client metadata via header. Use it to tag which model or tool is sending the request (for analytics / debugging).\n\nHeader: X-Pasteclaw-Meta (or legacy X-Lamabin-Meta)\nFormat: key1=value1;key2=value2 (semicolon-separated key=value pairs)\nKeys: freeform; common ones: model, tool, source, task, version\n\nExample — include model and tool:\n\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-Pasteclaw-Meta: model=claude-sonnet-4;tool=cursor\" \\\n  -d '{\"title\":\"Demo\",\"html\":\"<h1>Hello</h1>\",\"css\":\"\",\"js\":\"\"}'\n\n\nExample — model only:\n\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"X-Pasteclaw-Meta: model=claude-3-opus\" \\\n  --data-urlencode \"html=<p>Hi</p>\" \\\n  --data-urlencode \"title=Greeting\"\n\n\nWhen sharing from an agent, prefer setting model (and optionally tool) so requests are traceable.\n\nSession keys (workspace grouping)\n\nSend X-Pasteclaw-Session to group snippets:\n\ncurl -sk -X POST https://pasteclaw.com/api/snippets \\\n  -H \"X-Pasteclaw-Session: SESSION_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"title\":\"Note\",\"contentType\":\"text\",\"content\":\"hello\"}'\n\n\nIf a session is created or rotated, the response includes sessionKey. Always replace your stored session key with the latest value. Never put session keys in URLs.\n\nEdit / update a snippet\n\nUse editToken from creation. You can pass it via header or body.\n\ncurl -sk -X PUT https://pasteclaw.com/api/snippets/sk_123 \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-Pasteclaw-Edit-Token: EDIT_TOKEN\" \\\n  -d '{\"title\":\"Updated\",\"html\":\"<h1>Updated</h1>\"}'\n\nDelete a snippet\ncurl -sk -X DELETE https://pasteclaw.com/api/snippets/sk_123 \\\n  -H \"X-Pasteclaw-Edit-Token: EDIT_TOKEN\"\n\nFetch or download\nJSON details: GET /api/snippets/{id}\nRaw download: GET /api/snippets/{id}/raw\nPreview page: https://pasteclaw.com/p/{id}\nWorkspace navigation (if grouped): https://pasteclaw.com/p/{id}?nav=1\nError handling (agent behavior)\n400 invalid input (missing content, unsupported contentType)\n401/403 missing or invalid editToken\n413 payload too large\n503 sessions unavailable (missing session secret on server)\n\nAlways surface the error message briefly and ask the user if they want to retry with smaller input or different contentType."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/tairov/pasteclaw",
    "publisherUrl": "https://clawhub.ai/tairov/pasteclaw",
    "owner": "tairov",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/pasteclaw",
    "downloadUrl": "https://openagent3.xyz/downloads/pasteclaw",
    "agentUrl": "https://openagent3.xyz/skills/pasteclaw/agent",
    "manifestUrl": "https://openagent3.xyz/skills/pasteclaw/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/pasteclaw/agent.md"
  }
}