data-analysis-for-feishu

v1.0.0

๐Ÿ“Š Powerful ECharts-based data visualization skill optimized for Feishu (Lark) ecosystem. Supports 12+ chart types, 6+ data sources (Excel/CSV/Bitable/Sheet/...

โญ 67ยท 171ยท0 currentยท0 all-time
byzane iris zhou@zzzanezhou0829

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zzzanezhou0829/data-analysis-for-feishu.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "data-analysis-for-feishu" (zzzanezhou0829/data-analysis-for-feishu) from ClawHub.
Skill page: https://clawhub.ai/zzzanezhou0829/data-analysis-for-feishu
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install data-analysis-for-feishu

ClawHub CLI

Package manager switcher

npx clawhub@latest install data-analysis-for-feishu
Security Scan
Capability signals
CryptoCan make purchases
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Pending
View report โ†’
OpenClawOpenClaw
Benign
high confidence
โœ“
Purpose & Capability
Name/description (Feishu-oriented ECharts visualizations) align with included files: data parsing, chart JSON generation, headless rendering (pyppeteer) and auto-analysis. Required capabilities (pandas, openpyxl, pyppeteer, optional Feishu JSON inputs) are consistent with the described feature set (Excel/CSV parsing, screenshot rendering, Feishu card JSON).
โ„น
Instruction Scope
SKILL.md and scripts instruct only on parsing local data or user-provided Feishu JSON, generating chart options, and rendering screenshots or card JSON. The runtime does fetch ECharts from a CDN for rendering and the headless browser downloads Chromium on first run โ€” both are justified by the rendering requirements but are external network operations. The test script uses subprocess.run to exercise local commands; its commands are static in the repository. No instructions ask the agent to read unrelated system files, environment secrets, or to transmit data to unknown endpoints.
โ„น
Install Mechanism
There is no formal install spec; the repo contains a requirements.txt listing pandas, openpyxl, requests, and pyppeteer. This is proportionate to the task, but pyppeteer will download a Chromium binary on first use (large download, network access). ECharts is loaded from jsdelivr CDN during rendering (external dependency). These network downloads are expected for local rendering but raise the usual risks of third-party resources (supply-chain/network availability).
โœ“
Credentials
The skill does not request environment variables, API tokens, or config paths. Feishu integration is supported but implemented as accepting Feishu JSON inputs (bitable/sheet data) rather than requiring stored Feishu credentials โ€” so there is no unexpected credential request in the package.
โœ“
Persistence & Privilege
Skill flags are standard (not always: true). The package does not attempt to modify other skills or system-wide configs. It runs as a normal skill with no elevated persistent privileges.
Assessment
This skill appears to do what it claims (parse data, recommend charts, render ECharts to PNG or generate Feishu card JSON). Before installing, consider: 1) Network downloads: the first run will download Chromium (pyppeteer) and the page renderer loads ECharts from jsdelivr โ€” this requires outbound network access and a ~100โ€“200MB download. 2) Sandbox flags: the headless browser is launched with --no-sandbox (common for some containerized environments) โ€” run the skill in a trusted or isolated environment if you are concerned. 3) Dependencies: install requirements in a virtualenv to avoid polluting system Python. 4) Running tests: test.py uses subprocess.run with shell=True to invoke the bundled scripts โ€” avoid modifying those commands with untrusted input. 5) Feishu integration: interactive card mode only emits JSON; the skill does not itself send messages to Feishu or store tokens โ€” you'll need to handle sending and permissions separately. If you need stronger assurance, review the remaining truncated files (sending code, network calls) or run the code in an isolated VM/container first.

Like a lobster shell, security has layers โ€” review code before you run it.

latestvk970qmtr47nwxqksxm3v2zfsjx84h68r
171downloads
67stars
1versions
Updated 2w ago
v1.0.0
MIT-0
<div align="center"> <h1>๐Ÿ“Š Data Analysis for Feishu</h1> <p> <strong>Open-source data visualization skill for OpenClaw, built for Feishu ecosystem</strong> </p> <p> <a href="https://github.com/openclaw/skills"><img src="https://img.shields.io/badge/OpenClaw-Skill-blue.svg" alt="OpenClaw Skill"></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License MIT"></a> <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/Python-3.8+-yellow.svg" alt="Python 3.8+"></a> <img src="https://img.shields.io/badge/Feishu-5.15+-brightgreen.svg" alt="Feishu 5.15+"> </p> <p> <a href="#features">โœจ Features</a> โ€ข <a href="#installation">๐Ÿš€ Installation</a> โ€ข <a href="#quick-start">โšก Quick Start</a> โ€ข <a href="#chart-types">๐Ÿ“Š Chart Types</a> โ€ข <a href="#data-sources">๐Ÿ“ฅ Data Sources</a> โ€ข <a href="#examples">๐Ÿ“– Examples</a> โ€ข <a href="#faq">โ“ FAQ</a> โ€ข <a href="#contributing">๐Ÿค Contributing</a> </p> </div>

