/sheet-io:sheet-iofrom sheet-io
Reads, filters, summarizes, and appends rows from a local CSV or public Google Sheet without corrupting data or blowing the token budget. Inspects schema, sample, and stats before loading rows.
Ships in sheet-io. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
공통 규칙 (이 스킬의 모든 단계에 적용)
사용하는 도구
| 도구 | 쓰는 곳 | 꼭 필요? | 없으면 |
|---|---|---|---|
| Python 3 (표준 라이브러리) | scripts/sheet.py inspect · get · append | 예 | 파일을 직접 열어 앞부분만 읽고, 타입 보존 검사는 못 했다고 적는다. 직접 붙일 때도 파일의 원래 인코딩(cp949 · euc-kr · utf-8)으로 쓰고, 파일 전체를 다시 쓰지 않는다 |
| 공개 Google Sheet 링크 | 구글 시트 읽기 | 아니오 | 로컬 CSV 로 진행한다. 비공개면 CSV 로 내려받아 달라고 한다 |
| openpyxl | .xlsx 읽기 | 아니오 | CSV 로 다시 저장해 달라고 한다 |
| gspread + 서비스계정 | 비공개 시트에 쓰기 | 아니오 | CSV 로 내려 append 한 뒤 다시 올리는 길을 안내한다 |
도구 위치. 위 scripts/… 는 사용자 작업 폴더가 아니라 이 플러그인 폴더에 있다. 이 스킬의 기본 폴더 경로 끝에서 skills/sheet-io 를 떼고 scripts/ 를 붙이면 된다. 예: 기본 폴더가 …/sheet-io/skills/sheet-io 이면 도구는 …/sheet-io/scripts/ 안에 있다. 이 절대 경로로 부른다. 그래도 못 찾으면 다른 방법으로 넘어가기 전에 「도구를 못 찾았다」고 결과 맨 위에 적는다.
A spreadsheet plus an AI fails in three specific ways. This skill is the discipline
plus a stdlib-only tool (scripts/sheet.py, no pandas/openpyxl/gspread) that prevents
each. It reads a local CSV or a public Google Sheet (through its CSV export URL,
so there are no credentials to set up).
007 becomes 7), phone numbers turned to scientific notation, dates reformatted, Korean cp949/euc-kr turned to mojibake, and worst of all formulas overwritten by their computed values on write. → Treat identifier-like columns as text, decode with an encoding fallback, and never round-trip a formula as a value.# 1) understand it cheaply (do this before anything else)
python3 scripts/sheet.py inspect data.csv
python3 scripts/sheet.py inspect "https://docs.google.com/spreadsheets/d/<id>/edit#gid=0"
# 2) read only what you need
python3 scripts/sheet.py get data.csv --where status=active --cols name,email --limit 20
# 3) append safely (local CSV), types preserved
python3 scripts/sheet.py append data.csv --row "name=Kim,code=007,phone=01012345678"
inspect infers each column's type and, crucially, marks columns like 007 or a phone
number as text(id) so they are never treated as numbers. A single leading-zero value
forces the whole column to text. It prints a sample and per-column stats, not the whole
sheet, so you spend a handful of tokens instead of thousands.
Paste any Google Sheets URL (.../spreadsheets/d/<id>/edit#gid=<gid>); the tool rewrites
it to the CSV export URL and fetches it. The one requirement: the sheet must be shared
Anyone with the link, Viewer (File > Share). If it isn't, you get an HTML login page
instead of CSV and the tool tells you exactly that. This is read-only, and needs nothing
installed.
inspect the source. Read the schema and sample; confirm which columns are identifiers (text), which are numbers/dates.get only the rows and columns the task needs. Work from that, not the full dump.append to a local CSV (types preserved). To change existing cells, do a targeted update, never a full rewrite.append, re-upload. The auth path (optional, not in this tool): a user-provided service account + gspread (pip install gspread google-auth), share the sheet with the service-account email, then write. Set that up yourself; this skill does not ship credentials.pip install openpyxl, or just Save As CSV first. Most "연동" tasks only need CSV/Google.inspect before reading the whole thing (token-cheap).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hanmariyang/giting-skills --plugin sheet-ioOther plugins' skills for the same job