feishu-task について
feishu-task は、Feishu のタスク、コメント、添付ファイル、タスクリストを管理するスキルです。メンバーやロールの管理に加え、タスクの閲覧範囲やボット所有権に関する注意点も示します。
主な機能
- 01タスクの作成・更新・削除
- 02サブタスクの作成とコメント管理
- 03添付ファイルのアップロードと管理
- 04タスクリストの作成と管理
- 05リストのメンバーとロールの管理
活用シーン
- 01期限付きの担当タスクの追跡
- 02ボットが作成したタスクの細分化
- 03コメントによるタスクの協議
- 04共有タスクリストでのタスク整理
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ m1heng/ clawdbot-feishu --skill feishu-taskインストール後、Claude Code で/feishu-taskを入力して読み込まれたか確認します。
詳細
Feishu タスクツール
ツール:
feishu_task_createfeishu_task_subtask_createfeishu_task_getfeishu_task_updatefeishu_task_deletefeishu_task_comment_createfeishu_task_comment_listfeishu_task_comment_getfeishu_task_comment_updatefeishu_task_comment_deletefeishu_task_attachment_uploadfeishu_task_attachment_listfeishu_task_attachment_getfeishu_task_attachment_deletefeishu_task_add_tasklistfeishu_task_remove_tasklistfeishu_tasklist_createfeishu_tasklist_getfeishu_tasklist_listfeishu_tasklist_updatefeishu_tasklist_deletefeishu_tasklist_add_membersfeishu_tasklist_remove_members
注意事項
task_guidは、タスクの URL(guid クエリパラメーター)またはfeishu_task_getの出力から取得できます。comment_idは、feishu_task_comment_listの出力から取得できます。attachment_guidは、feishu_task_attachment_listの出力から取得できます。user_id_typeは、返されるユーザー ID として受け入れられるユーザー ID の種類(open_id、user_id、union_id)を指定します。- 担当者が指定されていない場合は、リクエストしたユーザーを担当者に設定してください。ユーザーがタスクを表示できない場合があるため、担当者なしでタスクを作成するのは避けてください。
- タスクの表示範囲:ユーザーは、担当者に設定されているタスクのみを表示できます。
- 現在の制限:ボットは、自身が作成したタスクに対してのみサブタスクを作成できます。
- 添付ファイルのアップロードでは、ローカルの
file_pathとリモートのfile_urlを使用できます。リモート URL は、実行時のメディア安全性チェックとサイズ制限(mediaMaxMb)を適用して取得されます。 - タスクリストの所有者はボットのままにしてください。ボットがアクセスできなくならないよう、ユーザーはメンバーとして追加してください。
- タスクリストのメンバー変更にはタスクリスト用ツールを使用してください。タスクを別のタスクリストに移動するために
feishu_task_updateを使用しないでください。
タスクを作成
{
"summary": "Quarterly review",
"description": "Prepare review notes",
"due": { "timestamp": "1735689600000", "is_all_day": true },
"members": [
{ "id": "ou_xxx", "role": "assignee", "type": "user" }
],
"user_id_type": "open_id"
}
サブタスクを作成
{
"task_guid": "e297ddff-06ca-4166-b917-4ce57cd3a7a0",
"summary": "Draft report outline",
"description": "Collect key metrics",
"due": { "timestamp": "1735689600000", "is_all_day": true },
"members": [
{ "id": "ou_xxx", "role": "assignee", "type": "user" }
],
"user_id_type": "open_id"
}
コメントを作成
{
"task_guid": "e297ddff-06ca-4166-b917-4ce57cd3a7a0",
"content": "Looks good to me",
"user_id_type": "open_id"
}
添付ファイルをアップロード(file_path)
{
"task_guid": "e297ddff-06ca-4166-b917-4ce57cd3a7a0",
"file_path": "/path/to/report.pdf",
"user_id_type": "open_id"
}
添付ファイルをアップロード(file_url)
{
"task_guid": "e297ddff-06ca-4166-b917-4ce57cd3a7a0",
"file_url": "https://oss-example.com/bucket/report.pdf",
"filename": "report.pdf",
"user_id_type": "open_id"
}
タスクのタスクリストへの追加・削除
タスクをタスクリストに追加
{
"task_guid": "e297ddff-06ca-4166-b917-4ce57cd3a7a0",
"tasklist_guid": "cc371766-6584-cf50-a222-c22cd9055004",
"section_guid": "6d0f9f48-2e06-4e3d-8a0f-acde196e8c61",
"user_id_type": "open_id"
}
タスクをタスクリストから削除
{
"task_guid": "e297ddff-06ca-4166-b917-4ce57cd3a7a0",
"tasklist_guid": "cc371766-6584-cf50-a222-c22cd9055004",
"user_id_type": "open_id"
}
タスクリスト
タスクリストは、所有者(読み取り/編集/管理)、編集者(読み取り/編集)、閲覧者(読み取り)の 3 つのロールに対応しています。
タスクリストを作成
{
"name": "Project Alpha Tasklist",
"members": [
{ "id": "ou_xxx", "type": "user", "role": "editor" }
],
"user_id_type": "open_id"
}
タスクリストを取得
{
"tasklist_guid": "cc371766-6584-cf50-a222-c22cd9055004",
"user_id_type": "open_id"
}
タスクリストの一覧を取得
{
"page_size": 50,
"page_token": "aWQ9NzEwMjMzMjMxMDE=",
"user_id_type": "open_id"
}
タスクリストを更新
{
"tasklist_guid": "cc371766-6584-cf50-a222-c22cd9055004",
"tasklist": {
"name": "Renamed Tasklist",
"owner": { "id": "ou_xxx", "type": "user", "role": "owner" }
},
"update_fields": ["name", "owner"],
"origin_owner_to_role": "editor",
"user_id_type": "open_id"
}
タスクリストを削除
{
"tasklist_guid": "cc371766-6584-cf50-a222-c22cd9055004"
}
タスクリストのメンバーを追加
{
"tasklist_guid": "cc371766-6584-cf50-a222-c22cd9055004",
"members": [
{ "id": "ou_xxx", "type": "user", "role": "editor" }
],
"user_id_type": "open_id"
}
タスクリストのメンバーを削除
{
"tasklist_guid": "cc371766-6584-cf50-a222-c22cd9055004",
"members": [
{ "id": "ou_xxx", "type": "user", "role": "viewer" }
],
"user_id_type": "open_id"
}
コメント
Markdown 対応