
Projects프로젝트Three scattered CSVs into one monthly spending table흩어진 CSV 세 개를 월별 지출 표 하나로
Three scattered CSVs into one monthly spending table흩어진 CSV 세 개를 월별 지출 표 하나로
How to have Claude Code build a monthly table by category, plus the code to rerun it.Claude Code에 CSV를 맡겨 월별·분류별 합계 표와 다시 돌릴 코드까지 받는 방법
What was wrong.문제
Three months of spending sit in three separate CSV files, messy on purpose: amounts mix commas and "원" (won), one row has no category and one has no amount.달마다 따로 내려받은 지출 내역 CSV 세 개가 한 폴더에 있습니다. 일부러 지저분하게 만들었습니다 — 금액에 쉼표와 «원»이 섞여 있고, 분류가 빈 행과 금액이 빈 행이 하나씩 있습니다.
What we built만든 것
- A step-by-step guide: install Claude Code, make the example folder, open it, paste one prompt.Claude Code 설치부터 예제 폴더 만들기, 그 폴더에서 Claude Code 열기, 프롬프트 하나 붙여 넣기까지 차례대로 따라 하는 사용법
- A six-rule prompt that asks for summary.md (totals by month and category, plus the rows left out) and summary.py (code to rerun next month).규칙 여섯 가지로 된 프롬프트 — summary.md(월별·분류별 합계 표와 제외한 행 목록)와 summary.py(다음 달에 다시 돌릴 코드)를 받습니다.
- A synthetic example, and an answer key to check the result against.합성 예제와, 결과를 맞춰 볼 정답표
Replay of real run output · the Claude Code CLI on the guide's synthetic example · output shown as is실제 실행 출력의 재생 · 안내서의 합성 예제로 Claude Code CLI 실행 · 출력 그대로


Result.결과
- 01
On 2026-10-07 we ran the step-4 prompt once on the example (Claude Code 2.1.292 · Claude Opus 5.5), without giving it the answer key.2026-10-07에 예제 폴더에서 4단계 프롬프트를 한 번 돌렸습니다. 환경은 Claude Code 2.1.292와 Claude Opus 5.5이고, 정답표는 주지 않았습니다.
- 02
Matched the key: every category value and monthly total, July's "uncategorized" 9,200, the one row left out, and 5 rows read per file. The original CSVs were not changed.정답표와 일치: 세 달의 분류별 금액과 월 합계 전부, 7월 «미분류» 9,200, 제외한 행 1개, 파일마다 읽은 행 수 5. 원본 CSV는 바뀌지 않았습니다.
- 03
Steps 1–3 (install, example folder, login) were not run this time, and it ran in a separate task inside Claude Code, not the interactive screen.1~3단계(설치·예제 폴더 만들기·로그인)는 이번에 해 보지 않았습니다. 프롬프트는 대화형 화면이 아니라 Claude Code 안에서 따로 띄운 작업으로 실행했습니다.
Limits & next한계와 다음 단계
- Steps 4–5 checked once · steps 1–3 not checked4·5단계 한 번 확인 · 1~3단계 미확인