โœจ Features

๐Ÿ“Š Rich Chart Support

12+ professional chart types cover 99% of data visualization scenarios:

  • Basic: Line, Area, Bar, Stacked Bar, Pie, Donut, Gauge, Radar
  • Advanced: Scatter (correlation analysis), Funnel (conversion analysis), Waterfall (financial analysis), Dual Axis (multi-metric comparison)
  • Multi-series: All charts support multiple data series comparison
  • Customizable: Support stacked mode, area fill, custom colors, etc.

๐Ÿง  AI-Powered Intelligence

  • Auto Chart Recommendation: Upload data, AI automatically analyzes characteristics and selects the optimal chart type
  • Auto Data Cleaning: Automatically handle null values, outliers, date/percent format conversion
  • Auto Analysis Report: Generate natural language analysis conclusions while generating charts (trends, extremes, proportions, etc.)
  • Auto Title Generation: No need to manually enter titles, automatically generate appropriate titles based on data

๐Ÿ“ฅ Multiple Data Sources

No manual data conversion required, support 6+ common data sources:

  • Local files: Excel (.xlsx/.xls), CSV/TSV
  • Feishu ecosystem: Bitable (multi-dimensional table), Sheet (spreadsheet)
  • Text formats: Markdown tables, raw JSON/2D arrays, pasted table text

๐Ÿ–ผ๏ธ Perfect Feishu Compatibility

  • Ultra HD Output: 2x Retina DPI rendering, 1200x750 default resolution, sharp text and lines
  • Precise Cropping: Automatically capture only the chart area, no extra whitespace
  • Feishu Optimized: Perfect display in Feishu conversations, documents, and wiki pages
  • Dual Mode Support:
    • โœ… Screenshot mode: 100% compatible with all Feishu versions, no permissions required
    • โœ… Interactive card mode: Support hover to view values, toggle series (requires Feishu ECharts component permission)

โšก Excellent Experience

  • Zero Configuration: Works out of the box, dependencies automatically installed on first run
  • Fast Generation: First run ~10s (download browser), subsequent generation only takes 1-3 seconds
  • User-friendly: Clear error prompts, perfect log output, easy to troubleshoot
  • Exportable: Support export analysis conclusions as separate text files, easy to copy and use

๐Ÿš€ Installation

Prerequisites

  • OpenClaw instance (version >= 0.8.0)
  • Python 3.8+
  • Feishu integration enabled (optional, for Feishu data sources)

Install Steps

  1. Download the skill package:

    wget https://github.com/openclaw/skills/releases/download/data-analysis-for-feishu-v1.0.0/data-analysis-for-feishu.skill
    
  2. Install in OpenClaw: Go to OpenClaw Admin โ†’ Skills โ†’ Install โ†’ Upload the .skill file

  3. Done! Dependencies are automatically installed on first use.

Manual Installation (for developers)

cd /path/to/openclaw/skills
git clone https://github.com/openclaw/data-analysis-for-feishu.git
cd data-analysis-for-feishu
pip install -r requirements.txt

โšก Quick Start

1-Minute Test Run

Generate your first chart in 1 minute:

# Go to skill directory
cd skills/data-analysis-for-feishu

# Generate a demo funnel chart
python scripts/main.py \
  --type funnel \
  --title "User Conversion Funnel" \
  --labels "Visit" "Register" "Add to Cart" "Purchase" "Repurchase" \
  --values 10000 4500 2200 1200 500 \
  --output demo_funnel.png

You will get a high-definition funnel chart and automatic analysis report.

Auto Mode (Recommended)

Let AI do all the work, just provide data:

# Auto analyze Excel data, recommend chart type, generate chart + analysis
python scripts/main.py \
  --excel your_data.xlsx \
  --output result.png \
  --analysis-output analysis.txt

๐Ÿ“Š Chart Types

Chart TypeBest ForExample
Line ChartTime series trend analysisDaily sales trends for the past month
Area ChartMulti-series trend comparison2023 vs 2024 monthly sales comparison
Bar ChartCategory comparison/rankingSales ranking by region
Stacked Bar ChartMulti-dimensional proportionProduct category composition in each region
Pie ChartProportion/distributionRevenue composition of each business line
Donut ChartRing-style proportionMarket share of each competitor
Gauge ChartProgress/KPI completionAnnual sales target completion rate
Radar ChartMulti-dimensional comparisonProduct capability assessment
Scatter ChartCorrelation analysisCorrelation between advertising spend and sales
Funnel ChartConversion analysisUser conversion from visit to purchase
Waterfall ChartFinancial change analysisMonthly profit and loss changes
Dual Axis ChartMulti-metric comparisonMonthly sales and growth rate

