finish-task
БесплатноБез исполняемых скриптовНе проверенStandardize end-of-task closeout when the user asks to finish, wrap up, merge-and-close, land, or otherwise cleanly close a tracked task or PR, including…
от ma08★ 31 звезда на GitHubОб этом скилле
Finish Task
Run the full closeout flow only when the goal is to land or close work, not when the task still needs implementation or review fixes.
Invocation
$finish-task [optional task target]
/finish-task [optional task target]
If no target is provided, resolve the current task for this session with
get-task-details.
Reuse Existing Helpers
get-task-detailsfor the current task metadata and status pathsave-task-statusfor status updates before and after closeoutpr-autoreview-loopwhen the repo has a current-head reviewer/check workflowghfor GitHub PR and issue operationsgitfor branch and worktree cleanup
Step 1: Resolve the task and repo surfaces
- Resolve the active task with
get-task-detailsunless the user already gave an exactstatus.md, task folder, repo root, or tracker/PR URL. - Read the resolved status file and identify every repo involved:
- the code repo or worktree that owns the implementation
- the task-tracking repo (for example
personal_os) when it differs from the code repo - task artifact folders such as
context/daily/.../<task-slug>/that need to be committed as durable closeout context - whether each repo uses a dedicated task branch/PR or intentionally works
on its default branch, such as
personal_ostasks done directly onmain - tracker surfaces such as Linear issues, GitHub issues, PRs, and any downstream linked tasks
- Capture the current local state before touching anything:
git status -sbgit branch --show-currentgit worktree listgh pr statusorgh pr view <number>when the repo uses GitHub PRs
Step 2: Gate on closeout readiness
Do not treat finish-task as permission to force-close unfinished work.
If the task still has outstanding implementation, review findings, failing checks, or missing human approval, stay in the active workflow and explain what remains.
For PR-bearing tasks, confirm that the current-head reviewer/check sweep is clean before merging. If the repo already uses
pr-autoreview-loop, prefer:pr-autoreview-loop status --repo "<repo-root>" --pr <number|url>If there are multiple candidate PRs, multiple repos, dirty uncommitted changes, or unclear merge strategy, stop and ask the smallest targeted question needed to disambiguate.
For no-dedicated-branch tasks, do not require or invent a PR. Confirm the work is on the expected default branch, usually
main, and that the relevant task context folder is included in the intended commit/push set.For cross-repo tasks coordinated from
personal_os, treat uncommittedcontext/task artifacts as part of closeout readiness. Do not close the external PR or tracker while the corresponding task context folder is still uncommitted unless the user explicitly chooses a different bookkeeping plan.When local uncommitted changes exist, classify them before asking what to do: in-scope closeout changes, unrelated user/workspace changes, or ambiguous. If in-scope changes are present and the task is otherwise ready to close, the user prompt must include an option to commit and push the scoped changes, then continue the tracker closeout. Do not make tracker-only closeout the only terminal option for a task whose relevant local work is still uncommitted.
Step 3: Ask for explicit confirmation before destructive actions
Get an explicit yes before any action that can delete, close, or merge. Treat these as separate toggles when the user's request did not already specify them:
- merge the PR or land the branch
- delete the remote branch
- delete local branches or remove worktrees
- move a tracker to
Doneor close a GitHub issue - commit or push task context artifacts to a default branch such as
personal_os/main - create bookkeeping commits in a task-tracking repo such as
personal_os - switch a repo checkout from the task branch/worktree back to the updated default branch when local state is dirty, ambiguous, or contains unmerged local commits
- close a dedicated zellij session
If the user explicitly asked for a full merge-and-close flow, that counts as permission for the matching items above, but still surface any ambiguity first.
When uncommitted changes are present, make the confirmation choices reflect the actual closeout paths. Include options like:
- Commit scoped changes and close/move tracker
- Commit scoped changes and hand off for review
- Tracker-only handoff, leaving local changes uncommitted
- Pause for manual cleanup
Only offer the combined commit-and-close option for changes you can scope clearly. If unrelated or ambiguous dirty files are mixed in, show the scoped file set and ask before staging anything.
For post-merge branch cleanup, prefer the active harness's interactive question
tool (ask_question, request_user_input, or AskUserQuestion) when available
if a checkout has dirty tracked c
Установить finish-task в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл finish-task?
Standardize end-of-task closeout when the user asks to finish, wrap up, merge-and-close, land, or otherwise cleanly close a tracked task or PR, including task-status sync, tracker notes/state changes, downstream heads-up checks, and local branch/worktree cleanup.
Как установить скилл finish-task?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл finish-task запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic