Claude Code로 배우는 Software Development
Dani Zysman
AI Curriculum Manager @ DataCamp

에이전트는 Claude Code 내에서 전문 AI 어시스턴트 역할을 합니다:
| 에이전트 | 목적 | 사용 시점 |
|---|---|---|
| Explore | 읽기 전용 코드베이스 조사 | "이 아키텍처를 파악해 줘" |
| Plan | 조사 및 전략 수립 | "어떻게 접근해야 할까?" |
| General | 모든 도구를 사용한 작업 실행 | 대부분 작업의 기본값 |
/agents 명령어로 사용 가능한 모든 에이전트를 확인하세요

.claude/agents/code-reviewer.mdname: 에이전트 식별자description: 실행 트리거 조건___
# code-reviewer.md
name: code-reviewer
description: Reviews code for
best practices
___
Check for:
1. Clear naming conventions
2. Proper error handling
3. Performance concerns
> /agents> [Select] Create new agent> [Select] Project level (.claude/agents)> [Select] Generate with Claude (recommended)> Create a code reviewer agent that reviews code for naming, error handling, and performance.
생성된 파일을 검토하고 승인하세요.
music-analytics-api/
app.py
routes.py # <- We'll review this file
models.py
analytics.py
CLAUDE.md
.claude/
agents/
code-reviewer.md # <- Our custom agent
하위 에이전트 없음(직접 처리):
"Fix the bug in routes.py"
-> Claude handles it
"Add validation here"
-> Claude handles it
하위 에이전트 생성:
"Map the architecture"
-> Explore agent
"How should we refactor?"
-> Plan agent
> @code-reviewer review @routes.py
Review Complete
Quick Fixes:
- Remove unused `session` import (line 3)
- Replace hardcoded `* 5` popularity metric with a named constant
Structural Issues:
- Album dictionaries built twice in get_album_stats() and
get_average_tracks() extract to a shared helper
- get_artist_albums() returns empty list if artist doesn't exist;
validate artist first
- No range validation on artist_id parameter
Would you like me to fix any of these?

| 질문 유형 | 처리 방식 |
|---|---|
| "이 함수는 무엇을 하나요?" | Claude가 직접 답변합니다 |
| "이 코드베이스 전체에서 인증은 어떻게 작동하나요?" | Explore 에이전트가 조사합니다 |
| "이 부분을 리팩터링하는 가장 좋은 방법은?" | Plan 에이전트가 조사합니다 |
| "code review @routes.py" | 맞춤 에이전트가 처리합니다 |
Claude Code로 배우는 Software Development