← 返回
沟通协作 Key 中文

feishu-task-management-skill

Manage Feishu tasks through a local Python toolkit that always has app credentials and can optionally act as a user for task APIs when OAuth user tokens are...
通过本地Python工具包管理飞书任务,工具包内置应用凭证,并可在需要时使用OAuth用户令牌以用户身份调用任务API。
owrig
沟通协作 clawhub v0.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 681
下载
💾 6
安装
1
版本
#latest

概述

Feishu Task Management

Overview

Use this skill to operate Feishu Task through the companion toolkit in feishu-task-management/toolkit/. Keep the core workflow in this file: decide the command, resolve members locally, and apply the write-safety rules without loading extra references unless the request falls into an edge case.

Core Workflow

  1. Confirm the request is about Feishu task management through the local toolkit.
  2. Before the first API-backed operation, make sure the toolkit is configured. If not, use:

python3 feishu-task-management/toolkit/scripts/feishu_config.py guide

  1. Treat app credentials as mandatory base config. Prefer the configured user_access_token for task APIs when available, but keep contact and member-sync operations on app auth.
  2. If the operation involves people, use the local member table through the toolkit. Do not perform ad hoc contact lookups.
  3. Choose the narrowest task command available instead of composing generic HTTP requests.
  4. For destructive or state-changing operations, inspect the current task first when practical.
  5. Stop if member resolution is ambiguous or missing.

Command Routing

Member Table Maintenance

  • Sync the authorized contact scope:

python3 feishu-task-management/toolkit/scripts/feishu_members.py sync

  • Inspect sync state:

python3 feishu-task-management/toolkit/scripts/feishu_members.py stats

  • Test a member lookup:

python3 feishu-task-management/toolkit/scripts/feishu_members.py resolve --query "张三"

  • Validate manual aliases:

python3 feishu-task-management/toolkit/scripts/feishu_members.py validate-aliases

Toolkit Configuration

  • Show configuration guidance:

python3 feishu-task-management/toolkit/scripts/feishu_config.py guide

  • Write a local runtime config:

python3 feishu-task-management/toolkit/scripts/feishu_config.py set --app-id ... --app-secret ...

  • Extend the config with existing user OAuth tokens:

python3 feishu-task-management/toolkit/scripts/feishu_config.py set --app-id ... --app-secret ... --user-access-token ...

  • Inspect effective config:

python3 feishu-task-management/toolkit/scripts/feishu_config.py show

  • Validate current config:

python3 feishu-task-management/toolkit/scripts/feishu_config.py validate

Read Operations

  • Get one task:

python3 feishu-task-management/toolkit/scripts/feishu_task.py get --task-guid ...

  • List tasks:

python3 feishu-task-management/toolkit/scripts/feishu_task.py list

Write Operations

  • Create a task:

python3 feishu-task-management/toolkit/scripts/feishu_task.py create --summary ...

  • Update core fields:

python3 feishu-task-management/toolkit/scripts/feishu_task.py update --task-guid ...

  • Complete a task:

python3 feishu-task-management/toolkit/scripts/feishu_task.py complete --task-guid ...

  • Reopen a task:

python3 feishu-task-management/toolkit/scripts/feishu_task.py reopen --task-guid ...

  • Add members:

python3 feishu-task-management/toolkit/scripts/feishu_task.py add-members --task-guid ... --member ...

  • Remove members:

python3 feishu-task-management/toolkit/scripts/feishu_task.py remove-members --task-guid ... --member ...

  • Delete a task:

python3 feishu-task-management/toolkit/scripts/feishu_task.py delete --task-guid ... --yes

Member Resolution

Use local resolution only, in this order:

  1. Explicit identifiers: open_id, user_id, email, mobile
  2. Manual alias mapping from feishu-task-management/toolkit/data/member_aliases.json
  3. Exact canonical matches on name, en_name, nickname, and email
  4. Limited fuzzy matching

Apply these safety rules:

  • Zero matches: stop and report that the member table or aliases need updating.
  • One match: proceed.
  • Multiple matches: stop and return the candidate list.

If the authorized scope only yields identifier fields without profile fields, natural-language matching depends on manual aliases. This does not change when task APIs later use a user token.

Write Safety Rules

  • Use the toolkit instead of constructing raw HTTP requests in the skill body.
  • Prefer dedicated commands over generic update payloads when a command exists.
  • Use dedicated completion commands instead of editing completed_at directly.
  • Treat origin as create-only.
  • Clear start and due explicitly instead of relying on omission.
  • Require explicit confirmation before deletion.

Supported v1 Scope

  • Create task
  • Get task
  • List tasks
  • Update summary, description, start, and due
  • Delete task
  • Complete task
  • Reopen task
  • Add members
  • Remove members

The following are intentionally out of scope for v1:

  • reminders
  • tasklists
  • dependencies
  • repeat rules
  • custom complete
  • attachments

Conditional References

Load extra context only when the request falls off the main path:

  • Read member-sync-troubleshooting.md only when member sync, alias validation, or authorized-scope coverage is the problem.
  • Read task-edge-cases.md only when handling time-field clearing, origin, completion semantics, or deferred task features.
  • Read permission-errors.md only when a task operation fails with permission-related behavior such as 1470403.
  • Read api-alignment.md only when changing toolkit payloads or aligning CLI defaults to newer Feishu API samples.

版本历史

共 1 个版本

  • v0.0.1 当前
    2026-03-31 09:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Gmail

byungkyu
Gmail API 集成,托管 OAuth,支持读取、发送和管理邮件、线程、标签及草稿,适用于需要与 Gmail 交互的场景。
★ 72 📥 37,718
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,577
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 113 📥 52,385