span-of-control-diagnosticlisted
Install: claude install-skill trycomp-io/comp-skills
## Dual-mode operation (Code + Cowork)
> **HTML pelo design system (obrigatório).** Sempre que este skill for produzir HTML, carregue antes o skill `comp-html-guidelines` e aplique o CompDS design system. Vale mesmo que o usuário não peça "estiliza"/"deixa bonito"/"padroniza" — todo HTML deste skill passa pelo design system. Isso não altera a metodologia abaixo; governa só a camada visual do HTML.
**Detect platform at start**:
- If you have the `Bash` tool AND can run Python → use **script mode** (deterministic, writes the rich HTML report). This is the existing workflow below.
- Otherwise (e.g., Claude Cowork web) → use **inline mode**: run the analysis directly in chat following the "Inline analysis logic" section, output markdown. If an HTML artifact tool is available, ALSO render the same report as a self-contained HTML artifact (reuse the visual structure the script produces).
Both modes apply the same methodology and the same privacy rules.
## Inline analysis logic (Cowork mode)
### Como o usuário fornece os dados
- Cole o org chart no chat ou anexe um CSV/XLSX. Obrigatórias: `employee_id`, `name`, `manager_id`. Opcionais: `area`, `level`. Opcionais críticas pro SoI completo: `ai_agents` (nº agentes IA do time), `automation_pct` (0-100), `complexity` (low/medium/high).
- Org grande (>~50 linhas) é difícil de processar manualmente. Sugira rodar em Claude Code (script mode).
### Metodologia (fixa, idêntica ao script)
1. **Hierarquia**: cada colaborador aponta pro `