본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트41k · #6608

clean-data-xls

하는 일

이 스킬은 분석 전에 스프레드시트의 지저분한 데이터를 정리하도록 AI 에이전트를 안내합니다. 형식이 일관되지 않거나 중복이나 오류가 있는 스프레드시트를 가진 모든 분을 위한 스킬입니다.

사용하는 경우

  • ✓스프레드시트에 이름, 대소문자, 날짜 형식이 일관되지 않을 때.
  • ✓숫자가 텍스트로 저장되어 합산이 되지 않을 때.
  • ✓분석 전에 중복 행을 제거해야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/anthropics/financial-services/blob/main/plugins/vertical-plugins/financial-analysis/skills/clean-data-xls/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 지저분한 매출 시트를 정리해서 날짜, 숫자, 고객 이름이 일관되게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 각 열을 분석해서 앞뒤 공백, 혼합된 날짜 형식, 중복 같은 문제를 찾고, 적용하기 전에 수정안을 제안합니다. 열린 Excel 추가 기능에서 또는 파일에서 작업합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

보여 주지 않고 데이터를 바꾸나요?

아니요. 스킬은 먼저 수정안을 제안하므로, 적용 전에 검토할 수 있습니다.

어떤 문제를 찾을 수 있나요?

공백, 대소문자, 텍스트로 저장된 숫자, 혼합된 날짜, 중복, 빈 값, 혼합된 유형, 인코딩 오류, 수식 오류를 찾을 수 있습니다.

시트의 일부만 정리할 수 있나요?

네. 범위를 지정할 수 있으며, 지정하지 않으면 활성 시트의 사용된 전체 영역을 사용합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
41k
순위
#6608
라이선스
Apache-2.0
업데이트
2026. 10. 28.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