promotion-equity-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
- (1) Promoções (obrigatório): coluna `gender`, mais `area`, `level_before`, `level_after`, `date`. (2) População elegível (opcional, mas crítico pra TAXAS): `gender`, `area`. Cole as tabelas ou anexe CSVs.
- Sem população elegível, só dá pra mostrar a distribuição das promoções, não as taxas reais.
- Lista grande (>~50 linhas) é difícil manualmente. Sugira Claude Code (script mode).
### Normalização (igual ao script)
- **Gênero**: `f/fe