Work summary

From jpicklyk/task-orchestrator · View interactive version

Work summary is an AI agent skill from the GitHub repository jpicklyk/task-orchestrator. Generates a project dashboard from MCP work items. Default is a lean, attention-first view: what's in flight, what's blocked, what to do next, what's queued. Use when the user says: project status, what's active, show me the dashboard, work summary, what should I work on, project health, what's bloc

How to use this skill

Skill file

Work Summary

Attention-first project dashboard. The default (lean) mode answers four questions - what's moving, what's stuck, what's next, what's queued - in a bounded view (~45 lines) regardless of workspace size. The exhaustive inventory is an explicit mode: mature workspaces accumulate hundreds of terminal items, and rendering them all buries the actionable content.

Every call below is a 4.0 tool call. Shapes are in CODE0 and are not restated here. Every answer is the response envelope: read ok, then data; on ok: false read error.code (an unknown field is unknown_parameter, so a typo fails loudly rather than being ignored). All calls here are reads, so there is no per-element write envelope to check.

Supplement the data with brief observations only for a genuine anomaly or actionable insight.

Director mode

Director mode is the session state entered by /task-orchestrator:director (or by running as the hardened director agent). Runs, decisions and blocked work show on the board, which the director skill renders in director mode for the user to direct: re-invoke /task-orchestrator:director for them. In director mode on the orchestration connection, run the steps below except the Step 0.5 file read (with no session rootId run unscoped), a scoped search with snippets, a docs_read get and any config read, which its guard denies (a docs_read list runs). The hardened director agent has only the director profile, which serves no context, next or history: there run only Lean step 1 (overview), steps 5 and 6 (list), In Flight from items_read list with role work and again with review, items_read blocked, and the Runs reads. Omit every dashboard section whose read was skipped. For the complete dashboard, dispatch ONE background Agent (run_in_background: true, model set) that runs the steps below and reports the rendered dashboard text, never note bodies. A background agent dispatched by a director is not in director mode: it runs the steps below.

Lifecycle-free root

A root is lifecycle-free when every type its own config declares is lifecycle: none: in config effective, every schemas[] entry with configSource: "per-root" has lifecycleMode: "none". When config is not served on the connection, read the work_item_schemas of .taskorchestrator/config.yaml as a file instead. Its items have no role, so role counts and childCounts leave them out and the dashboard below has nothing to show. Render a short inventory from three reads instead.

Total items: ancestorId includes the root itself, so the total is page.total minus one (the root is not an item to report):

{"tool": "items_read", "select": "list", "args": {"ancestorId": "9f3a1c22", "limit": 1}}

The ten most recently modified items (the root itself can be in the answer: skip it, so ask for eleven and keep ten):

{"tool": "items_read", "select": "list", "args": {"ancestorId": "9f3a1c22", "sort": "modifiedAt", "order": "desc", "limit": 11}}

The root's pages (the number of pages is the answer's page.total, not the length of items, which a default page of 50 cuts off):

{"tool": "docs_read", "select": "list", "args": {"rootId": "9f3a1c22", "kind": "page"}}

Show the total items, the number of pages and the ten most recently modified items (title, short id, modified date). Use none of the dashboard headings below and none of their status words: this root has no phases, so no item is waiting, stuck or due.


Step 0 - Mode Selection

| $ARGUMENTS | Mode |

|--------------|------|

| empty | Lean (default) |

| the literal word full | Full Inventory |

| the literal word all | Multi-Project - one condensed section per known project root |

| anything else | Scoped - resolve to a UUID with items_read search (query: $ARGUMENTS, limit: 5, kinds: ["item"]); hits carry no depth, parent or type, so items_read get the top hits before preferring a root or container; if ambiguous, present matches via AskUserQuestion |

Step 0.5 - Project Scope Resolution

Below, "<rootId>" marks a field you include only when a project rootId is known. Scoped mode resolves its own scope per invocation and ignores the project rootId.


Lean Mode (default)

