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 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 only
type, project, create_target, done_target, and options. If no board is resolved,
report a board-less no-op.
- Resolve key and PR. Match
key_patternon the current branch, newestbriefsfile, or
gh pr view --json title,body; otherwise ask. Resolve the PR URL with `gh 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 {}>). Select done_target from targets` with a done
purpose. For each option with required_for containing finish, resolve its value from
choices; 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
finish_task(key=<key>, pr_url=<url>, note=<note or null>, board_type=<type>,
target=<done_target or null>, provider_options=<task_board.options or {}>)
On 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. When
already_closed is true, state that no duplicate PR link was added. Report the task link from
task_link_status, not from task_link_added alone: 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_added stays true only for added (older deploys may omit
task_link_status: treat a missing field as added/failed by whether warnings mention the link).
All reads are fail-open; the explicitly confirmed finish_task call is the only write.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/mimfort/rag_for_git/plugin/skills/finish-task/SKILL.md