← 返回 Skills 市场
jack-xun

Feishu Sheet Reader

作者 Jack-xun · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
115
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-sheet-reader
功能描述
Extract and return data or metadata from Feishu Sheets by parsing sheet links, reading specific ranges, entire sheets, or listing sheet tabs.
使用说明 (SKILL.md)

Feishu Sheet Reader

Read data from Feishu Sheets (电子表格) via the Feishu API.

URL Format

Feishu sheet URLs look like:

https://my.feishu.cn/sheets/GHOustTi8h4sVPtCFdxcoznknve?sheet=062ee8
  • GHOustTi8h4sVPtCFdxcoznknve = spreadsheet token (first path segment after /sheets/)
  • 062ee8 = sheet ID (query param sheet=, the tab inside the spreadsheet)

Script Usage

python3 scripts/read_feishu_sheet.py \x3Cspreadsheet_token> [sheet_id] [range]

Examples:

# Read entire first sheet
python3 scripts/read_feishu_sheet.py GHOustTi8h4sVPtCFdxcoznknve

# Read specific sheet by ID
python3 scripts/read_feishu_sheet.py GHOustTi8h4sVPtCFdxcoznknve 062ee8

# Read specific range (e.g., A1:D10)
python3 scripts/read_feishu_sheet.py GHOustTi8h4sVPtCFdxcoznknve 062ee8 A1:D10

Output is tab-separated, suitable for pasting into analysis or reformatting.

Workflow

  1. Parse spreadsheet token and sheet ID from the URL
  2. Get Feishu app credentials from gateway config via openclaw config get
  3. Obtain tenant access token via Feishu Auth API
  4. Call Sheets API: GET /open-apis/sheets/v2/spreadsheets/{token}/values/{range}
  5. Format and return the data

Sheet ID Detection

If sheet_id is omitted, the script queries /sheets/v2/spreadsheets/{token}/sheets/query to list all sheets and uses the first one.

API Reference

  • Auth: POST https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal
  • Sheet values: GET https://open.feishu.cn/open-apis/sheets/v2/spreadsheets/{spreadsheetToken}/values/{range}
  • Sheet meta: GET https://open.feishu.cn/open-apis/sheets/v2/spreadsheets/{spreadsheetToken}/sheets/query
安全使用建议
This skill appears to do what it says (call Feishu APIs and return sheet data) but has a few inconsistencies you should consider before installing: (1) it requires Feishu app credentials, but the registry lists none — the script looks for them in ~/.openclaw/openclaw.json or the FEISHU_APP_ID / FEISHU_APP_SECRET environment variables; (2) it reads the agent's config file directly, which could expose unrelated credentials stored there; (3) SKILL.md suggests using `openclaw config get` but the code bypasses that and reads the file itself. Recommended steps: inspect ~/.openclaw/openclaw.json to see what it contains; prefer to provide FEISHU_APP_ID and FEISHU_APP_SECRET as environment variables rather than exposing the whole agent config; ask the author to update SKILL.md and the registry metadata to declare required env vars and to either use the documented `openclaw config get` workflow or justify direct config-file access; if you must run it, do so in an account/environment without other sensitive credentials or in a sandbox. If the author confirms the config file only contains scoped Feishu app credentials (and updates the docs), that reduces concern.
功能分析
Type: OpenClaw Skill Name: feishu-sheet-reader Version: 1.0.0 The skill is a utility designed to read data from Feishu Sheets using the official Feishu API. It retrieves necessary credentials from the local OpenClaw configuration file (~/.openclaw/openclaw.json) and performs authenticated requests via curl. The script logic in scripts/read_feishu_sheet.py is transparent, lacks obfuscation, and strictly follows the workflow described in SKILL.md without any indicators of malicious intent or data exfiltration to unauthorized endpoints.
能力标签
requires-oauth-token
能力评估
Purpose & Capability
The skill's purpose (calling Feishu APIs to read sheets) aligns with the included script which requests Feishu tenant tokens and sheet data. However the SKILL.md says credentials are obtained via `openclaw config get` while the script directly reads ~/.openclaw/openclaw.json (and falls back to FEISHU_APP_ID/FEISHU_APP_SECRET env vars) — a mismatch in how credentials are retrieved.
Instruction Scope
SKILL.md describes parsing sheet URLs and calling Feishu APIs (expected). The shipped script performs those actions, but it also directly reads the agent's config file (~/.openclaw/openclaw.json). Reading that file can expose credentials or configuration unrelated to this skill (it looks up the 'channels.feishu.accounts' tree but opens the entire config). The SKILL.md's instruction to use `openclaw config get` is not reflected in the code.
Install Mechanism
Instruction-only with no install spec and no external downloads; the script runs local curl subprocesses. No installer or archive download risk was detected.
Credentials
Registry metadata declares no required env vars/credentials, but the script needs Feishu app credentials either from ~/.openclaw/openclaw.json or from FEISHU_APP_ID / FEISHU_APP_SECRET env vars. The skill should explicitly declare these requirements. Reading the agent config file without declaring this expands the data surface (may expose other channel credentials).
Persistence & Privilege
The skill does not request always:true and does not modify system configuration, which is good. However it reads the global agent config file (~/.openclaw/openclaw.json) at runtime — this read is a privileged access to potentially sensitive config belonging to the agent and other skills and should be explicitly justified and documented.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feishu-sheet-reader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feishu-sheet-reader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
feishu-sheet-reader 1.0.0 - Initial release. - Enables reading data and metadata from Feishu Sheets via shared sheet URLs. - Supports reading specific ranges, entire sheets, and listing sheet metadata. - Activation via Feishu sheet links or sheet-related user requests. - Provides a CLI script for fetching and outputting data in a tab-separated format. - Automatically detects sheet ID if not specified.
元数据
Slug feishu-sheet-reader
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Feishu Sheet Reader 是什么?

Extract and return data or metadata from Feishu Sheets by parsing sheet links, reading specific ranges, entire sheets, or listing sheet tabs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 115 次。

如何安装 Feishu Sheet Reader?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-sheet-reader」即可一键安装,无需额外配置。

Feishu Sheet Reader 是免费的吗?

是的,Feishu Sheet Reader 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Feishu Sheet Reader 支持哪些平台?

Feishu Sheet Reader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Feishu Sheet Reader?

由 Jack-xun(@jack-xun)开发并维护,当前版本 v1.0.0。

💬 留言讨论