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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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 viarange.values, write helper-column formulas viarange.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".
인기도
- GitHub 스타
- 41k
- 순위
- #6608
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
audit-xls
41k에이전트가 범위, 시트 또는 전체 모델을 대상으로 스프레드시트의 수식 오류, 직접 입력된 숫자, 끊어진 링크를 점검하도록 돕습니다.
earnings-analysis
41k에이전트가 분기 실적에 대한 짧은 실적 업데이트를 작성하도록 돕습니다. 예상치 부합 여부, 핵심 숫자, 수정된 전망을 다룹니다.
earnings-preview
41k에이전트가 기업이 실적을 발표하기 전에 준비하도록 돕습니다. 살펴볼 지표, 강세와 약세 시나리오, 핵심 촉매를 정리합니다.
model-update
41k에이전트가 새로운 실적, 가이던스, 가정으로 재무 모델을 업데이트하고, 가장 중요한 변화를 표시하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.