Data collection (all parallel)

  1. Non-terminal roots with childCounts roll-ups (CODE1). excludeTerminal keeps a terminal root that still has open descendants (active work parked under a done container) and drops the rest; page.truncated / page.next page it.
{"tool": "items_read", "select": "overview", "args": {"excludeTerminal": true, "anchorId": "<rootId>"}}
  1. Health: data.active.items (work and review, longest in the role first), data.blocked.items, data.stalled, data.claimSummary (CODE4). blocked holds explicit blocks (blockType: "explicit", with reason and, for awaiting_decision, decisionId) AND open items with an unsatisfied dependency (blockType: "dependency"). Each stalled entry is {id, title, role, missing[], guidanceKey?, skillPointer?}.
{"tool": "items_read", "select": "context", "args": {"ancestorId": "<rootId>", "limit": 100, "fields": ["ancestors"]}}
  1. Recent transitions (the "where did I leave off" signal). The history select has no ancestorId: with no itemId it covers every item the caller may see, so the line is whole-tree even inside a project.
{"tool": "items_read", "select": "history", "args": {"since": "<now minus 48h, ISO 8601>", "limit": 20}}
  1. Ranked recommendations (the default limit is 1, so ask for 5). fields: ["ancestors"] supplies the Container column.
{"tool": "items_read", "select": "next", "args": {"limit": 5, "ancestorId": "<rootId>", "fields": ["ancestors"]}}
  1. The canonical source for queue children. Group rows by parentId; page.total is the true queued count. Subtract rows whose type or tag is container or project (a fresh container sits in queue until its first advance and would inflate N queued). When page.truncated, the headline count is approximate.
{"tool": "items_read", "select": "list", "args": {"role": "queue", "limit": 200, "ancestorId": "<rootId>"}}
  1. The true terminal count is data.page.total.
{"tool": "items_read", "select": "list", "args": {"role": "terminal", "limit": 1, "ancestorId": "<rootId>"}}

Headline counts come from these sources, never from the overview payload (it covers the roots set only and may be truncated).

Runs (only when runs exist)

Issue both reads in parallel and render the section only when either returns a run. A run is a bounded pass over a set of items.

{"tool": "runs_read", "select": "list", "args": {"rootId": "<rootId>", "status": "open"}}
{"tool": "runs_read", "select": "list", "args": {"rootId": "<rootId>", "status": "paused"}}

For each run (cap 5, newest first) read its frontier:

{"tool": "runs_read", "select": "frontier", "args": {"runId": "<run UUID>"}}

data.counts is members by role, ready the members nothing holds back, inFlight the active seats (each with its own stalled flag), waiting the members held back, each {id, reason, decisionId?, blockers?} with a reason of manual, dependency, awaiting_decision or resource; decisionId is present whenever the member's block names a decision, and blockers (short ids) only for dependency. stalled is the orchestrator's flag. A paused run's list entry carries pauseReason. Render one row per run: label or title, short run id, status, counts, ready, in flight (N silent, from the seats' stalled flags), waiting. The word "stalled" is kept for the health stalled items (open items missing notes); a run's seats and orchestrator are "silent".

When the director profile's tools are present (report and runs_read decisions; skip the rest of this section silently otherwise), add per run the open decisions from the rollup, and one decisions line for the root. Every call here is a director-profile call:

{"tool": "report", "select": "rollup", "args": {"runId": "<run UUID>"}, "profile": "director"}

data.decisions.open is the open decisions count. It is run-only and a run rollup always carries it (open: 0 when nothing is open); an anchor rollup has none, and a run rollup has no budget (token and cost budgets were removed in 4.0.1). Render decisions open in the run's row.

{"tool": "runs_read", "select": "decisions", "args": {"rootId": "<rootId>", "limit": 50}, "profile": "director"}

Follow page.next (pass it as cursor) until it is absent. The select has no status filter: keep the summaries whose status is open or acknowledged, count them, and count those with overdue: true. Render Decisions waiting: N (k overdue) just above the Runs table and point at /task-orchestrator:director to answer them; omit the line when N is 0.

Blocked-item decisions

