Command Palette

Search for a command to run...

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

task-reconcile

БесплатноЗапускает вложенные скриптыНе проверен

Close taskwarrior tasks whose linked GitHub issue/PR closed or merged. Use when stale trackers pile up, after a PR-merge sweep, or auditing queue drift.

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

/taskwarrior:task-reconcile

Close the tasks that have gone stale because the GitHub issue or PR they mirror has closed or merged. task-status detects this drift; this skill acts on it, so the queue does not silently fill with trackers for work that already shipped.

A task is "linked" whether it carries a ghid/ghpr UDA or references an issue/PR in its description/annotation text (a #N, an owner/repo#N, or a github.com/owner/repo/(issues|pull)/N URL) — so tasks filed with a plain #N in the description are reconciled too, and a cross-repo owner/repo#N is checked against that repo, not the current one. Only a ghid/ghpr UDA can close a task: a task linked by text refs alone gets verdict review when its items are done, and is reported but never closed, because tasks often cite a merged PR as context for work that is still open (#3126).

When to Use This Skill

Use this skill when... Use a sibling skill instead when...
Stale tasks (ghid/ghpr UDA or a #N/owner/repo#N/URL in the description) have piled up after issues/PRs closed Auditing queue health without mutating it — use task-status
Sweeping the queue after a batch of PRs merged Closing one specific task by ID with a landing commit — use task-done
Reconciling the local queue against GitHub as the source of record Filing a new linked task — use task-add

Context

  • Task CLI available: !task --version
  • Git repo detected: !find . -maxdepth 1 -name '.git' -print -quit
  • GH auth: !gh auth status

GitHub-mode and project resolution run in the body (Step 1) via the bundled scripts, where stderr suppression and exit-code handling are available — git / gh probes in a Context backtick abort the skill in a no-git/no-remote cwd.

Parameters

Parse $ARGUMENTS:

  • --apply — perform the close. Without it the skill runs a dry-run preview first, then asks once before closing.
  • --project=<name> — override the auto-detected project filter.
  • --all — reconcile across every project (rare; usually you want one repo).
  • --limit=N — cap how many linked tasks are inspected (default 200).

Execution

Execute this reconciliation workflow:

Step 1: Resolve scope

Run the shared project resolver (handles --project / --all / git-toplevel / cwd, with no stderr-emitting git probes):

bash "${CLAUDE_SKILL_DIR}/../../scripts/resolve-project.sh"

Read PROJECT= from the output. GitHub mode must be on (an authenticated gh plus a remote) — the reconcile script reports GH_AVAILABLE=false and exits cleanly if not.

Step 2: Dry-run classification

Run the reconcile script without --apply to classify every linked task:

bash "${CLAUDE_SKILL_DIR}/scripts/reconcile.sh" --project=PROJECT

It emits one TASK ... line per linked task with its refs count, upstream state(s), a verdict (live / issue-closed / pr-merged / pr-closed / review), and the close method it would use (bulk / done / keep). A task with several refs is stale only when every ref is done — any open ref keeps it live, any unreadable ref keeps it (uncertain), and a pr-closed among them makes the aggregate pr-closed (kept out of the bounded auto-apply set). A task with no ghid/ghpr UDA whose text refs are all done is review (method=keep), counted in REVIEW_COUNT and never in STALE_COUNT. Render the stale set as a table for the user, list the review tasks separately for the user to check by hand, and read the STALE_COUNT / REVIEW_COUNT / BULK_COUNT / DONE_COUNT summary.

Step 3: Confirm and apply

If STALE_COUNT is 0, report "queue is in sync" and stop.

If --apply was passed in $ARGUMENTS, skip straight to running with --apply. Otherwise confirm once with AskUserQuestion (never a freeform "y/n" — see .claude/rules/skill-execution-structure.md): "Close N stale task(s)?" with options to proceed, review the table again, or cancel.

On confirmation, re-run with --apply:

bash "${CLAUDE_SKILL_DIR}/scripts/reconcile.sh" --apply --project=PROJECT

Each closed task is annotated with the reason (reconcile: PR #45 merged). Leaf tasks close via a bulk task import round-trip; tasks that block others close via per-task task done so taskwarrior's dependency auto-unblock fires (see REFERENCE.md for why the two paths differ).

Step 4: Report

Print CLOSED_COUNT, the per-task verdicts, and any UNKNOWN_UPSTREAM count (tasks whose issue/PR could not be fetched — left untouched, never closed on uncertainty) or AMBIGUOUS_REPO count (--all only: tasks outside the cwd's project whose refs name no repo, so the cwd repo cannot answer for them — run the skill from that project's repo to reconcile them). Suggest /taskwarrior:task-status to confirm the queue is clean.

Agentic Optimizations

Context Command
Dry-run classify `bash scripts/reconcil
Полный SKILL.md на GitHub

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

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

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

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

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

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

Bash(task *)
Bash(gh issue *)
Bash(gh pr *)
Bash(jq *)
Bash(bash *)
Bash(git rev-parse *)
Read
TodoWrite

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

REFERENCE.mdscripts/reconcile.sh

FAQ

Что делает скилл task-reconcile?

Close taskwarrior tasks whose linked GitHub issue/PR closed or merged. Use when stale trackers pile up, after a PR-merge sweep, or auditing queue drift.

Как установить скилл task-reconcile?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл task-reconcile запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

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