# Send feishu-user to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "feishu-user",
    "name": "feishu-user",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/HackSing/feishu-user",
    "canonicalUrl": "https://clawhub.ai/HackSing/feishu-user",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/feishu-user",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-user",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/feishu_client.py",
      "scripts/feishu_token.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "feishu-user",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T23:44:25.898Z",
      "expiresAt": "2026-05-08T23:44:25.898Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-user",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-user",
        "contentDisposition": "attachment; filename=\"feishu-user-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "feishu-user"
      },
      "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-user"
    },
    "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."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/feishu-user",
    "downloadUrl": "https://openagent3.xyz/downloads/feishu-user",
    "agentUrl": "https://openagent3.xyz/skills/feishu-user/agent",
    "manifestUrl": "https://openagent3.xyz/skills/feishu-user/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/feishu-user/agent.md"
  }
}
```
## Documentation

### Feishishu document operations using useru User

Fe access token authentication. Call Feishu Open API directly via REST API.

### Install Dependencies

pip install requests

### Quick Start

from feishu_client import FeishuClient

# Initialize client
client = FeishuClient(user_access_token="u-xxx")

### Step 1: Get App Credentials from Feishu Open Platform

Prepare the following:

APP_ID - App ID (from Feishu Open Platform app settings)
APP_SECRET - App Secret (from Feishu Open Platform app settings)
REDIRECT_URI - Authorization callback URL

Enable these permissions:

docx:document - Document operations
drive:drive.search:readonly - Cloud drive search
search:docs:read - Document search

### Step 2: Generate Authorization URL

https://accounts.feishu.cn/open-apis/authen/v1/authorize?client_id={YOUR_APP_ID}&response_type=code&redirect_uri={YOUR_REDIRECT_URI}&scope=docx%3Adocument%20drive%3Adrive.search%3Areadonly%20search%3Adocs%3Aread

### Step 3: Exchange for Token

curl -X POST "https://open.feishu.cn/open-apis/authen/v1/access_token" \\
  -H "Content-Type: application/json" \\
  -d '{
    "grant_type": "authorization_code",
    "code": "{YOUR_CODE}",
    "app_id": "{YOUR_APP_ID}",
    "app_secret": "{YOUR_APP_SECRET}"
  }'

The returned access_token is your user_access_token.

### Usage Examples

from feishu_client import FeishuClient

# Initialize
client = FeishuClient(user_access_token="u-xxx")

# Read document
content = client.read_doc("doc_token")
print(content)

# Create document
new_token = client.create_doc("My New Document")
print(f"New document: {new_token}")

# Write document
client.write_doc("doc_token", "# Title\\n\\nContent")

# Append content
client.append_doc("doc_token", "## New Section\\n\\nMore content")

# List all blocks
blocks = client.list_blocks("doc_token")
for block in blocks:
    print(block)

# Get specific block
block = client.get_block("doc_token", "block_id")

# Update block
client.update_block("doc_token", "block_id", "New content")

# Delete block
client.delete_block("doc_token", "block_id")

### Convenience Functions

Don't want to create a client? Use functions directly:

from feishu_client import read_document, create_document, write_document, append_document

# Read
content = read_document("doc_token", user_access_token="u-xxx")

# Create
new_token = create_document("Title", user_access_token="u-xxx")

# Write
write_document("doc_token", "# Content", user_access_token="u-xxx")

# Append
append_document("doc_token", "## More", user_access_token="u-xxx")

### FeishuClient

MethodDescriptionread_doc(doc_token)Read document contentcreate_doc(title, folder_token)Create new documentwrite_doc(doc_token, content)Write document (overwrite)append_doc(doc_token, content)Append content to endlist_blocks(doc_token)List all blocksget_block(doc_token, block_id)Get specific blockupdate_block(doc_token, block_id, content)Update block contentdelete_block(doc_token, block_id)Delete block

### Notes

user_access_token has an expiration time, needs periodic refresh
The scope in authorization URL must be enabled in Feishu Open Platform
This skill accesses personal cloud documents using user identity

### Related Links

Feishu Open Platform: https://open.feishu.cn
Document API: https://open.feishu.cn/document/ukTMukTMukTM/uADOwUjLwgDMzCM4ATm

### Token Auto Refresh

Use feishu_token.py script for automatic token refresh.

### Install Dependencies

pip install requests

### First Authorization

# 1. Generate authorization URL
python feishu_token.py --app-id YOUR_APP_ID --app-secret YOUR_SECRET --redirect-uri YOUR_REDIRECT_URI --url

After user authorizes, will callback to YOUR_REDIRECT_URI?code=XXX

# 2. Use authorization code to get token
python feishu_token.py --app-id YOUR_APP_ID --app-secret YOUR_SECRET --code AUTH_CODE

Token is automatically saved to ~/.config/claw-feishu-user/config.json

### Refresh Token

python feishu_token.py --app-id YOUR_APP_ID --app-secret YOUR_SECRET --refresh

### In Code

import json
import os

# Read cached token
config_path = os.path.expanduser("~/.config/claw-feishu-user/config.json")
with open(config_path) as f:
    config = json.load(f)

# Use token
client = FeishuClient(user_access_token=config["access_token"])
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: HackSing
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T23:44:25.898Z
- Expires at: 2026-05-08T23:44:25.898Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/feishu-user)
- [Send to Agent page](https://openagent3.xyz/skills/feishu-user/agent)
- [JSON manifest](https://openagent3.xyz/skills/feishu-user/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/feishu-user/agent.md)
- [Download page](https://openagent3.xyz/downloads/feishu-user)