Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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-details for the current task metadata and status path
  • save-task-status for status updates before and after closeout
  • pr-autoreview-loop when the repo has a current-head reviewer/check workflow
  • gh for GitHub PR and issue operations
  • git for branch and worktree cleanup

Step 1: Resolve the task and repo surfaces

  1. Resolve the active task with get-task-details unless the user already gave an exact status.md, task folder, repo root, or tracker/PR URL.
  2. 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_os tasks done directly on main
    • tracker surfaces such as Linear issues, GitHub issues, PRs, and any downstream linked tasks
  3. Capture the current local state before touching anything:
    • git status -sb
    • git branch --show-current
    • git worktree list
    • gh pr status or gh 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 uncommitted context/ 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 Done or 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

Полный SKILL.md на GitHub

Установить finish-task в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yaml

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), без исполняемых скриптов.

Похожие скиллы

Сравнить finish-task с