agentleFS
minsniminsni/do-better-workspace/.claude/skills/csv-clean/SKILL.md

csv-clean

Skill0 starsChanged 8 months agoMITView on GitHub

CSV 데이터 품질 정리. 소계행 제거, 숫자 정리, 날짜 정규화, unpivot 등. "데이터 정리", "CSV 정리", "소계 제거", "숫자 정리", "날짜 통일", "unpivot", "csv clean", "데이터 클리닝" 등을 언급하면 자동 실행.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. ilhankilic/yaratai-skill★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

Files
SKILL.md

CSV Data Quality Cleaner

CSV 파일의 데이터 품질 문제를 정리한다. Excel 없이도 독립 사용 가능 (은행 CSV, API 내보내기 등).

Script Location

~/.claude/skills/csv-clean/scripts/csv-clean.py

Prerequisites

pip install pandas>=2.0.0

설치 여부를 먼저 확인하고, 없으면 설치한다.

Workflow

Step 1: CSV 파일 경로 확인

사용자로부터 CSV 파일 경로를 확인한다. 경로가 명확하지 않으면 Glob으로 .csv 파일을 스캔한다.

Step 2: 데이터 품질 분석

python ~/.claude/skills/csv-clean/scripts/csv-clean.py <파일경로> --info

출력 내용:

  • 소계/합계 행 감지
  • 텍스트 형식 숫자 감지
  • 날짜 형식 불일치 감지
  • 크로스탭 구조 감지

Step 3: 감지 결과 해석 및 옵션 제안

분석 결과에 따라 적절한 옵션 조합을 사용자에게 제안한다:

감지 항목제안 옵션
SUBTOTAL_ROWS--remove-subtotals
TEXT_NUMBERS--clean-numbers 또는 --clean-numbers-cols 열1,열2
DATE_FORMATS--normalize-dates --date-cols 열명
CROSSTAB--unpivot ID열1,ID열2

Step 4: 정리 실행

# 소계 행 제거
python ~/.claude/skills/csv-clean/scripts/csv-clean.py <파일> --remove-subtotals

# 숫자 정리 (자동 감지)
python ~/.claude/skills/csv-clean/scripts/csv-clean.py <파일> --clean-numbers

# 특정 열만 숫자 정리
python ~/.claude/skills/csv-clean/scripts/csv-clean.py <파일> --clean-numbers-cols 금액,단가

# 날짜 정규화
python ~/.claude/skills/csv-clean/scripts/csv-clean.py <파일> --normalize-dates --date-cols 날짜

# 크로스탭 -> tidy data
python ~/.claude/skills/csv-clean/scripts/csv-clean.py <파일> --unpivot 지역,제품

# 복합 옵션
python ~/.claude/skills/csv-clean/scripts/csv-clean.py <파일> --remove-subtotals --clean-numbers --normalize-dates

# 출력 경로 지정
python ~/.claude/skills/csv-clean/scripts/csv-clean.py <파일> --output /path/to/output.csv

# 원본 덮어쓰기
python ~/.claude/skills/csv-clean/scripts/csv-clean.py <파일> --inplace

Step 5: 결과 확인

정리 완료 후:

  1. 변경 사항 요약 (행 수 변화, 정리된 값 수)
  2. Read 도구로 첫 5행을 미리보기하여 품질 확인
  3. 원본과 비교하여 의도하지 않은 변경이 없는지 확인

Pipeline Usage

excel-to-csv와 연결하여 사용:

# Excel -> CSV -> 정리
python ~/.claude/skills/excel-to-csv/scripts/excel-to-csv.py file.xlsx --all --flatten-headers
python ~/.claude/skills/csv-clean/scripts/csv-clean.py file.csv --remove-subtotals --clean-numbers

CLI Options

옵션설명
--info데이터 품질 분석만 (변환 안 함)
--remove-subtotals소계/합계 행 제거
--clean-numbers숫자 정리 (자동 감지)
--clean-numbers-cols COLS특정 열만 숫자 정리
--normalize-dates날짜 형식 통일
--date-format FMT날짜 출력 형식 (기본: %Y-%m-%d)
--date-cols COLS날짜 대상 열 지정
--unpivot ID_COLS크로스탭 unpivot
--value-name NAMEunpivot 값 열 이름
--variable-name NAMEunpivot 변수 열 이름
--normalize-text COL=MAPFILE텍스트 표현 통일
--output PATH출력 파일 경로
--inplace원본 덮어쓰기

Output Naming

조건파일명 패턴
기본{원본파일명}_cleaned.csv
--output 지정지정된 경로
--inplace원본 파일 덮어쓰기

Error Handling

  • pandas 미설치 시: pip install pandas>=2.0.0 실행 안내
  • 파일 못 찾음: 경로 확인 안내
  • 열 이름 오류: 사용 가능한 열 목록 표시

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.