Command Palette

Search for a command to run...

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

Debug-trace

БесплатноБез исполняемых скриптовНе проверен

Execution breakdown of a request: read it via recent_tasks(limit=3, include_results=true, include_traces=true), skip the task still running, report header «N…

sergeypetrakovот sergeypetrakov362 установки в других каталогах

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

Debug-trace: execution breakdown of a finished request

Formatting rule #1 — no $ before numbers anywhere in the report. The chat renders text between two $ as a math formula: «$6.44 vs $3.93» came out as italic gibberish in a live breakdown. Write amounts as «6.44 USD». Header template: **26 раундов · 6.44 USD · 25 вызовов · 6 ошибок**.

Run the request the user asked for by your normal means — the same tools you would use without this skill — and only then produce the breakdown. This skill owns the reporting half, not the execution half: do the work first, wrap it second.

Workflow (mandatory order)

  1. Perform the request as you normally would, using the agent's tool catalog. Do not change the execution path because this skill is active — the point is to trace what the real run did, not a special one.
  2. Read the just-finished task. Call recent_tasks with limit=3, include_results=True, include_traces=True. The list is newest first, and the runtime records a task the moment it starts: the first entry is usually the task you are in right now — status running, no trace_summary yet. Skip it and take the most recent terminal task. Do not guess or construct a task_id; take it from the list.
  3. Make sure it is the right task.
    • The user asked to break down an earlier run («разбери прогон», «трейс последнего запроса»): the most recent terminal task after the current one is that run.
    • The user asked to do something «в режиме дебага» in this same message: that work happens inside the current task, and its trace exists only after the task finishes. If you ran the work as a subtask (schedule_subagent), report that subtask — it is terminal and has its own trace. Otherwise say plainly that the trace of this request becomes available once the answer is sent, and suggest sending «разбери прогон» as the next message. Never present an older task's trace as this request's.
    • If no suitable task is in the returned list (nothing finished, or no task was recorded), say so plainly: the trace could not be captured for this request. Do not fabricate a trace from memory of what you did.
  4. Build the report from the returned fields (see "What the report holds") and post it as the chat answer, after the normal answer to the request itself.
  5. Before sending, check the draft: no «$» anywhere (rewrite «$6.31» as «6.31 USD», «≤$4» as «≤4 USD»); the header is **N раундов · X USD · K вызовов · E ошибок**; every count appears once. Earlier breakdowns in this chat may use «$» — do not copy them.

The report is a follow-up to the real answer, not a replacement for it. The user gets the answer to their request first, then the breakdown.

What the report holds

The report has two parts, in this order.

Trace (metadata + call sequence)

From the recent_tasks entry, render:

  • task_id — so the run is identifiable.
  • status — the terminal status (completed, failed, interrupted, cancelled, budget_exceeded, …). This is the headline: did it succeed.
  • total_rounds — how many model rounds the run took.
  • result — the outcome text (truncated if long; mark truncation).
  • trace_summary — the compact tool-call trace: how many calls, how many errored, the ordered list of tool calls with their arguments (abbreviated), statuses, exit codes, and any agent reasoning notes. This is the evidence; quote it, do not paraphrase it loosely.

Breakdown (bullet analysis)

A short bullet list, grounded in the trace above, not in general knowledge:

  • Что отработало — the tool calls that succeeded and produced the answer.
  • Сложности — where the run struggled: errored tool calls, retries, a failed or budget_exceeded status, rounds that went nowhere. Name the specific tool call from the trace_summary, not a vague "had problems".
  • Результат — one line: what the user got, in business terms.
  • Как пофиксить — concrete, actionable next steps for the recurring problem the breakdown surfaced (fix an argument, widen a filter, add a missing capability, reword the request). If the run was clean, say so and skip this bullet.

Keep the breakdown short — bullets, not paragraphs. The trace already carries the detail; the breakdown is the verdict on it.

Accuracy rules (each was broken in a live breakdown)

  • The cause of an error comes from that call's own output — the stdout/stderr text in trace_summary / recoveries. Quote the key line verbatim («[!] раздел «known_for»: фраза без номера источника — «…после ухода из «Рамблера»;…»») and explain that. Do not build a story the output does not support (e.g. «ссылка исчезла при перезаписи» when the output says the sentence before «;» has no source number). No output in the trace — say so.
  • Numbers come from the task fields (total_rounds, cost_usd, call and error counts in the trace). Gi
Полный SKILL.md на ClawHub

Установить Debug-trace в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл Debug-trace?

Execution breakdown of a request: read it via recent_tasks(limit=3, include_results=true, include_traces=true), skip the task still running, report header «N раундов · X USD · K вызовов · E ошибок», the trace, then bullets: что отработало, сложности, результат, как пофиксить. Amounts only as «6.31 USD» — never the $ sign: the chat renders text between two $ as a formula.

Как установить скилл Debug-trace?

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

Скилл Debug-trace запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Debug-trace с