{
  "schemaVersion": "1.0",
  "item": {
    "slug": "fabric-api",
    "name": "Fabric.co API skill",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tristanmanchester/fabric-api",
    "canonicalUrl": "https://clawhub.ai/tristanmanchester/fabric-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/fabric-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=fabric-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "fabric-api.yaml",
      "SKILL.md",
      "scripts/fabric.mjs",
      "scripts/fabric.py",
      "references/REFERENCE.md",
      "references/TROUBLESHOOTING.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/fabric-api"
    },
    "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/fabric-api",
    "agentPageUrl": "https://openagent3.xyz/skills/fabric-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/fabric-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/fabric-api/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": "Fabric API (HTTP via Node/Python)",
        "body": "Use this skill when you need to read or write content in a user's Fabric workspace using the Fabric HTTP API (https://api.fabric.so).\n\nThis version avoids bash-only wrapper scripts. It ships cross-platform helpers:\n\nNode: {baseDir}/scripts/fabric.mjs (recommended)\nPython: {baseDir}/scripts/fabric.py"
      },
      {
        "title": "Critical gotchas (read first)",
        "body": "There is no POST /v2/notes endpoint in the bundled OpenAPI spec. To create a “note”, use POST /v2/notepads.\nMost create endpoints require parentId:\n\nA folder UUID or one of: @alias::inbox, @alias::bin\n\n\nNotepad creation requires:\n\nparentId\nand either text (markdown string) or ydoc (advanced/structured)\n\n\ntags must be an array of objects, each item either:\n\n{ \"name\": \"tag name\" } or { \"id\": \"<uuid>\" }\nNever strings, never nested arrays.\n\n\nField name gotcha: the API schema uses name (not title). If the user says “title”, map it to name in requests.\n\nWhen the user doesn’t specify a destination folder, default to:\n\nparentId: \"@alias::inbox\""
      },
      {
        "title": "Setup (OpenClaw / Clawdbot)",
        "body": "This skill expects the Fabric API key in:\n\nFABRIC_API_KEY\n\nOpenClaw config example (~/.openclaw/openclaw.json):\n\n{\n  skills: {\n    entries: {\n      \"fabric-api\": {\n        enabled: true,\n        apiKey: \"YOUR_FABRIC_API_KEY\"\n      }\n    }\n  }\n}\n\nNotes:\n\napiKey is a convenience for skills that declare primaryEnv; it injects FABRIC_API_KEY for the duration of an agent run.\nDon’t paste the API key into prompts, client-side code, or logs."
      },
      {
        "title": "HTTP basics",
        "body": "Base URL: https://api.fabric.so (override with FABRIC_BASE if needed)\nAuth header: X-Api-Key: $FABRIC_API_KEY\nJSON header (for JSON bodies): Content-Type: application/json"
      },
      {
        "title": "Node helper (recommended)",
        "body": "node {baseDir}/scripts/fabric.mjs GET /v2/user/me\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/notepads --json '{\"name\":\"Test note\",\"text\":\"Hello\",\"parentId\":\"@alias::inbox\"}'"
      },
      {
        "title": "Python helper",
        "body": "python3 {baseDir}/scripts/fabric.py GET /v2/user/me\n\npython3 {baseDir}/scripts/fabric.py POST /v2/notepads --json '{\"name\":\"Test note\",\"text\":\"Hello\",\"parentId\":\"@alias::inbox\"}'\n\nNotes:\n\nBoth helpers print the response body on success.\nOn HTTP errors (4xx/5xx), they print HTTP <code> <reason> to stderr and still print the response body, then exit non‑zero (similar to curl --fail-with-body).\nIf you pass an absolute URL (https://...), the helpers do not attach X-Api-Key unless you explicitly pass --with-key."
      },
      {
        "title": "1) Create a notepad (note)",
        "body": "Endpoint: POST /v2/notepads\n\nRules:\n\nMap user “title” → name\nUse text for markdown content\nAlways include parentId\nIf you’re debugging 400s, start minimal (required fields only), then add name, then tags.\n\nMinimal create:\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/notepads --json '{\"parentId\":\"@alias::inbox\",\"text\":\"Hello\"}'\n\nCreate with a name:\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/notepads --json '{\"name\":\"Calendar Test Note\",\"text\":\"Created via OpenClaw\",\"parentId\":\"@alias::inbox\"}'\n\nCreate with tags (correct shape):\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/notepads --json '{\"name\":\"Ideas\",\"text\":\"# Ideas\\\\n\\\\n- First\\\\n- Second\\\\n\",\"parentId\":\"@alias::inbox\",\"tags\":[{\"name\":\"ideas\"},{\"name\":\"draft\"}]}'\n\nIf you keep seeing tag validation errors, temporarily omit tags and create the notepad first."
      },
      {
        "title": "2) Create a folder",
        "body": "Endpoint: POST /v2/folders\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/folders --json '{\"name\":\"My new folder\",\"parentId\":\"@alias::inbox\",\"description\":null}'"
      },
      {
        "title": "3) Create a bookmark",
        "body": "Endpoint: POST /v2/bookmarks\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/bookmarks --json '{\"url\":\"https://example.com\",\"parentId\":\"@alias::inbox\",\"name\":\"Example\",\"tags\":[{\"name\":\"reading\"}]}'"
      },
      {
        "title": "4) Browse resources (list children of a folder)",
        "body": "Endpoint: POST /v2/resources/filter\n\nImportant:\n\nThis endpoint’s parentId expects a UUID (not an alias).\nIf you only have an alias, resolve it by listing resource roots and picking the inbox/bin folder ID.\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/resources/filter --json '{\"parentId\":\"PARENT_UUID_HERE\",\"limit\":50,\"order\":{\"property\":\"modifiedAt\",\"direction\":\"DESC\"}}'"
      },
      {
        "title": "5) Search",
        "body": "Endpoint: POST /v2/search\n\nUse search when the user gives a fuzzy description (“the note about…”).\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/search --json '{\"queries\":[{\"mode\":\"text\",\"text\":\"meeting notes\",\"filters\":{\"kinds\":[\"notepad\"]}}],\"pagination\":{\"page\":1,\"pageSize\":20},\"sort\":{\"field\":\"modifiedAt\",\"order\":\"desc\"}}'"
      },
      {
        "title": "Error handling + retries (practical guidance)",
        "body": "400 Bad Request: schema validation. Re-check required fields, and that tags is [{name}|{id}] not nested.\n401/403: auth/subscription/permission. Stop and report the error details; don’t brute-force.\n404: wrong endpoint, wrong ID, or no access.\n429: rate limiting. Back off (sleep + jitter) and retry reads. Avoid blind retries on create (you may create duplicates).\n5xx: transient; retry with backoff."
      },
      {
        "title": "Reference files",
        "body": "OpenAPI spec (source of truth): {baseDir}/fabric-api.yaml\nExtra schema notes: {baseDir}/references/REFERENCE.md\nDebug playbook: {baseDir}/references/TROUBLESHOOTING.md"
      }
    ],
    "body": "Fabric API (HTTP via Node/Python)\n\nUse this skill when you need to read or write content in a user's Fabric workspace using the Fabric HTTP API (https://api.fabric.so).\n\nThis version avoids bash-only wrapper scripts. It ships cross-platform helpers:\n\nNode: {baseDir}/scripts/fabric.mjs (recommended)\nPython: {baseDir}/scripts/fabric.py\nCritical gotchas (read first)\nThere is no POST /v2/notes endpoint in the bundled OpenAPI spec. To create a “note”, use POST /v2/notepads.\nMost create endpoints require parentId:\nA folder UUID or one of: @alias::inbox, @alias::bin\nNotepad creation requires:\nparentId\nand either text (markdown string) or ydoc (advanced/structured)\ntags must be an array of objects, each item either:\n{ \"name\": \"tag name\" } or { \"id\": \"<uuid>\" }\nNever strings, never nested arrays.\nField name gotcha: the API schema uses name (not title). If the user says “title”, map it to name in requests.\n\nWhen the user doesn’t specify a destination folder, default to:\n\nparentId: \"@alias::inbox\"\nSetup (OpenClaw / Clawdbot)\n\nThis skill expects the Fabric API key in:\n\nFABRIC_API_KEY\n\nOpenClaw config example (~/.openclaw/openclaw.json):\n\n{\n  skills: {\n    entries: {\n      \"fabric-api\": {\n        enabled: true,\n        apiKey: \"YOUR_FABRIC_API_KEY\"\n      }\n    }\n  }\n}\n\n\nNotes:\n\napiKey is a convenience for skills that declare primaryEnv; it injects FABRIC_API_KEY for the duration of an agent run.\nDon’t paste the API key into prompts, client-side code, or logs.\nHTTP basics\nBase URL: https://api.fabric.so (override with FABRIC_BASE if needed)\nAuth header: X-Api-Key: $FABRIC_API_KEY\nJSON header (for JSON bodies): Content-Type: application/json\nConvenience scripts (cross-platform)\nNode helper (recommended)\nnode {baseDir}/scripts/fabric.mjs GET /v2/user/me\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/notepads --json '{\"name\":\"Test note\",\"text\":\"Hello\",\"parentId\":\"@alias::inbox\"}'\n\nPython helper\npython3 {baseDir}/scripts/fabric.py GET /v2/user/me\n\npython3 {baseDir}/scripts/fabric.py POST /v2/notepads --json '{\"name\":\"Test note\",\"text\":\"Hello\",\"parentId\":\"@alias::inbox\"}'\n\n\nNotes:\n\nBoth helpers print the response body on success.\nOn HTTP errors (4xx/5xx), they print HTTP <code> <reason> to stderr and still print the response body, then exit non‑zero (similar to curl --fail-with-body).\nIf you pass an absolute URL (https://...), the helpers do not attach X-Api-Key unless you explicitly pass --with-key.\nCore workflows\n1) Create a notepad (note)\n\nEndpoint: POST /v2/notepads\n\nRules:\n\nMap user “title” → name\nUse text for markdown content\nAlways include parentId\nIf you’re debugging 400s, start minimal (required fields only), then add name, then tags.\n\nMinimal create:\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/notepads --json '{\"parentId\":\"@alias::inbox\",\"text\":\"Hello\"}'\n\n\nCreate with a name:\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/notepads --json '{\"name\":\"Calendar Test Note\",\"text\":\"Created via OpenClaw\",\"parentId\":\"@alias::inbox\"}'\n\n\nCreate with tags (correct shape):\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/notepads --json '{\"name\":\"Ideas\",\"text\":\"# Ideas\\\\n\\\\n- First\\\\n- Second\\\\n\",\"parentId\":\"@alias::inbox\",\"tags\":[{\"name\":\"ideas\"},{\"name\":\"draft\"}]}'\n\n\nIf you keep seeing tag validation errors, temporarily omit tags and create the notepad first.\n\n2) Create a folder\n\nEndpoint: POST /v2/folders\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/folders --json '{\"name\":\"My new folder\",\"parentId\":\"@alias::inbox\",\"description\":null}'\n\n3) Create a bookmark\n\nEndpoint: POST /v2/bookmarks\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/bookmarks --json '{\"url\":\"https://example.com\",\"parentId\":\"@alias::inbox\",\"name\":\"Example\",\"tags\":[{\"name\":\"reading\"}]}'\n\n4) Browse resources (list children of a folder)\n\nEndpoint: POST /v2/resources/filter\n\nImportant:\n\nThis endpoint’s parentId expects a UUID (not an alias).\nIf you only have an alias, resolve it by listing resource roots and picking the inbox/bin folder ID.\nnode {baseDir}/scripts/fabric.mjs POST /v2/resources/filter --json '{\"parentId\":\"PARENT_UUID_HERE\",\"limit\":50,\"order\":{\"property\":\"modifiedAt\",\"direction\":\"DESC\"}}'\n\n5) Search\n\nEndpoint: POST /v2/search\n\nUse search when the user gives a fuzzy description (“the note about…”).\n\nnode {baseDir}/scripts/fabric.mjs POST /v2/search --json '{\"queries\":[{\"mode\":\"text\",\"text\":\"meeting notes\",\"filters\":{\"kinds\":[\"notepad\"]}}],\"pagination\":{\"page\":1,\"pageSize\":20},\"sort\":{\"field\":\"modifiedAt\",\"order\":\"desc\"}}'\n\nError handling + retries (practical guidance)\n400 Bad Request: schema validation. Re-check required fields, and that tags is [{name}|{id}] not nested.\n401/403: auth/subscription/permission. Stop and report the error details; don’t brute-force.\n404: wrong endpoint, wrong ID, or no access.\n429: rate limiting. Back off (sleep + jitter) and retry reads. Avoid blind retries on create (you may create duplicates).\n5xx: transient; retry with backoff.\nReference files\nOpenAPI spec (source of truth): {baseDir}/fabric-api.yaml\nExtra schema notes: {baseDir}/references/REFERENCE.md\nDebug playbook: {baseDir}/references/TROUBLESHOOTING.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/tristanmanchester/fabric-api",
    "publisherUrl": "https://clawhub.ai/tristanmanchester/fabric-api",
    "owner": "tristanmanchester",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/fabric-api",
    "downloadUrl": "https://openagent3.xyz/downloads/fabric-api",
    "agentUrl": "https://openagent3.xyz/skills/fabric-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/fabric-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/fabric-api/agent.md"
  }
}