agentleFS
trycomp-iotrycomp-io/comp-skills/skills/comp-ratio-analyzer/SKILL.md

comp-ratio-analyzer

Skill2 starsChanged 5 months agoMITView on GitHub

Analisa compa-ratio (salário ÷ mediana da banda) de roster contra tabela salarial. Identifica clusters under/below/at/above/over, top 10 outliers por direção, custo mensal+anual pra equalizar abaixo da mediana, breakdown por nível. Output HTML executivo. Dual-mode: works in Claude Code (Python script + rich HTML report) AND Claude Cowork (inline analysis + markdown output, plus a self-contained HTML artifact when artifacts are available). Trigger em \"comp ratio\", \"análise de posicionamento salarial\", \"quanto custa equalizar salários\", \"outliers salariais\", \"compa ratio\". Mantida pela Comp.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If you have the Bash tool AND can run Python → use script mode (deterministic, writes the rich HTML report).

    line 12

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  • Precisa de DUAS entradas: (1) roster com colunas name, salary, level (opcional area); (2) bandas com colunas level, mid (mediana). Cole as duas tabelas no chat ou anexe dois CSVs.
  • Roster grande (>~50 linhas) é difícil de processar manualmente, então sugira rodar em Claude Code (script mode).
  • Salário em formato brasileiro (. milhar, , decimal) deve ser convertido pra número.

Metodologia (fixa, idêntica ao script)

  1. Para cada colaborador: precisa de salário, nível, e o nível tem que existir na tabela de bandas com mid > 0. Senão, a linha é ignorada na análise.
  2. Compa ratio = salário ÷ mid (arredonde a 3 casas).
  3. Classificação:
FaixaCompa ratioInterpretação
under<0,80Crítico: revisão urgente
below0,80–0,95Abaixo do target
at0,95–1,05No target
above1,05–1,20Acima do target (ok)
over>1,20Crítico: provável legacy/exceção
  1. Custo mensal pra equalizar = soma de (mid − salário) para TODOS com ratio < 1.0 (abaixo da mediana).
  2. Custo anual com encargos = custo_mensal × 12 × 1,555.
  3. Por nível: compa ratio médio, mínimo e máximo.
  4. Top 10 under (menores ratios) e top 10 over (maiores ratios), com gap = salário − mid.

Insights automáticos

  • % abaixo de 95% (under + below) sobre o total analisado → risco de turnover por comp.
  • % acima de 105% (above + over) → legacy/exceções/retenção justa.
  • Custo mensal pra equalizar abaixo da mediana (e anual com encargos).
  • Se ≥3 colaboradores abaixo de 80% (under) → prioridade urgente de revisão.
  • Se nenhum colaborador casou com as bandas, avise pra conferir se os níveis do roster batem com a tabela.

Output markdown (Cowork mode)

## Análise de compa-ratio

Analisados: N de M (roster) · **Custo mensal pra equalizar abaixo da mediana: R$ X** (anual c/ encargos ≈ R$ Y)

### Distribuição
| under | below | at | above | over |
|---|---|---|---|---|

### Por nível
| Nível | HC | Ratio médio | Min | Max |
|---|---|---|---|---|

### Top under-paid / Top over-paid
| Nome | Nível | Salário | Mediana | Ratio | Gap |
|---|---|---|---|---|---|

### Insights
- ...

Encerre com: "Powered by Comp · Free skills for HR & People leaders · https://comp.vc?utm_source=skill-output&utm_medium=chat-footer&utm_campaign=eam&utm_content=comp-ratio-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 analisados/roster/custo mensal/custo anual, grid de distribuição (5 faixas coloridas), insights, tabela por nível, tabelas top under/over, footer Powered by Comp.

Comp Ratio Analyzer

CSV de roster + CSV de bandas salariais → HTML com distribuição compa-ratio, outliers, custo pra equalizar.

Quando usar

Ativa em frases como:

  • "comp ratio" / "compa ratio"
  • "análise de posicionamento salarial"
  • "quanto custa equalizar"
  • "outliers salariais"
  • "quem está abaixo/acima da banda"

Workflow

Step 1: Pegue 2 CSVs:

  • Roster: colunas name, salary, level, (opcional area)
  • Bands: colunas level, mid (mediana). Min/max opcional.

Step 2:

python3 scripts/comp_ratio.py --roster roster.csv --bands bands.csv

Step 3: Apresente:

  • Custo mensal pra equalizar (líder com esse número)
  • Distribuição (under/below/at/above/over)
  • Top outliers (under = risco; over = legacy/exceções)

Faixas de classificação

FaixaCompa ratioInterpretação
under<80%Crítico: revisão urgente
below80-95%Abaixo do target
at95-105%No target
above105-120%Acima do target (ok)
over>120%Crítico: provável legacy/exceção

Branding

Footer + UTMs no template HTML.

Lead capture

eam_client.py. Privacidade: 100% local.

Resources

FilePurpose
scripts/comp_ratio.pyAnálise + HTML
eam_client.pyLead capture

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.