From sdd-engineering
Use to run a MANUAL retrospective of a multi-agent run (the SDD pipeline or any session with subagents): computes token metrics (input / output / cache-read / cache-creation, cache-hit rate), tool-call counts, durations, and parallelism — INCLUDING nested subagents, whose usage the parent does not count (deep mode reads their journals from disk) — then produces insights + concrete recommendations and appends a trend row to docs/retros/ledger.md. Trigger phrases: 'workflow retro', 'ретро прогону', 'retro the run', '/workflow-retro'. Manual only — never fired by a hook.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdd-engineering:workflow-retroThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Post-run retrospective for multi-agent workflows. The SDD pipeline
Post-run retrospective for multi-agent workflows. The SDD pipeline
(sdd-engineering:spec-creator → sdd-engineering:implementation-planner →
implementers → the review gates, plus nested researchers) is already a
multi-agent run — after it finishes, run this skill to see how the run
actually went. The ledger is the input for cost trend reports.
Optionally: a session id (or journal path) and --shallow. With no session
named, the most recent session journal of the current project is analyzed —
the report must state which one was chosen.
~/.claude/projects/<project-slug>/ where <project-slug> is the session
cwd with / replaced by - (e.g. /home/dev/acme-shop →
-home-dev-acme-shop).<dir>/<session-uuid>.jsonl. If the user did not name
a session, take the most recently modified .jsonl in the project dir
(that is the current session) — confirm the choice in the report.<dir>/<session-uuid>/subagents/agent-<id>.jsonl + agent-<id>.meta.json.
The parent's usage does NOT include subagent tokens, so an in-context
estimate undercounts — deep mode reads these files from disk. --shallow
skips them (and must say so in the report).Never aggregate JSONL in-context (journals are megabytes). Run the bundled aggregator:
python3 "${CLAUDE_SKILL_DIR}/scripts/analyze_journals.py" <session-journal.jsonl> [--shallow] [--json]
The script discovers the session's subagent journals automatically (deep mode), and guarantees the rules the numbers depend on:
usage) multiple times — the script keeps ONE usage per
message uuid (the last occurrence), otherwise all token numbers are
inflated several-fold.agent-*.jsonl):
input_tokens, output_tokens, cache_creation_input_tokens,
cache_read_input_tokens (summed over deduped messages);cache_read / (input + cache_creation + cache_read);tool_use content blocks);timestamp.meta.json (or its journal's
first/last timestamps) it builds [start, end] intervals and reports the
maximum number of simultaneously live subagents plus the total serial
stretch where nothing ran in parallel.--json) — that
is what enters the context.Only fall back to an ad-hoc scratchpad script if the bundled one cannot read a journal format variant — and say so in the report.
Read the aggregated numbers (plus targeted greps into journals when a number looks odd) and answer, concretely:
file_paths) → recommend pre-fetching
it into the orchestrator prompt or the plan.Append ONE row to docs/retros/ledger.md (in the host repository). If the
file does not exist, create it with this header first:
# Workflow retro ledger
One row per analyzed run — the trend of the SDD pipeline over time.
| Date | Run (plan/feature) | Agents | In / Out / CacheRead (tokens) | Cache-hit | Tool-calls | Duration | Max ∥ | Top recommendation |
|---|---|---|---|---|---|---|---|---|
Row values come from §2; Top recommendation is the single highest-leverage
action from §3.
docs/retros/ledger.md and
scratchpad intermediates.Report and recommendations in the user's language; the ledger row in English (repo artifact).
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
npx claudepluginhub yamchinsky/dev-digest-ai-marketplace --plugin sdd-engineering