{
  "schemaVersion": "1.0",
  "item": {
    "slug": "feishu-doc-editor",
    "name": "feishu-doc-editor",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/zhuligu/feishu-doc-editor",
    "canonicalUrl": "https://clawhub.ai/zhuligu/feishu-doc-editor",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/feishu-doc-editor",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-doc-editor",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/api-guide.md",
      "references/common-errors.md",
      "references/permission-setup.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": "feishu-doc-editor",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T01:06:10.949Z",
      "expiresAt": "2026-05-19T01:06:10.949Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-doc-editor",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-doc-editor",
        "contentDisposition": "attachment; filename=\"feishu-doc-editor-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "feishu-doc-editor"
      },
      "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/feishu-doc-editor"
    },
    "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/feishu-doc-editor",
    "agentPageUrl": "https://openagent3.xyz/skills/feishu-doc-editor/agent",
    "manifestUrl": "https://openagent3.xyz/skills/feishu-doc-editor/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/feishu-doc-editor/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": "Feishu Document Editor Skill",
        "body": "This skill provides comprehensive guidance for creating and editing Feishu documents using the Feishu OpenAPI."
      },
      {
        "title": "1. App Creation and Configuration",
        "body": "Create enterprise self-built app: Login to Feishu Open Platform, create an app and add \"Bot\" capability.\n\nApply for API permissions: In \"Permission Management\", apply for the following permissions:\n\nDocument editing: docx:document:write_only\nDocument viewing: docx:document:readonly\n\nPublish app: Submit version and publish, ensuring the app coverage includes target users/departments."
      },
      {
        "title": "2. Get Access Token",
        "body": "Call the self-built app get tenant_access_token interface:\n\ncurl -X POST https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"app_id\": \"your_app_id\", \"app_secret\": \"your_app_secret\"}'\n\nResponse example:\n\n{\n  \"code\": 0,\n  \"tenant_access_token\": \"t-xxx\",\n  \"expire\": 7200\n}"
      },
      {
        "title": "Extract Document ID",
        "body": "Get document_id from document URL:\n\nExample URL: https://bigdatacenter.feishu.cn/docx/HpK2dtGu9omhMAxV12zcB6i7ngd\n\ndocument_id = HpK2dtGu9omhMAxV12zcB6i7ngd"
      },
      {
        "title": "Grant App Document Permission",
        "body": "Manually add collaborator:\n\nOpen document in Feishu client → Click \"...\" in top right → \"More\" → \"Add document app\"\nSearch and add your app, grant \"Can edit\" permission."
      },
      {
        "title": "Write Text Content",
        "body": "Interface: Create Block\n\nPath parameters: document_id = document ID, block_id = document ID (root node is the document itself)\n\n\nRequest headers:\nAuthorization: Bearer {tenant_access_token}\nContent-Type: application/json\n\n\n\nRequest body example (write \"hello\"):\n{\n  \"index\": -1,\n  \"children\": [\n    {\n      \"block_type\": 2,\n      \"text\": {\n        \"elements\": [\n          {\n            \"text_run\": {\n              \"content\": \"hello\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}"
      },
      {
        "title": "Read Document Content",
        "body": "Interface: Get Document Plain Text\n\ncurl -X GET \"https://open.feishu.cn/open-apis/docx/v1/documents/{document_id}/plaintext\" \\\n  -H \"Authorization: Bearer {tenant_access_token}\"\n\nResponse example:\n\n{\n  \"code\": 0,\n  \"data\": {\n    \"content\": \"Document text content here\"\n  }\n}"
      },
      {
        "title": "1. Permission Error (403 Forbidden)",
        "body": "Diagnosis: App not added as document collaborator, or tenant_access_token is invalid.\nSolution: Re-add app as collaborator, or re-get tenant_access_token."
      },
      {
        "title": "2. Missing Access Token (99991661)",
        "body": "Diagnosis: Request header does not carry Authorization: Bearer {token}.\nSolution: Ensure tenant_access_token is correctly added to request header."
      },
      {
        "title": "3. Document Not Found (404 Not Found)",
        "body": "Diagnosis: document_id is incorrect or document has been deleted.\nSolution: Re-extract document_id from document URL."
      },
      {
        "title": "Reference Documentation",
        "body": "Create Block Interface\nGet Document Plain Text Interface\nPermission Configuration Guide\n\nThrough the above steps, you can achieve editing Feishu documents via API, supporting add/delete/modify/query operations for multiple content types including text, tables, and images."
      }
    ],
    "body": "Feishu Document Editor Skill\n\nThis skill provides comprehensive guidance for creating and editing Feishu documents using the Feishu OpenAPI.\n\nPrerequisites\n1. App Creation and Configuration\n\nCreate enterprise self-built app: Login to Feishu Open Platform, create an app and add \"Bot\" capability.\n\nApply for API permissions: In \"Permission Management\", apply for the following permissions:\n\nDocument editing: docx:document:write_only\nDocument viewing: docx:document:readonly\n\nPublish app: Submit version and publish, ensuring the app coverage includes target users/departments.\n\n2. Get Access Token\n\nCall the self-built app get tenant_access_token interface:\n\ncurl -X POST https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"app_id\": \"your_app_id\", \"app_secret\": \"your_app_secret\"}'\n\n\nResponse example:\n\n{\n  \"code\": 0,\n  \"tenant_access_token\": \"t-xxx\",\n  \"expire\": 7200\n}\n\nCore Operations\nExtract Document ID\n\nGet document_id from document URL:\n\nExample URL: https://bigdatacenter.feishu.cn/docx/HpK2dtGu9omhMAxV12zcB6i7ngd\n\ndocument_id = HpK2dtGu9omhMAxV12zcB6i7ngd\n\nGrant App Document Permission\n\nManually add collaborator:\n\nOpen document in Feishu client → Click \"...\" in top right → \"More\" → \"Add document app\"\nSearch and add your app, grant \"Can edit\" permission.\nWrite Text Content\n\nInterface: Create Block\n\nPath parameters: document_id = document ID, block_id = document ID (root node is the document itself)\n\nRequest headers:\n\nAuthorization: Bearer {tenant_access_token}\nContent-Type: application/json\n\n\nRequest body example (write \"hello\"):\n\n{\n  \"index\": -1,\n  \"children\": [\n    {\n      \"block_type\": 2,\n      \"text\": {\n        \"elements\": [\n          {\n            \"text_run\": {\n              \"content\": \"hello\"\n            }\n          }\n        ]\n      }\n    }\n  ]\n}\n\nRead Document Content\n\nInterface: Get Document Plain Text\n\ncurl -X GET \"https://open.feishu.cn/open-apis/docx/v1/documents/{document_id}/plaintext\" \\\n  -H \"Authorization: Bearer {tenant_access_token}\"\n\n\nResponse example:\n\n{\n  \"code\": 0,\n  \"data\": {\n    \"content\": \"Document text content here\"\n  }\n}\n\nCommon Issues\n1. Permission Error (403 Forbidden)\nDiagnosis: App not added as document collaborator, or tenant_access_token is invalid.\nSolution: Re-add app as collaborator, or re-get tenant_access_token.\n2. Missing Access Token (99991661)\nDiagnosis: Request header does not carry Authorization: Bearer {token}.\nSolution: Ensure tenant_access_token is correctly added to request header.\n3. Document Not Found (404 Not Found)\nDiagnosis: document_id is incorrect or document has been deleted.\nSolution: Re-extract document_id from document URL.\nReference Documentation\nCreate Block Interface\nGet Document Plain Text Interface\nPermission Configuration Guide\n\nThrough the above steps, you can achieve editing Feishu documents via API, supporting add/delete/modify/query operations for multiple content types including text, tables, and images."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/zhuligu/feishu-doc-editor",
    "publisherUrl": "https://clawhub.ai/zhuligu/feishu-doc-editor",
    "owner": "zhuligu",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/feishu-doc-editor",
    "downloadUrl": "https://openagent3.xyz/downloads/feishu-doc-editor",
    "agentUrl": "https://openagent3.xyz/skills/feishu-doc-editor/agent",
    "manifestUrl": "https://openagent3.xyz/skills/feishu-doc-editor/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/feishu-doc-editor/agent.md"
  }
}