finish-task
After a task's PR is created, offer to close the task on the configured board and reindex it. Use when the user says a PR is up or asks to close or finish a task.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- finish-task
- description
- After a task's PR is created, offer to close the task on the configured board and reindex it. Use when the user says a PR is up or asks to close or finish a task.
03 SKILL.md 正文
Finish Task
Reply in Russian. The server appends the PR link idempotently, completes the selected generic target, and adds a clickable task link to the PR body; clients never send credentials.
- Config. Read
task_boardfrom.review.yml, otherwiseget_board_config(). Use onlytype,project,create_target,done_target, andoptions. If no board is resolved, report a board-less no-op. - Resolve key and PR. Match
key_patternon the current branch, newestbriefsfile, orgh pr view --json title,body; otherwise ask. Resolve the PR URL withgh pr view --json url -q .url(or ask). Missing key or URL is a no-op. - Discover. Call
get_board_targets(board_type=<type>, project=<project>, provider_options=<task_board.options or {}>). Selectdone_targetfromtargetswith a done purpose. For each option withrequired_forcontainingfinish, resolve its value fromchoices; if required metadata is missing, ask instead of guessing. - Offer + confirm. Show the PR link and the resolved done target by its label plus every selected option, and state that a task link will be prepended to the PR body. Ask whether to add an optional note. Write only after explicit confirmation; never write to the board silently.
- Write. Call
Onfinish_task(key=<key>, pr_url=<url>, note=<note or null>, board_type=<type>, target=<done_target or null>, provider_options=<task_board.options or {}>)status == "error", report the reason in Russian and stop. - Re-index. Call
sync_board(board=<project or null>, board_type=<type>, provider_options=<task_board.options or {}>), then report the write and sync result. Whenalready_closedis true, state that no duplicate PR link was added. Report the task link fromtask_link_status, not fromtask_link_addedalone:added— the link was written now;already_present— it was already in the PR body, so report it as normal (an idempotent no-op, never as a problem);failed— only then relay the warning verbatim, and the board write still succeeded.task_link_addedstaystrueonly foradded(older deploys may omittask_link_status: treat a missing field asadded/failedby whether warnings mention the link).
All reads are fail-open; the explicitly confirmed finish_task call is the only write.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.