For each health blocked entry with blockType: "explicit" (cap 10), read the item's context. Its item.blockedReason repeats the block reason and decisions[] lists the decisions raised on it as {id, class, status, option?} (withdrawn ones left out). The question text is not in this view: it is a director-profile read (runs_read decision), so show the decision class and status instead. This read supplies decisions[] class and status only; whether the item is resumable comes from the blocked read below.

{"tool": "items_read", "select": "context", "args": {"itemId": "<blocked item id>"}}

When health blocked holds an awaiting_decision entry, read items_read blocked once:

{"tool": "items_read", "select": "blocked", "args": {"ancestorId": "<rootId>", "fields": ["ancestors"]}}

Each awaiting_decision entry carries a server-computed resumable (true when its blocking decision is no longer open or acknowledged). Answering a decision never resumes its item, so flag a resumable one and point at advance op transition with trigger: "resume".

Enrichment

Dashboard format

Render in this order; omit any section with no data.

## ◆ Work Summary

[One sentence: health and momentum.]

**N active · N blocked · N stalled · N queued · N terminal**

### ◉ In Flight
| ID | Item | Container | Status | Pri |
|----|------|-----------|--------|-----|
| `xxxxxxxx` | <title> | <parent title or —> | ◉ work | high |

↳ Recent: <up to 3 one-line transitions from history, newest first; omit if none in 48h>

### ⊘ Attention Required
| ID | Item | Container | Issue |
|----|------|-----------|-------|
| `xxxxxxxx` | <title> | <parent or —> | Blocked by: `<blocker-id>` <blocker-title> |
| `yyyyyyyy` | <title> | <parent or —> | Blocked (awaiting_decision): <class> <status>; resumable |
| `zzzzzzzz` | <title> | <parent or —> | Stalled: missing `<note-key>` |

### ▸ Recommended Next
| ID | Title | Container | Pri |
|----|-------|-----------|-----|

### ⟳ Runs
| Run | Status | Terminal / total | Ready | In flight | Waiting | Decisions open |
|-----|--------|------------------|-------|-----------|---------|----------------|

### ○ Backlog
**Workstreams**
| ID | Workstream | Progress | Next up | Pri |
|----|-----------|----------|---------|-----|

**<Kind>** (N): `id` <title> (pri) · ...           ← groups of 5 or fewer
**<Kind>** (N): X bug · Y optimization — highest: `id` <title> (pri)   ← groups of more than 5

### ✓ Terminal - N terminal items

↳ Hygiene: <N> test artifacts, <N> empty containers - candidates for /batch-complete

Naming a dependency blocker. items_read blocked (ancestorId, fields: ["ancestors"]) returns EVERY blocking dependency of each item as blockers[{id, title?, role?, threshold, satisfied}]; call it only when the health entries are not enough to name the blocker. For an explicit block the Issue text is Blocked (<reason>) with the reason read above.

Lean-mode rules:


Full Inventory Mode (`$ARGUMENTS` = `full`)

Everything lean mode shows, plus the complete per-container inventory.

Data collection

  1. The compact roots list, without includeChildren; page with cursor (page.next) while page.truncated. Each root carries role, statusLabel, childCounts, tags and type but no subtree.
{"tool": "items_read", "select": "overview", "args": {"limit": 200, "anchorId": "<rootId>"}}
  1. Per active container (a non-terminal root whose childCounts show open children), in parallel, a scoped overview. It returns the container, its open children, and any terminal child that still holds open work; childCounts stays full. Each call is bounded to one container.
{"tool": "items_read", "select": "overview", "args": {"itemId": "<root-id>", "excludeTerminal": true}}
  1. Health, recommendations and the two role totals exactly as in lean steps 2, 4, 5 and 6.

Never fetch every root's children in one call (includeChildren: true across the whole tree): on a mature workspace the terminal subtrees exceed the tool-result ceiling. Terminal children are counted from childCounts, never enumerated; to see one container's completed items use Scoped mode on it.

