CRITICAL — Before starting, you MUST first use the Read tool to read ../lark-shared/SKILL.md, which contains authentication and permission handling
Command selection and progressive discovery (required reading)
Before executing any Task command, you must first confirm that the capability truly exists. It is forbidden to assemble or guess +<verb>:
- First precisely match the user's intent against the Shortcut table below. Only shortcuts explicitly listed in the table can be directly selected; when parameters are uncertain, read the corresponding reference or run that shortcut's
--help。 - When there is no exact match, or you cannot confirm whether the current version supports it, first run
lark-cli task --help, and take the command list output by the current CLI as authoritative. - When a matching shortcut exists in help, use the complete shortcut token listed in help (for example
+create) to runlark-cli task <shortcut> --help, then execute according to the real flags. - When there is no matching shortcut in help, do not attempt a similar
+<verb>; choose a native resource from help, runlark-cli task <resource> --helpto confirm the method, then runlark-cli schema task.<resource>.<method>to obtain the parameter structure, and finally calllark-cli task <resource> <method> ...。 - When encountering
unknown_subcommand, you must stop guessing or trying variants and return to step 2 to rediscover the capability.
Shortcut names can only come from this Skill's Shortcut table or lark-cli task --help; native resource/method are subject to level-by-level help, and parameter names, types, and nested structures are subject to the method schema.
Task grouping positioning (required reading):
- In the context of Feishu Tasks/Task Center, when the user says "grouping / groups", it preferably corresponds to
sections; a task list corresponds totasklists. First determine the group ownership, then choose the query path.- When it clearly belongs to "My Tasks", use
sections.listfor themy_tasksownership and--as userquery, with no need to fill in--resource-id; when it clearly belongs to a certain list, usetasklistownership, and pass that list's GUID to--resource-id。- When ownership is unclear, first judge based on the context; if it is still unclear, ask whether it belongs to "My Tasks" or which list; do not first traverse all task lists just to locate a group.
- When
section_guidis known, directly usesections.tasksto query tasks in the group; when only the group name is available, first list the groups of the owning resource and obtain theguid. For candidates with the same name, display the GUID and known ownership; do not automatically select the first one.- For the grouping operation process and schema-first examples, see Grouping operation reference. When only querying group information, there is no need to continue listing tasks in the group.
Task search tips: First distinguish whether the userspecifically designated use of the search skill, and whether they actually providedquery keywords(for example task name, keyword, fragment description). If the user specifically designated use of the search skill, or explicitly provided task query keywords, then when the target isTask, preferentially use
+search. If the user did not specifically designate use of the search skill, and the intent contains no query keywords, only scope conditions (for example "since this year", "completed", "created by me", "followed by me"), and using+searchand+get-related-tasks/+get-my-taskscan both achieve the goal, then list-type capabilities should be used preferentially rather than search-type capabilities. Among them, "related to me / followed by me / created by me" etc. should preferentially consider+get-related-tasks; the "I am responsible for / assigned to me" list prioritizes+get-my-tasks. Do not mistake a time-range term (such as "since the beginning of this year") itself forquerywhen performing a search. Task search relevance tips:+searchCurrently, it does not automatically determine the relevance of search results to the person who initiated the search. If the user explicitly asks to search for tasks "related to me", you must first identify the specific relationship, obtain the current user'sopen_id, and explicitly pass in the corresponding--assignee(assignee),--creator(creator), or--follower(follower) filter condition; you cannot rely only onqueryexpecting tasks related to the current user to be returned automatically. Task list search tips: task lists follow the same decision logic. First distinguish whether the userspecifically specifies using the search skill, and whether they actually providedlist query keywords(such as list name, keywords, fragment description). If the user specifically specifies using the search skill, or explicitly provides list query keywords, prioritize using+tasklist-search. If the user does not specifically specify using the search skill, and the intent contains no query keywords, only scope conditions (such as "task lists created by me", "lists created since the beginning of this year"), and both using search or natively listing lists can achieve the goal, prioritize using the nativetasklists.listinterface to list lists (firstschema task.tasklists.list, thenlark-cli task tasklists list --as user ...), then perform local filtering and pagination control by fields such ascreator、created_at. Intent distinction supplement: For expressions like "search Feishu for tasks I follow since the beginning of this year", although they literally contain "search", if there are no actual query keywords and the essence is limiting "related to me + time range", prioritize+get-related-tasks; for expressions like "search Feishu for task lists created by me", if there are no list keywords and the essence is limiting "list scope + creator", prioritize nativetasklists.listand then filter, rather than directly using a search-type shortcut. User identity recognition: In the user identity scenario, if the user mentions "me" (such as "assigned to me", "created by me"), by default obtain the current logged-in user'sopen_idas the corresponding parameter value. Term understanding — todo disambiguation (required reading):
- When the user mentions "todo / todo / task",first determine the ownership, and do not default to this skill.
- Use lark-meeting 's
minutes +todo(this skill is prohibited): the context contains Minutes / meeting minutes / minute_token / Minutes URL(/minutes/); or "create/modify a todo in a certain Minutes", "Minutes AI todo", "todo in a meeting recording".- Use this skill (lark-task): task lists, assigned to me, project todos, due date/reminder, subtasks, task list members; or applink contains
client/todo/task?guid=; or explicitly says "Feishu Tasks", "Task Center", "My Task Lists".- Prohibited: when the user wants to add a todo in Minutes,do notcall
task tasklists list、task +createor any task command to "find the list and then place a task". Friendly output: When outputting the execution result of a task (or list) to the user, it is recommended to also extract and output theurlfield (task link) from the command return result, so that the user can directly click to jump and view the details.
Creation/Update Notes:
- Only when
due(due time) is set canrepeat_rule(recurrence rule) andreminder(reminder time) be set.- If both
start(start time) anddue(due time) are set, the start time must be less than or equal to the due time.- When using tenant_access_token (app identity), it is not possible to add task members across tenants.
Query Notes:
- When outputting task details, if you need to render personnel fields such as assignee and creator, in addition to displaying
id(e.g., open_id), you must also try to obtain and display the person's real name through other means (e.g., calling the contacts skill), so that users can identify them more easily.- When outputting list details, if you need to render personnel fields such as owner, member, and role members, you must also, like with task member display, in addition to displaying
id, try to parse and display the corresponding person's real name.- When outputting task or list details, if you need to render fields such as creation time and due time, you need to render them using the local time zone (format: 2006-01-02 15:04:05).
Task GUID Definition: The
guidused in Task OpenAPI for updating/operating on tasks is the task's globally unique identifier (GUID), not the task number displayed by the client (e.g.,t104121/suite_entity_num). For Feishu task applinks (e.g.,.../client/todo/task?guid=...), theguidparameter in the URL query must be used as the task guid.
Shortest path to locate and modify a task from a task list:
- When the task list GUID is known, use it directly; do not search first. When the task list applink is known, take the
guidin the URL query astasklist_guid。- Only when there is only a list name or keyword and no GUID/applink, call
+tasklist-searchonce to resolve the target list.- According to native API rules, first execute
lark-cli schema task.tasklists.tasks, then executelark-cli task tasklists tasks --params '{"tasklist_guid":"<tasklist_guid>"}' --as user。- From the list task results, take the task's
guidand pass it directly to+updateor+complete; passing the client-displayed number (e.g.,t104121) is prohibited. These two shortcuts can also directly receive a task applink containingguid=.+updatereturnsupdated_fieldsand each task's server-sideconfirmedfield;+completereturnsstatus、completed_at、already_completed. When these fields have already confirmed the target state, do not routinely appendtasks get; query the details again only when the server does not return the required fields or the user explicitly requests a complete review.
| Shortcut | Description |
|---|---|
+create |
create a task |
+update |
update task attributes |
+set-ancestor |
set or clear a task ancestor |
+comment |
add a comment to a task |
+complete |
mark a task as complete |
+reopen |
reopen a completed task |
+assign |
assign or remove task members |
+followers |
manage task followers |
+reminder |
manage task reminders |
+get-my-tasks |
List tasks assigned to me |
+get-related-tasks |
list tasks related to me |
+search |
search tasks |
+upload-attachment |
upload a local file as an attachment to a task |
+tasklist-create |
create a tasklist and optionally add tasks |
+tasklist-search |
search tasklists |
+tasklist-task-add |
add tasks to a tasklist |
+tasklist-members |
manage tasklist members |
API Resources
lark-cli schema task.<resource>.<method> # 调用 API 前必须先查看参数结构
lark-cli task <resource> <method> [flags] # 调用 API
Important: When using the native API, you must first run
schemato view the--data/--paramsparameter structure; do not guess the field format.
tasks
create— Create taskdelete— Delete taskget— Get task detailslist— List taskspatch— Update Task
tasklists
add_members— Add Checklist Membercreate— Create Checklistdelete— Delete Checklistget— Get Checklist Detailslist— Get Checklist Listpatch— Update Checklistremove_members— Remove Checklist Membertasks— Get Checklist Task List
subtasks
create— Create Subtasklist— Get Subtask List of Task
members
add— Add Task Memberremove— Remove Task Member
sections
create— Create Custom Groupdelete— Delete Custom Groupget— Get Custom Group Detailslist— Get Custom Group Listpatch— Update Custom Grouptasks— Get Custom Group Task List
custom_fields
create— Create Custom Fieldget— Get Custom Field Detailspatch— Update Custom Fieldlist— Get Custom Field Listadd— Add Custom Field to Resourceremove— Remove Custom Field from Resource
custom_field_options
create— Create Custom Field Optionpatch— Update Custom Field Option
agent
update_agent_profile— Update the homepage content data of the task agent.register_agent— Register AI Agent
agent_task_step_info
append_task_steps— Write task record.
Permission Table
| Method | Required scope |
|---|---|
tasks.create |
task:task:write |
tasks.delete |
task:task:write |
tasks.get |
task:task:read |
tasks.list |
task:task:read |
tasks.patch |
task:task:write |
tasklists.add_members |
task:tasklist:write |
tasklists.create |
task:tasklist:write |
tasklists.delete |
task:tasklist:write |
tasklists.get |
task:tasklist:read |
tasklists.list |
task:tasklist:read |
tasklists.patch |
task:tasklist:write |
tasklists.remove_members |
task:tasklist:write |
tasklists.tasks |
task:tasklist:read |
subtasks.create |
task:task:write |
subtasks.list |
task:task:read |
members.add |
task:task:write |
members.remove |
task:task:write |
sections.create |
task:section:write |
sections.delete |
task:section:write |
sections.get |
task:section:read |
sections.list |
task:section:read |
sections.patch |
task:section:write |
sections.tasks |
task:section:read |
custom_fields.create |
task:custom_field:write |
custom_fields.get |
task:custom_field:read |
custom_fields.patch |
task:custom_field:write |
custom_fields.list |
task:custom_field:read |
custom_fields.add |
task:custom_field:write |
custom_fields.remove |
task:custom_field:write |
custom_field_options.create |
task:custom_field:write |
custom_field_options.patch |
task:custom_field:write |
agent.update_agent_profile |
task:task:write |
agent.register_agent |
task:task:write |
agent_task_step_info.append_task_steps |
task:task:write |