Feishu Spreadsheet Data Analysis: Exporting Feishu Tables and Using SQL & Reporting with DuckDB in Agent

Preface

When business data resides in Feishu (Lark) Multi-Dimensional Tables (Bitable) or Spreadsheets, a common practice is to manually export CSVs and then perform statistics using local Excel or separate Python scripts. When dealing with numerous tables, complex fields, or requiring repeatable analysis workflows, export formats, permissions, and script maintenance can slow down the process. This article introduces the community Skill on SkillHub: “Feishu Table Data Analysis” (Coordinate @user_af28adda/feishu-table-analytics), which consolidates the workflow of “Fetching data from Feishu → SQL Analysis → Optional Visualization Report” into an Agent-executable Skill process.

What is this

“Feishu Table Data Analysis” is an Agent Skill designed for data-analysis scenarios. The current version is 1.0.0, the source is marked as community, and it is maintained by the publisher user_af28adda.

One-sentence positioning: A Feishu table export and data analysis tool. It supports exporting data from Feishu Bitables/Spreadsheets, executing SQL queries and statistical analysis based on DuckDB, and optionally generating visualization HTML reports based on Chart.js. The applicable scenarios listed in the official description include: backing up Feishu data, analyzing table data, and generating business insights or visualization reports.

On SkillHub, this Skill is categorized under data-analysis, with a rating of 100000 (platform display value), and 1380 downloads as of the visible page information. The tag requires_api_key=true indicates that API key credentials must be configured before use.

Core Features

The following capabilities are derived from the SkillHub brief and page description; interface details not present in official materials are not expanded upon here.

  1. Feishu Data Export: Supports fetching/exporting data from Feishu Bitables and Spreadsheets, facilitating backup or reuse in local analysis pipelines.
  2. DuckDB Analysis: Incorporates exported data into DuckDB to perform queries and statistical analysis via SQL, suitable for scenarios where users are accustomed to expressing metrics and grouping logic using SQL.
  3. Optional HTML Report: Can generate visualization HTML reports with Chart.js charts on-demand, used for quickly viewing trends or distribution-type results.

Installation and Activation

The installation method recommended by SkillHub is to let the Agent operate according to the official installation documentation and specify the Skill coordinate. The key points of the prompt provided on the page are as follows: Install @user_af28adda/feishu-table-analytics according to SkillHub Installation & Priority Source Configuration.

If the SkillHub CLI is not installed on your local machine, you can first check the version:

command -v skillhub && skillhub --version

If not installed, you can perform a full installation according to the installation documentation (the example is the recommended command from the official documentation):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

When installing the Skill, it is mandatory to use --dir to point to the skills directory recognized by the current Agent; installing to the default ./skills/ might not be loaded by the Agent. Common paths listed in the official documentation include:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Example command in a Cursor environment (please verify the directory according to your actual environment):

skillhub install @user_af28adda/feishu-table-analytics --dir ~/.cursor/skills/

After installation is complete, restart or refresh the Skill list according to the requirements of each Agent. Due to the tag requires_api_key=true, Feishu-related API keys must be configured before activation according to the instructions in the SKILL.md within the Skill package; specific environment variable names and configuration file paths should be based on the Skill documentation after installation. This article does not fabricate field names.

Typical Usage

The official page does not provide step-by-step copy-paste dialogue examples. Below is a workflow description based on reproducible intents summarized from the brief. Actual steps are executed by the Agent after reading the Skill.

  1. In the dialogue, specify the target table (Bitable or Spreadsheet) and analysis requirements, such as backup, aggregation by dimension, or generating reports with charts.
  2. The Agent completes Feishu-side authentication and data export according to the Skill’s guidance (depending on the API keys you have configured).
  3. Write or generate SQL on DuckDB to complete queries and statistics.
  4. If external display is required, choose to generate a Chart.js visualization HTML report and save or open it.

When initiating installation to an Agent, you can directly use the phrasing from the SkillHub page:

Please install `@user_af28adda/feishu-table-analytics` according to https://skillhub.cn/install/skillhub.md.

Applicable Scenarios & Notes

Who is it for

  • Users already utilizing clients that support Skills (such as Cursor, Claude Code, Codex) and wish to incorporate Feishu table data into their Agent workflows.
  • Users who prefer using SQL (DuckDB) for statistics rather than manually exporting and piecing together formulas every time.
  • Those who occasionally need to produce HTML visualization summaries without setting up a complete BI system.

Limitations & Notes

  • Community Source: The boundaries of capabilities and maintenance rhythm depend on the publisher; upgrades can be managed via skillhub in the corresponding skills directory.
  • API Keys Required: API keys must be configured correctly; Feishu Open Platform permissions and table access scopes must be enabled by yourself on the Feishu side. The Skill cannot bypass platform authentication.
  • Dependencies: Dependencies such as DuckDB and Chart.js are defined by the Skill package. For the first use, refer to the environment requirements in SKILL.md.
  • Data Security: When exporting sensitive business data locally or into HTML reports, pay attention to file storage locations and sharing scopes.

Conclusion

“Feishu Table Data Analysis” strings together Feishu Bitable/Spreadsheet export, DuckDB SQL analysis, and optional Chart.js HTML reports into a single Agent Skill chain, making it suitable for backup, statistics, and lightweight visualization reporting scenarios. Installation and coordinates are subject to SkillHub:

  • Skill Page: https://www.skillhub.cn/skills/user_af28adda/feishu-table-analytics
  • API Endpoint: https://api.skillhub.cn/user_af28adda/feishu-table-analytics
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye