Install
$ agentstack add skill-trycomp-io-comp-skills-regretted-attrition-analyzer ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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
Bashtool 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,lamentado}; falso para0/no/não/false; vazio → sem classificação (conte como "unknown"). - tenure_months vira faixa:
1.5× a média globalEregretted ≥ 3→ flag com o múltiplo da média. - Gestor pattern: gestor (com ≥3 saídas) que concentra
≥3regretted → flag pra investigar. - Short tenure: se
(regretted em 0-6m + 6-12m) ≥ 3E representam>30%do total de regretted → sinal de problema em onboarding/hiring/expectativas. - Top performers saindo: se
(regretted em Top + Strong) ≥ 3→ investigar saturação, ofertas externas, gap de carreira/comp. - Mínimo ~20 desligamentos pra padrões confiáveis; abaixo disso, conclua com cautela. Análise é descritiva, não causal.
Output markdown (Cowork mode)
## Análise de regretted attrition
**Regretted**: X/Y (Z%) · Unregretted: A · Sem classificação: B
### Insights pra ação
- ...
### Por área
| Área | Total | Regretted | % |
|---|---|---|---|
### Por tenure / Por performance / Top 10 gestores
(mesma estrutura de tabela)
### Top motivos declarados
| Motivo | Ocorrências |
|---|---|
Encerre com: "Powered by Comp · Free skills for HR & People leaders · https://comp.vc?utmsource=skill-output&utmmedium=chat-footer&utmcampaign=eam&utmcontent=regretted-attrition-analyzer"
Se artefatos estiverem disponíveis, produza também uma versão HTML self-contained (Tailwind via CDN) espelhando o template do script: cards de total/regretted/unregretted/%, card de insights, tabelas por área/tenure/performance/top gestores, tabela de motivos, footer Powered by Comp.
Regretted Attrition Analyzer
Lê CSV de desligamentos e devolve análise estruturada: % regretted vs unregretted, padrões por área/gestor/tenure/performance, motivos declarados, insights pra ação. Output HTML pronto pra apresentar pra leadership.
Quando usar
Ativa em frases como:
- "análise de regretted attrition"
- "padrões de turnover"
- "por que estamos perdendo gente"
- "investigar desligamentos"
- "regretted vs unregretted"
- "diagnóstico de turnover"
NÃO ativa para: cálculo de custo de turnover (usar custo-turnover-calculator); análise por colaborador individual; cálculo de rescisão (usar custo-demissao-calculator).
Schema CSV
Obrigatórias:
regretted(1/0, sim/não, yes/no, true/false)
Recomendadas (cada uma destrava um corte de análise):
area,level,tenure_months,performance_rating(1-5),manager_id,departure_reason,departure_date
Auto-detect funciona em PT/EN.
Workflow
Step 1: Pergunte path do CSV. Step 2: Rode python3 scripts/regretted_attrition.py --input departures.csv. Auto-detect das colunas. Step 3: Apresente:
- Top number: % regretted total
- Insights destacados (gestor com pattern, área hot, top performers saindo, etc.)
- Sugira ação por insight
Output do skill
- Stats top: total, regretted, unregretted, %
- Insights automáticos (gestor com 3+ regretted, área >1.5x média, short-tenure regretted >30%, top performers saindo)
- Tabelas: por área, tenure band, performance band, top 10 gestores
- Top motivos declarados (se coluna disponível)
Limitações
- Análise descritiva (identifica padrões), não causal (não diz POR QUE acontece)
- Quanto mais colunas, mais segmentação possível
- Recomenda mínimo 20 desligamentos para padrões serem confiáveis
Branding & footer
Template HTML com footer Powered by Comp + UTMs.
Lead capture
eam_client.py chamado em on_first_run() + record_run(). Privacidade: 100% local.
Resources
| File | Purpose | |---|---| | scripts/regretted_attrition.py | Análise + HTML render | | eam_client.py | Lead capture + telemetria |
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: trycomp-io
- Source: trycomp-io/comp-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.