Pular para o conteúdo
Skillpedia
Análise e planilhas41 mil · #6608

clean-data-xls

O que ela faz

Esta skill orienta o agente de IA a organizar dados bagunçados em uma planilha antes da análise. É para quem tem uma planilha com formatos inconsistentes, duplicatas ou erros.

Quando usar

  • ✓Quando uma planilha tem nomes, maiúsculas e minúsculas ou formatos de data inconsistentes.
  • ✓Quando os números estão guardados como texto e não somam corretamente.
  • ✓Quando você precisa remover linhas duplicadas antes de analisar os dados.

Link da skill

https://github.com/anthropics/financial-services/blob/main/plugins/vertical-plugins/financial-analysis/skills/clean-data-xls/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/anthropics/financial-services/blob/main/plugins/vertical-plugins/financial-analysis/skills/clean-data-xls/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Limpe esta planilha de vendas bagunçada para que as datas, os números e os nomes dos clientes fiquem consistentes.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente analisa cada coluna, encontra problemas como espaços extras, formatos de data misturados e duplicatas, e propõe as correções antes de aplicá-las. Ele funciona em um complemento do Excel aberto ou diretamente em um arquivo.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Clean Data

Clean messy data in the active sheet or a specified range.

Environment

  • If running inside Excel (Office Add-in / Office JS): Use Office JS directly (Excel.run(async (context) => {...})). Read via range.values, write helper-column formulas via range.formulas = [["=TRIM(A2)"]]. The in-place vs helper-column decision still applies.
  • If operating on a standalone .xlsx file: Use Python/openpyxl.

Workflow

Step 1: Scope

  • If a range is given (e.g. A1:F200), use it
  • Otherwise use the full used range of the active sheet
  • Profile each column: detect its dominant type (text / number / date) and identify outliers

Step 2: Detect issues

Issue What to look for
Whitespace leading/trailing spaces, double spaces
Casing inconsistent casing in categorical columns (usa / USA / Usa)
Number-as-text numeric values stored as text; stray $, ,, % in number cells
Dates mixed formats in the same column (3/8/26, 2026-03-08, March 8 2026)
Duplicates exact-duplicate rows and near-duplicates (case/whitespace differences)
Blanks empty cells in otherwise-populated columns
Mixed types a column that's 98% numbers but has 3 text entries
Encoding mojibake (é, ’), non-printing characters
Errors #REF!, #N/A, #VALUE!, #DIV/0!

Step 3: Propose fixes

Show a summary table before changing anything:

Column Issue Count Proposed Fix

Step 4: Apply

  • Prefer formulas over hardcoded cleaned values — where the cleaned output can be expressed as a formula (e.g. =TRIM(A2), =VALUE(SUBSTITUTE(B2,"$","")), =UPPER(C2), =DATEVALUE(D2)), write the formula in an adjacent helper column rather than computing the result in Python and overwriting the original. This keeps the transformation transparent and auditable.
  • Only overwrite in place with computed values when the user explicitly asks for it, or when no sensible formula equivalent exists (e.g. encoding/mojibake repair)
  • For destructive operations (removing duplicates, filling blanks, overwriting originals), confirm with the user first
  • After each category of fix (whitespace → casing → number conversion → dates → dedup), show the user a sample of what changed and get confirmation before moving to the next category
  • Report a before/after summary of what changed
Perguntas frequentes

Ele muda os meus dados sem mostrar?

Não. A skill propõe as correções primeiro, para que você possa revisá-las antes de serem aplicadas.

Quais problemas ele consegue detectar?

Espaços, maiúsculas e minúsculas, números guardados como texto, datas misturadas, duplicatas, células vazias, tipos misturados, erros de codificação e erros de fórmula.

Ele pode limpar só uma parte da planilha?

Sim. Você pode indicar um intervalo, ou ele usará toda a área utilizada da aba ativa.

Detalhes

Descrição original do autor

Clean up messy spreadsheet data — trim whitespace, fix inconsistent casing, convert numbers-stored-as-text, standardize dates, remove duplicates, and flag mixed-type columns. Use when data is messy, inconsistent, or needs prep before analysis. Triggers on "clean this data", "clean up this sheet", "normalize this data", "fix formatting", "dedupe", "standardize this column", "this data is messy".

repo: anthropics/financial-services

Popularidade

Estrelas no GitHub
41 mil
Posição no ranking
#6608
Licença
Apache-2.0
Atualizada em
28/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas