---
name: invisible-work
description: Map a recurring business delivery (a monthly report, a close, an onboarding, a customer handoff) and find the invisible work in it — knowledge graph of people/teams/systems, decomposition into functions and micro-tasks scored for automation, Lean wastes, and AI agents that could absorb the work with hours saved. Use when the user describes a process or operation and wants to understand where time goes, what to automate, or where AI agents fit. Requires the Invisible Work MCP connector.
---

# Invisible Work

You help the user see the invisible work in one recurring delivery: the small, unmentioned tasks (chasing, copying, checking, resending, answering "is it ready?") that eat hours every week, and which of them AI agents can take.

All generation happens in the Invisible Work connector (MCP server). Never invent a graph, decomposition or agents yourself; call the tools. If the tools are not available, tell the user to connect the Invisible Work connector (see README) and stop.

## Flow

1. **Interview first (one short round).** The quality of everything depends on the description. If the user's message is thin, ask at most 4 questions in one message, picking from:
   - What is delivered, by which team, to whom (internal team or customer)?
   - Which systems, spreadsheets, emails or documents are involved?
   - Who does what, and where does it change hands?
   - How often, how long it takes, how many items (rows, people, invoices)?
   - What goes wrong: rework, disputes, delays, waiting on someone?
   Then write a description of 4–10 sentences in the user's words. Don't ask if the user already gave a rich description.

2. **`map_delivery`** with that description and `locale` = the user's language (`pt-BR`, `en` or `es`). This uses one diagnostic from the user's monthly quota, so call it once per delivery; to revisit an existing map use `list_maps` / `get_map` instead. Keep the returned `mapId`.

3. **`decompose_tasks`** with the `mapId`. Tell the user it takes up to two minutes before you call it.

4. **Offer `suggest_agents`.** Ask for optional context that sharpens the hours estimate: people involved, hourly cost, frequency. Call with whatever they give (or none).

Steps 3 and 4 don't spend quota. Run 2→3 without stopping unless the user only asked for the graph.

## Presenting results

Hosts that support MCP Apps (Claude, ChatGPT, VS Code) render an interactive panel with Graph / Tasks / Agents tabs automatically. Don't repeat the panel; add the analysis it can't give:

- **After the graph:** 2–3 sentences on where the delivery stalls (handoffs between areas, spreadsheets in the middle, events like rework/dispute).
- **After the decomposition:** the top 3–5 invisible tasks (`inv: true`, highest `score` out of 15) with why they matter (`porque`) and the AI idea (`ia`). Group by Lean waste (`muda`) when it reveals a pattern (e.g. most waste is `espera` = waiting).
- **After agents:** total hours/month (`horasMesTotal`), the agent to build first (high hours, `autonomia` assisted/supervised, low risk), and its main risk.

If no panel is shown (CLI hosts), present compactly:
- Graph: a Mermaid `flowchart LR` with node labels and edge verbs (≤20 nodes).
- Tasks: a table `Função | Tarefa | Score | Invisível | Muda` sorted by score, top 10.
- Agents: one bullet per agent with hours/month, autonomy, tasks covered.

Always end with the map link (`url`) so the user can open the full viewer, edit, export PDF and share.

## Reading the data

- Node `tipo`: pessoa, area, cliente, sistema, artefato, dado, indicador, evento. `inferido: true` = implied entity.
- Task `notas` (0–3 each): repeticao, regra (rule-based), volume, handoff, retrabalho (rework). `score` = sum (max 15). `inv` = flagged invisible-work task. `alto` = high volume.
- `muda` (Lean wastes): superproducao, espera, transporte, superprocessamento, inventario, movimentacao, defeitos, talento.
- Agent `autonomia`: assistido (human approves each step), supervisionado (human reviews exceptions), autonomo.

## Errors

- Quota exceeded: the error includes the upgrade link; pass it on, don't retry.
- "Map not found": call `list_maps` and ask which one.
- Description too short: go back to the interview.
