Skip to content
Agent Orchestration
Skill

/session-retrospective

Analyzes the current implementation run - evaluates schema effectiveness, delegation alignment, note quality, and plan-to-execution fit. Captures cross-session trends and proposes improvements when patterns repeat. Use after implementation runs, or when user says

From plugin
task-orchestrator
21430 skills5 agents2 commands

Claude Code

$ npx -y skills add jpicklyk/task-orchestrator --skill session-retrospective --agent claude-code

SKILL.md

session-retrospective.SKILL.md
name: session-retrospective
description: "Analyzes a closed implementation run (schema, delegation, notes, plan-to-execution), routes defects to items, records cross-run trends and proposes improvements when patterns repeat. Use when a run closes (the hook dispatch directive) or when explicitly asked for a 'retrospective', 'session review' or 'analyze this run'."
argument-hint: "[optional: root item UUID] [--run <runId>]... (repeatable) [--session-dir <dir>] [--dry-run to preview without creating items]"
context: fork
agent: general-purpose
model: sonnet
effort: medium

Session Retrospective

Post-run analysis of five dimensions; findings persist in MCP, defects are routed to items, and trend memory turns repeated findings into proposals. It runs unattended: it asks nobody and carries on, stating a missing input as an assumption in the report.

Call shapes: [`../_generated/call-shapes.md`](../_generated/call-shapes.md); read each write's `data.results[i]` (`ok`, `error.code`). Trigger mechanics: hooks README, "Retrospective firing"; the grammar and thresholds: [`references/metrics.md`](references/metrics.md).

  • [ ] 0 Mode check, 1 Gather scope and run `retro-metrics`
  • [ ] 2 Aggregate, 3 Evaluate (3a-3f), 4 Trend memory
  • [ ] 5 Persist (5a-5d), 6 Update trends, 7 Proposals
  • [ ] 5e Run bug-report (always; the command decides)
  • [ ] 8 Meta-evaluation, 8a Verify adopted proposals, 8b Close, 9 Report

Gate loop, before every `advance`: read the gate (`items_read` `context`), fill what `gateStatus.missing` names, `advance`. On `gate_blocked` re-read, fill the rest, retry once, then report the missing notes and stop.

Step 0 - Mode Check

  • `--dry-run` sets **DRY_RUN**: do steps 1-4 and 9, skip 5-8, and announce `**Dry run** - no items created, no memory updated.`
  • `--run <runId>` scopes the analysis to a run and repeats (`--run A --run B`): the union of the runs' members, one retrospective. It wins over a root UUID.
  • `--session-dir <dir>` is a Claude Code session folder (main transcript `<dir>.jsonl`); without it the session sweep is unmeasured.

Step 1 - Gather Scope and Numbers

**Items.** Per `--run`: `runs_read` `get` (`rootId`, `scopeId`, `marks`), `seats` (`ended: true`) and `frontier`. Members are the distinct seat `itemId`s plus the frontier's `waiting` and `inFlight` ids, deduplicated on 8 hex characters; with none, the `scopeId` overview. A root UUID is the whole scope (`items_read` `list`, `ancestorId`, `limit: 200`). With neither, list `role: terminal` items modified in the last 24h under the project root (`## Project Scope` or `project.rootId`), else unscoped.

**Run marks.** `Run marks: <run8> <keys>` goes in `session-metrics`; `retro-retry` or `retro-failed` is a friction finding, `retro-skipped` reads "triaged low-signal". A run is **stale** only when the dispatch directive says its scope never completed or, for a manual run, when its `scopeId` item is not terminal, `runs_read` `list` (`rootId`) shows no open or paused run with that `scopeId` and its newest run closed over 7 days ago; a scope merely not terminal yet is not stale. A stale run's title is `[stale] Retrospective - ...`, its header `Stale: scope <8hex> never completed - not a delivery review`; 3d reads its unfinished items as abandoned.

**Notes.** Per item (20 at most) `get` `session-tracking` only (delegation figures: `delegations[]`). Defect inputs:

  • **Observations:** `list` `type: agent-observation`, `createdAfter` the earliest run `openedAt` (no `--run`: earliest in-scope `createdAt`, else now minus 24h), `fields: ["summary"]`, `limit: 200`; keep only rows whose title or summary names an in-scope id (8 hex compared; run labels of 8 or more characters count); skip `retro-reported`; `get` `observation-detail` (20 at most).
  • **Review record:** only items with a fix cycle (`after A<n>`) or Deviations or Friction not `none` (at most 10): `get` `orchestrator-confirmation`; for its `follow-up` and `accepted:` lines read the findings register once (`review-checklist`, else the first review note).

**Numbers.** Run the metrics command once (helper resolved as in the run-wave SKILL.md, Step 0) and read every figure from its JSON:

node "<helper>" retro-metrics --root <rootId> --run <runId> [--run <runId>]... [--session-dir "<dir>"]

A `measured: false` document or section is a gap: say so and carry on. No items in scope, or no `session-tracking` note: exit with `No implementation run data found. Nothing to retrospect.`

Step 2 - Aggregate

Outcome distribution and the first-review fail rate (a `Review: pending - verdict in <key>` or `Review: <verdict> after A<n> ...` note counts by the named review note's final verdict), friction, observations, and from the document `fixCycle`, `noteVolume` against its `baselines` and `defects` by `fingerprint`.

Step 3 - Evaluate

Score five dimensions, rules in [`references/evaluation.md`](references/evaluation.md): **3a** schema effectiveness, **3b** delegation alignment (`delegations[]` against the class's model in `task-orchestrator:model-effort`), **3c** note effectiveness (spec gaps; the sample of the longest `implementation-notes`, each sentence derivable or not), **3d** plan-to-execution, **3e** friction themes, **3f** kind (`defect`, `process`, `agent-discipline`, `positive`) and scope (`product`, `global-process`, `project`) of every finding: rubric and F-line format in [`references/routing.md`](references/routing.md).

Step 4 - Trend Memory

Global trends sit under the process-global `Retrospective Trends` container, a depth-0 root item (found, like the other two containers, by unscoped `items_read` `search` for the exact title, keeping only the hit with no parent); a project's under its own `Retrospective Trends` container, tagged `project-<root8>`. No container and `memory/retrospectives.md` holds `- <kebab-key>: ...` lines: run [`references/legacy-trend-migration.md`](references/legacy-trend-migration.md) first; neither: every findi

Read more
@jpicklyk
Ships withtask-orchestrator

Server-enforced workflow discipline for AI agents. Prompt-based frameworks hope the LLM follows instructions. This one blocks the call if it doesn't.

21430 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
214
Star history of jpicklyk/task-orchestrator on GitHub, a chart by star-history.com

Other skills on task-orchestrator.

implement

implement

End-to-end workflow for taking MCP work items from backlog to merged PR. Handles git branching, schema-driven planning,…

perf-review

perf-review

Performance impact assessment for items with the needs-perf-review trait. Evaluates hot paths, query patterns, and measurement…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw7d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca5d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip6d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about session-retrospective.

Which coding agents can use session-retrospective?
session-retrospective installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.