regretted-attrition-analyzerlisted
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 confidentiality/privacy rules.
## Inline analysis logic (Cowork mode)
### Como o usuário fornece os dados
- Cole uma tabela de desligamentos no chat ou anexe um CSV. Coluna obrigatória: `regretted`. Recomendadas: `area`, `level`, `tenure_months`, `performance_rating` (1-5), `manager_id`, `departure_reason`.
- Lista grande (>~50 linhas) é difícil de processar manualmente. Sugira rodar em Claude Code (script mode).
### Normalização (igual ao script)
- **regretted** → verdadeiro se valor ∈ {`1`, `yes`, `y`, `sim`, `true`, `regretted`, `lamentad