Gate rejections (only with the director profile's tools)

Skip silently without them. One director-profile read, default window 7 days:

{"tool": "report", "select": "gates", "args": {"rootId": "<rootId>", "groupBy": "noteKey", "limit": 3}, "profile": "director"}

Render one line after Attention Required: top gate rejections (7d): <noteKey> N, ... from data.items[] (key.noteKey, blocks); omit it when items is empty.

Note volume (only with the director profile's tools)

Skip silently without them. One director-profile read, default window 7 days:

{"tool": "report", "select": "notes", "args": {"rootId": "<rootId>", "groupBy": "role"}, "profile": "director"}

Render one line after the gate-rejections line: note volume (7d): <role> <bytes> (<share>%), ... from data.items[] (key.role, bytes; the share is each role's bytes over the summed bytes), one entry per role; omit it when items is empty.

Sections, in order

  1. Health Headline, Attention Required, Recommended Next: as in lean mode.
  2. Project Inventory - per active container, from its step-2 fetch:

```

#### <Container Title> <8-char-id>

<role-symbol> <role> · <N open> · <N terminal>

| ID | Title | Status | Pri | Tags | Children |

|----|-------|--------|-----|------|----------|

✓ N terminal - counted from childCounts, not listed

```

  1. Standalone Items - non-terminal childless roots, grouped by the grouping key below.
  2. Terminal - ### ✓ Terminal - N terminal (N from the step 6 count). Split root-level terminal items by statusLabel: **Completed containers:**, **Completed standalone:** (+N more if over 5), and **Cancelled:** listed separately, never as completed work.
  3. Empty containers - **Empty (no items):** <title>, ... at the end if any.

Scoped Mode (`$ARGUMENTS` = UUID or title)

Use the resolved UUID as the scope for a full-inventory-style rendering of one subtree.

{"tool": "items_read", "select": "overview", "args": {"itemId": "<parentId>"}}

Health runs with ancestorId: "<parentId>"; recommendations use parentId: "<parentId>" (direct children) or ancestorId (the whole subtree). Render the Full Inventory sections for that subtree only.


Multi-Project Mode (`$ARGUMENTS` = `all`)

One condensed section per project anchor, for workspaces where several project roots share one database.

{"tool": "items_read", "select": "list", "args": {"type": "project", "depth": 0}}
  1. These are the anchors created by /task-orchestrator:init, /adopt-project-scope or by hand. An anchor tagged personal-root is the personal root; label it (personal).
  2. If none are found, say so and stop: "No project anchors found - run /task-orchestrator:init to bootstrap one, or use /work-summary (no arguments) for the whole-DB view."
  3. For each anchor, in parallel: the anchored overview (anchorId, excludeTerminal: true), health with ancestorId, and next with limit: 3 and ancestorId.
### ◆ <Project Name> (`<8-char-id>`)
N active · N blocked · N queued

**Attention:** <up to 2 blocked/stalled items, or "none">
**Next up:** <top next result, or "nothing queued">

Keep each section condensed - a cross-project scan, not a deep dive. Point at /work-summary for the full dashboard on any one project.


Shared Rendering Rules

Status symbols: ✓ terminal · ◉ work/review · ⊘ blocked/stalled · ○ queue.

Short IDs: compact views already carry 8-hex ids; render them in backticks. Truncate full UUIDs (run ids, history itemId, blockers[].id from items_read blocked) to their first 8 characters. Use — for empty values, not 0. Priority renders high / med / low.

Grouping key (standalone items, all modes): type if set; else the first tag not in {agent-observation, feature, container}; else "Uncategorized".

statusLabel: the role drives the symbol. Print the label only for a non-terminal item whose label differs from the role default; never on terminal items.

Cancelled is not done: wherever terminal items are broken down, count statusLabel: "cancelled" separately.

Truncation: if any response had page.truncated that paging could not resolve, end the dashboard with ⚠ showing X of Y - never silently drop data.

Observations: sparingly. A healthy project needs zero.

Internal: short ID to full UUID

Do NOT render a UUID table. Keep the short-to-full mapping as internal context; when the user cites a short id ("start 0499a6aa"), resolve it silently from the data already collected (every id field accepts 8 hex characters; an ambiguous prefix is ambiguous_id).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.