微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🗂️

飞书智能办公 CLI 助手

Feishu Agent · v1.0.14
办公 安全 B 级 作者 boyd4y 公开目录收录
1k 下载 0 安装 4.2k 收藏 4 浏览

简介

飞书官方 API 的 CLI 代理工具,支持日历管理、任务追踪和联系人查询,适合企业团队协作场景

原始描述

Feishu (Lark) CLI agent - Provides calendar, todo, and contact management capabilities for AI assistants

通过你的 Agent 添加

安装目录:feishu-agent/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/feishu-agent/
Codex CLI~/.codex/skills/feishu-agent/
DeepSeek Harness~/.agents/skills/feishu-agent/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: feishu-agent description: Feishu (Lark) CLI agent - Provides calendar, todo, and contact management capabilities for AI assistants version: 1.0.14 metadata: openclaw: requires: bins: - bun

Feishu Agent Skill

Feishu (Lark) CLI agent - Provides calendar, todo, and contact management capabilities for AI assistants.

Installation

# Install via clawhub
clawhub install feishu-agent

# Or run directly with bunx
bunx @teamclaw/feishu-agent <command>

# Or install globally via bun
bun add -g @teamclaw/feishu-agent
feishu-agent <command>

Quick Start

  1. Setup - Configure Feishu app credentials:

    feishu-agent setup
    
  2. Authenticate - OAuth 2.0 authorization:

    feishu-agent auth
    
  3. Start using - Check your calendar:

    feishu-agent calendar events
    

Capabilities

  • 📅 Calendar: List calendars, view events, create/delete events with automatic conflict detection
  • ✅ Todo: Manage tasks via Feishu Bitable
  • 👥 Contacts: Search and list users from organization
  • 🔐 Auth: OAuth 2.0 authentication with automatic token refresh

Commands

Setup & Auth

Command Description
feishu-agent setup Interactive setup wizard (App credentials + OAuth + Bitable)
feishu-agent auth OAuth 2.0 authorization to get user_access_token
feishu-agent whoami Show current user and authorization status
feishu-agent config list View global configuration

Calendar Management

Command Description
feishu-agent calendar List all calendars (primary, subscribed)
feishu-agent calendar events List events in primary calendar
feishu-agent calendar create --summary "Meeting" --start "2026-03-05 14:00" --end "2026-03-05 15:00" Create a new event (auto-checks conflicts)
feishu-agent calendar create --summary "Meeting" --start "..." --end "..." --attendee user_id Create event with attendees
feishu-agent calendar delete --event-id=evt123 Delete an event

Other Features

Command Description
feishu-agent todo list List todos from Bitable
feishu-agent todo create --title "Task" --priority "High" Create a todo
feishu-agent todo done --record-id=rec123 Mark todo as done
feishu-agent contact list List users in department
feishu-agent contact search "John" Search users by name/email

Setup Flow

Option 1: Interactive Setup (Recommended)

feishu-agent setup

This wizard will:

  1. Prompt for App ID and App Secret
  2. Open browser for OAuth 2.0 authorization
  3. Save tokens to ~/.feishu-agent/config.json
  4. Optionally fetch Bitable schema

Option 2: Manual Configuration

# Step 1: Set app credentials
feishu-agent config set appId cli_xxxxx
feishu-agent config set appSecret xxxxx

# Step 2: Authorize with user account
feishu-agent auth

Configuration

Global config is stored in ~/.feishu-agent/config.json:

{
  "appId": "cli_xxxxx",
  "appSecret": "xxxxx",
  "userAccessToken": "xxxxx",
  "refreshToken": "xxxxx"
}

Required Feishu App Permissions

In Feishu Developer Console, enable:

  • calendar:calendar - View and manage user calendars
  • calendar:event - Manage events in calendars
  • contact:user.base:readonly - Read user contact info
  • bitable:app - Access Bitable data (for todo feature)

Redirect URI must be configured: http://localhost:3000/callback

Use Cases for AI Agents

Schedule a Meeting

feishu-agent calendar create \
  --summary "Team Standup" \
  --start "2026-03-05 10:00" \
  --end "2026-03-05 10:30" \
  --attendee user_id_1 \
  --attendee user_id_2

Note: The command automatically checks for time conflicts using the FreeBusy API. If a conflict is detected, the event creation will fail with a description of the busy time slot.

Check Daily Schedule

feishu-agent calendar events

Manage Tasks

feishu-agent todo create --title "Review PR #123" --priority "High"
feishu-agent todo list
feishu-agent todo done --record-id rec_xxx

Troubleshooting

"User authorization required"

  • Run feishu-agent auth to authorize

"Token expired"

  • Run feishu-agent auth again to refresh

"Time conflict detected"

  • The requested time slot is already busy
  • Choose a different time or check your calendar with feishu-agent calendar events

"Permission denied"

  • Check app permissions in Feishu Developer Console

License

MIT

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

larkfeishucalendartodoenterpriseclioauthapi-client

同类 Skill