๐Ÿ“ฅ Data Sources

Data SourceUsage
Excel (.xlsx/.xls)--excel data.xlsx --sheet Sheet1
CSV/TSV--csv data.csv
Feishu Bitable--bitable-records '[{"fields": {...}}]'
Feishu Sheet--sheet-data '[["Header1", "Header2"], ["val1", "val2"]]'
Markdown Table`--markdown-table "
Raw Data--x-axis "Jan" "Feb" --y-axis 100 200

๐Ÿ“– Usage Examples

Example 1: Multi-series Area Chart

python scripts/main.py \
  --type area \
  --title "2023 vs 2024 Sales Trend" \
  --excel sales_comparison.xlsx \
  --x-axis-field "Month" \
  --y-axis-field "2023 Sales,2024 Sales" \
  --series-names "2023,2024" \
  --output sales_trend.png

Example 2: Dual Axis Chart (Sales + Growth Rate)

python scripts/main.py \
  --type dual_axis \
  --title "Monthly Performance" \
  --x-axis "Jan" "Feb" "Mar" "Apr" "May" "Jun" \
  --y1-axis 120 150 135 180 210 240 \
  --y1-name "Sales (k)" \
  --y2-axis 0 25 -10 33.3 16.7 14.3 \
  --y2-name "Growth Rate (%)" \
  --output performance.png

Example 3: Waterfall Chart for Financial Analysis

python scripts/main.py \
  --type waterfall \
  --title "Monthly Profit Breakdown" \
  --x-axis "Initial Revenue" "Cost of Goods" "Operating Expenses" "Tax" "Net Profit" \
  --y-axis 1000 -300 -200 -150 350 \
  --y-name "Amount (k)" \
  --output profit_waterfall.png

Example 4: Generate from Markdown Table

python scripts/main.py \
  --type bar \
  --title "Quarterly Revenue" \
  --markdown-table "| Quarter | Revenue | Profit |
|----|----|----|
| Q1 | 1200 | 240 |
| Q2 | 1500 | 375 |
| Q3 | 1350 | 297 |
| Q4 | 1800 | 540 |" \
  --x-axis-field "Quarter" \
  --y-axis-field "Revenue,Profit" \
  --output quarterly.png

๐Ÿ”ง Configuration

Custom Color Scheme

Edit DEFAULT_COLORS in scripts/generate_echarts_screenshot.py to use your brand colors:

DEFAULT_COLORS = ["#YOUR_COLOR1", "#YOUR_COLOR2", ...]

Custom Default Resolution

Change default width/height in scripts/main.py to adjust output size.

Enable Interactive Card Mode

When you have Feishu ECharts component permission, use:

python scripts/generate_echarts_card.py --type line --title "Demo" --x-axis "A" "B" --y-axis 1 2 --output card.json

Then send the JSON as Feishu card.


โ“ FAQ

Q: Why is the picture blank when I first run it?

A: First run automatically downloads Chromium browser (about 180MB), please wait patiently. Subsequent runs will be very fast.

Q: Can I use this without Feishu?

A: Yes! You can generate charts as local PNG files for any usage scenario, Feishu integration is optional.

Q: How to apply for Feishu ECharts component permission?

A: Go to Feishu Open Platform โ†’ Your App โ†’ Permissions โ†’ Search for "Message Card - Use ECharts Chart Component" โ†’ Apply for permission. It's free and usually approved within 1 working day.

Q: Does it support Chinese data?

A: Perfect support! All components use UTF-8 encoding, Chinese labels, titles, and analysis reports are displayed normally.

Q: Can I add custom chart types?

A: Yes! Just add the chart configuration in scripts/generate_echarts_screenshot.py, following the existing pattern.


๐Ÿค Contributing

Contributions are welcome! You can contribute in the following ways:

  • ๐Ÿ› Report bugs and issues
  • โœจ Propose new feature ideas
  • ๐Ÿ“ Improve documentation
  • ๐Ÿ”ง Add new chart types or data sources
  • ๐ŸŒ Add multi-language support

Development Setup

# Fork and clone the repo
git clone https://github.com/your-username/data-analysis-for-feishu.git
cd data-analysis-for-feishu

# Install dependencies
pip install -r requirements.txt

# Run tests
python scripts/main.py --type funnel --title "Test" --labels "A" "B" "C" --values 100 50 20 --output test.png

Submitting PR

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

Distributed under the MIT License. See LICENSE file for more information.


๐Ÿ™ Acknowledgments


<div align="center"> <strong>If this skill helps you, please give it a โญ on GitHub!</strong> <br> <a href="https://github.com/openclaw/data-analysis-for-feishu/stargazers"><img src="https://img.shields.io/github/stars/openclaw/data-analysis-for-feishu.svg?style=social" alt="GitHub stars"></a> </div>

Comments

Loading comments...