도구 계획하기

Claude Code로 배우는 Software Development

Dani Zysman

AI Curriculum Manager @ DataCamp

API에서 CLI로

동일한 데이터, 두 가지 도구: Web API vs CLI 리포터

Claude Code로 배우는 Software Development

뮤직 애널리틱스 리포터

python reporter.py --artist "AC/DC" --format json --output report.json

recraft: half: 데이터베이스와 파일 출력 아이콘이 있는 CLI 도구 아키텍처를 화이트보드에 스케치하는 개발자

Claude Code로 배우는 Software Development

CLI를 사용하는 이유

recraft: 자동화, 파이프라인, 스크립트, 테스트와 연결되는 CLI 도구

  • 스크립트화 가능: 반복 작업을 자동화합니다
  • 조합 가능: 다른 도구와 연결합니다
  • 파이프라인 준비 완료: CI/CD 시스템에서 작동합니다
Claude Code로 배우는 Software Development

계획 수립: 이전과 이후

순서도: 초기화 → 탐색 → 계획 → 코드 작성

Claude Code로 배우는 Software Development

계획 세션

> /plan
> think about designing reporter.py: artist statistics from Chinook 
(albums, tracks, duration, revenue), exported as JSON or CSV
Plan: reporter.py CLI Tool

Arguments: --artist, --format (json/csv), --output
Data: Query Chinook for albums, tracks, duration, revenue
Validation: Check artist exists before querying
Errors: Handle DB connection failures, missing artists
Output: Write to file or stdout if no --output given
Exit codes: 0 = success, 1 = error
Tests: test_reporter.py covering core functions and edge cases
Claude Code로 배우는 Software Development

Claude의 사양

========================================
MUSIC ANALYTICS REPORTER - SPECIFICATION
========================================
Arguments:    --artist, --format, --output
Validation:   Check artist exists before query
Errors:       Handle DB connection, file permissions
Formats:      JSON (default), CSV
Exit codes:   0 = success, 1 = error

Plan 모드 + 확장 사고 = 명확한 로드맵

Claude Code로 배우는 Software Development

스킬의 통합

excalidraw: 1장부터 4장까지의 스킬 발전 과정

Claude Code로 배우는 Software Development

연습해 봅시다!

Claude Code로 배우는 Software Development

Preparing Video For Download...