AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Regretted Attrition Analyzer

skill-trycomp-io-comp-skills-regretted-attrition-analyzer · by trycomp-io

Analisa CSV de desligamentos e identifica padrões em regretted vs unregretted: top correlated factors (área, gestor, tenure, performance, nível), motivos declarados, insights pra ação. Output HTML executivo defensável pra CHRO levar pro CEO. Dual-mode: works in Claude Code (Python script + rich HTML report) AND Claude Cowork (inline analysis + markdown output, plus a self-contained HTML artifact…

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-trycomp-io-comp-skills-regretted-attrition-analyzer

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-trycomp-io-comp-skills-regretted-attrition-analyzer)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Regretted Attrition Analyzer? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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 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, lamentado}; falso para 0/no/não/false; vazio → sem classificação (conte como "unknown").
  • tenure_months vira faixa: 1.5× a média global E regretted ≥ 3 → flag com o múltiplo da média.
  • Gestor pattern: gestor (com ≥3 saídas) que concentra ≥3 regretted → flag pra investigar.
  • Short tenure: se (regretted em 0-6m + 6-12m) ≥ 3 E 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.