Skip to content

Repository files navigation

中文版 | English

lark-robot-fleet-ops

AI Agent Skill for Robot Fleet Operations via Feishu/Lark CLI

让 AI Agent 通过飞书 CLI 自动化管理机器人车队:
设备监控多维表格异常告警运维日报

MIT License Feishu CLI Python 3


What is this?

A Feishu CLI Skill that enables AI Agents (Cursor, Claude Code, etc.) to manage robot fleets through Feishu/Lark — no server, no daemon, just a Skill file + CLI commands.

"帮我检查机器人车队状态" → AI reads sensor data → Writes to Bitable → Sends alerts → Creates report

Showcase

Bitable Dashboard

1. Automated Bitable Dashboard

Interactive Alert Card

2. Real-time Anomaly Detection & Feishu Interactive Card Alerts

Predictive Maintenance Task

3. AI Predictive Maintenance & Auto Task Dispatch based on history

Daily Report Part 1 Daily Report Part 2

4. AI-Generated Daily Operations Report

Key Features

Feature Description Feishu Service
Status Dashboard Write device telemetry to Bitable lark-cli base
Anomaly Alerts Send real-time alerts to group chat lark-cli im
Daily Reports Generate structured ops reports lark-cli docs
Maintenance Tasks Create tasks for faulty devices lark-cli task
Scheduled Maintenance Add calendar events for repairs lark-cli calendar
Fleet Simulator Zero-dep Python simulator for demos fleet_simulator.py

Anomaly Detection

Type Condition Severity
Overheat Temperature > 75°C Critical
Low Battery Battery < 15% Warning
Offline No heartbeat Critical
CPU Overload CPU > 90% Warning
Memory Full Memory > 95% Warning
Weak Signal WiFi RSSI < -80 dBm Warning
Collision Emergency stop triggered Critical

Quick Start (3 minutes)

1. Install

# Install Feishu CLI (if not already)
npm install -g @larksuite/cli
npx skills add larksuite/cli -y -g

# Install this Skill
npx skills add <your-username>/lark-robot-fleet-ops -y -g

2. Configure & Login

lark-cli config init --new              # Create Feishu app (browser)
lark-cli auth login --domain base,im,docs,task   # Authorize permissions

3. Generate Test Data

python3 scripts/fleet_simulator.py --count 5 --anomaly-rate 0.3 -o /tmp/fleet_status.json

4. Ask Your AI Agent

Open Cursor, Claude Code, or any AI tool and say:

请帮我检查机器人车队状态,数据文件在 /tmp/fleet_status.json。 把状态写入飞书多维表格,如果有异常设备发告警到运维群,最后生成运维日报。

The Agent will automatically:

  1. Read and parse the fleet JSON data
  2. Write each device's metrics to Bitable
  3. Detect anomalies and send alerts to your group chat
  4. Create a structured daily ops report in Feishu Docs

Architecture

┌─────────────────────────────────────────────────────────┐
│                    Data Sources                          │
│  Simulator  │  SSH (Real Devices)  │  JSON    │
└───────┬─────────────────┬──────────────────────┬────────┘
        │                 │                      │
        ▼                 ▼                      ▼
┌─────────────────────────────────────────────────────────┐
│              fleet_collector.sh                          │
│         (Auto-detect real devices or simulate)           │
└───────────────────────┬─────────────────────────────────┘
                        │  fleet_status.json
                        ▼
┌─────────────────────────────────────────────────────────┐
│              AI Agent + SKILL.md                      │
│         (Parse data, detect anomalies, orchestrate)      │
└──────┬──────────┬──────────┬──────────┬──────────┬──────┘
       │          │          │          │          │
       ▼          ▼          ▼          ▼          ▼
    Base    IM     Docs    Task   Calendar
   (Table)   (Alert)   (Report)   (TODO)    (Schedule)

See docs/architecture.md for detailed Mermaid diagrams.


Project Structure

lark-robot-fleet-ops/
├── skills/
│   └── lark-workflow-robot-fleet-ops/
│       └── SKILL.md              ← Core: AI Agent workflow instructions
├── scripts/
│   ├── fleet_simulator.py        ← Robot fleet data simulator (zero-dep)
│   ├── fleet_collector.sh        ← Auto-detect real/sim devices
│   └── setup_base_table.sh       ← One-click Bitable setup
├── examples/
│   ├── sample_fleet_status.json  ← Demo data (5 devices, 2 anomalies)
│   └── demo_workflow.md          ← Step-by-step tutorial
├── docs/
│   └── architecture.md           ← Architecture & diagrams
├── package.json                  ← npm/skills metadata
├── README.md                     ← You are here
├── README.zh.md                  ← 中文文档
└── LICENSE                       ← MIT

Simulator

The fleet simulator generates realistic telemetry data — no hardware needed:

# Basic: 5 devices, 10% anomaly rate
python3 scripts/fleet_simulator.py

# Custom: 10 devices, 30% anomaly, reproducible
python3 scripts/fleet_simulator.py --count 10 --anomaly-rate 0.3 --seed 42

# Output to file
python3 scripts/fleet_simulator.py -o /tmp/fleet_status.json

Simulated robot types:

  • Companion Robot (nunu-xxx) — elderly care, home assistant
  • Patrol Robot (scout-xxx) — security, surveillance
  • Delivery Robot (cargo-xxx) — logistics, warehouse

Real Device Integration

For production use, create a hosts.txt with your robots' SSH addresses:

# hosts.txt
pi@nunu-001.local
root@192.168.1.50
jetson@orin-nx.local
bash scripts/fleet_collector.sh --hosts hosts.txt

The collector reads system metrics via SSH (/proc, /sys/class/thermal, etc.) and outputs the same JSON format as the simulator.

Advanced Features

The project includes advanced data collection and analysis tools:

  • MQTT Collector: python3 scripts/mqtt_collector.py --host broker.hivemq.com
  • ROS2 (rclpy) Native Node: python3 scripts/ros2_collector.py (Subscribes to /diagnostics, requires ROS2 environment)
  • Prometheus Exporter: python3 scripts/prometheus_exporter.py --port 8000 (exposes metrics for Grafana)
  • Interactive Alert Cards: examples/alert_card_template.json enables rich interactive Feishu alerts
  • History Trend & AI Predictive Maintenance: AI Agent workflow integrated with Bitable time-series data queries to predict anomalies before they happen.

Contributing

Thanks to all contributors! The advanced features listed above are now fully implemented. PRs are welcome for these new ideas:

  • Enterprise Feishu workflow integrations (e.g. Approvals)
  • 3D indoor map integration into Feishu documents
  • Multi-lingual and cross-region fleet orchestration

License

MIT — Built with ❤️ for the Feishu CLI Creator Competition 2026.

Acknowledgments

  • larksuite/cli — The amazing Feishu CLI
  • Feishu CLI Creator Competition — Inspiration for this project

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages