Command Palette

Search for a command to run...

Назад к скиллам
скилл № 68536

task-debrief

Use when the user invokes a task debrief to verify the agent's completed work and audit its child agents, time, logged model cost, and workflow lessons in a…

БесплатноЗапускает вложенные скрипты
J-StaR-Films-Studiosот J-StaR-Films-Studios★ 27 звёзд на GitHub

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

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

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

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

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

Task debrief

Run this only when explicitly invoked by the user (/skill:task-debrief, /task-debrief, or a direct request for a task debrief). Optional arguments may name a task or time range.

Rules

  • Read-only audit: write only inside ~/.agents/task-audits/. Do not modify project files, skills, config, or external services.
  • Suggest improvements in the report; ask for separate approval before applying any of them.
  • Do not spawn agents to audit agents by default.
  • Never copy full transcripts, raw prompt dumps, personal records, or credential values into reports.
  • On re-runs, use a new dated report directory or get explicit consent before replacing an existing report.

1. Completion gate (before any audit work)

Check your live todo list and Takomi board (if used) for items belonging to the audited task:

  • Verify completed items against real deliverables and checks, not status labels alone. Report any relevant pending, in_progress, or blocked items.
  • Do not confuse unrelated tasks with this task's unfinished work, silently mark items done, or treat deferred work as finished.
  • Do not ask the user whether their to-do list is done; this is the agent's own completion check.
  • If the task has unfinished work or its task state cannot be inspected, report that and stop before opening transcripts, collecting usage, or writing notes. Continue only if the user explicitly requested an interim audit, and label the report as interim.

Once the gate passes, set the audit window and report directory:

  • Use the invoking user message timestamp as --cutoff so the audit does not count itself (if unavailable, state the chosen cutoff and its limitation).
  • Use PI_SESSION_FILE from a Pi shell tool as the parent journal. If it spans multiple tasks, bound --start and --cutoff using user messages and completion; ask if ambiguous. An ephemeral session or missing journal means costs are unknown, not zero.
  • Use the repo root (or working directory) name as <project> (add a short path hash if needed to disambiguate) and the task's thread ID or journal session ID as <task-id>. Create ~/.agents/task-audits/<project>/<task-id>/.

2. Establish child ownership

  • In T3 Code / Takomi Code: get the current thread ID via t3_thread_list and paginate includeSubagents: true across the project. Select only descendants with an unbroken parentThreadId chain to this thread (never match by similar title alone).
  • Call t3_thread_read (view: "activity") for each owned child to record its runs, statuses, and timestamps.
  • Match each child to a local Pi journal by unique session name, creation time, and worktree/session provenance. Inspect candidate session headers only, not unrelated chat bodies. Leave ambiguous matches unmatched and disclose the gap.
  • Outside T3 Code / Takomi Code: use explicit task/child IDs from local execution artifacts or user-supplied manifests, and report ownership as unverified. For Pi-only sessions with no thread metadata, ask for a child manifest or report only the verified parent rather than inventing an all-agent total.
  • Count other providers' agents without local Pi journals as missing-usage children, never as $0. Never infer child ownership from a project-wide file count.

3. Calculate usage

Write a small private manifest.json inside the report directory containing the parent and each owned child's exact thread ID, parent ID, title, optional sessionFile, and returned run records.

Run the bundled Pi JSONL collector:

node <skill-directory>/scripts/collect.cjs \
  --parent "$PI_SESSION_FILE" \
  --parent-thread <thread-id> \
  --expected-children <count> \
  --manifest <report-dir>/manifest.json \
  --out <report-dir> \
  --start <ISO-time> \
  --cutoff <ISO-time>
  • Pass --expected-children 0 with an empty manifest only when zero children is verified.
  • Inspect the generated usage.json and usage.md to verify child count, matched journals, timestamp bounds, and warnings before quoting totals.
  • When any usage records or child journals are missing, report both the known logged estimate and the unknown remainder, never a complete cost.
  • On non-Pi runtimes, use that runtime's verified session and usage records instead of the Pi JSONL collector.

4. Read the task's evidence

Inspect relevant user requests and corrections, task packets, child conclusions, test/release receipts, and real blockers (sample large logs and cite concrete messages, files, or dated events).

  • Separate user-authored prompts from system notifications and compaction summaries.
  • Evaluate what went well, where friction happened, what in the user's prompting helped or complicated the work, and what the agent should do differently.
  • Attribute failures fairly and label hypotheses as hypotheses.
  • Distinguish calendar duration, summed child run intervals (which overlap and include waits), active tool work, and billed compute.
  • Treat Pi's usage.cost as a lo
Полный SKILL.md на GitHub

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

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

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

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

  • scripts/collect.cjs
  • scripts/collect.test.cjs

FAQ

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

Use when the user invokes a task debrief to verify the agent's completed work and audit its child agents, time, logged model cost, and workflow lessons in a private report.

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

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

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

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

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

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