finish-task

finish-task is a skill for Claude Code from mimfort/rag_for_git. It costs 43 tokens per session (650 once invoked), scanned A, original, MIT.

A workflow for finishing a task after its GitHub pull request has been created. It can connect the pull request to a configured task board, such as a project-management system.

In plain words
What is it for?
Use it to close or complete a tracked task, optionally add a note, and reindex it after the related pull request is ready.
Why use it?
It removes the manual steps of finding the task, choosing the board's completed status, and adding the pull request link. It also avoids making changes when the task or pull request cannot be identified.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rag-reviewer plugin — 14 skills, 2 hooks shipped together

Good fit Use it to close or complete a tracked task, optionally add a note, and reindex it after the related pull request is ready.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mimfort/rag_for_git/finish-task
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mimfort/rag_for_git --skill finish-task
Clone the repo
git clone --depth 1 https://github.com/mimfort/rag_for_git

Made for: Claude Code.

Or install rag-reviewer, the plugin that ships this one along with the rest of its 14 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for finish-task

README.md
[![agentmods](https://agentmods.dev/badge/skills/mimfort/rag_for_git/finish-task/github.svg)](https://agentmods.dev/skills/mimfort/rag_for_git/finish-task)
Your own site
<a href="https://agentmods.dev/skills/mimfort/rag_for_git/finish-task"><img src="https://agentmods.dev/badge/skills/mimfort/rag_for_git/finish-task/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for finish-task

Your own site · 80×15
<a href="https://agentmods.dev/skills/mimfort/rag_for_git/finish-task"><img src="https://agentmods.dev/badge/skills/mimfort/rag_for_git/finish-task.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 650 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00650
Opus 5.5 $0.00017 $0.00260
Sonnet 5.5 $0.00009 $0.00130
Haiku 4.5 $0.00004 $0.00065

Measured 1mo ago against content hash fe3b53a132af, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

finish-task scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/finish-task/SKILL.md · 40 lines

What it actually says

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.

  1. Config. Read task_board from .review.yml, otherwise get_board_config(). Use only type, project, create_target, done_target, and options. If no board is resolved, report a board-less no-op.
  2. Resolve key and PR. Match key_pattern on the current branch, newest briefs file, 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 40 lines · 43 tokens per session scan A fe3b53a132af

Subscribe to this mod's changes

finish-task is a skill published in the GitHub repository mimfort/rag_for_git (20 stars, last pushed 6d ago), licensed MIT. It adds 43 tokens to every session and 650 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories