Розробка ПЗ з Claude Code
Dani Zysman
AI Curriculum Manager @ DataCamp

Агенти — це спеціалізовані AI-помічники в Claude Code:
| Агент | Призначення | Коли використовувати |
|---|---|---|
| Explore | Дослідження коду (лише читання) | "Map this architecture" |
| Plan | Дослідження та стратегія | "How should we approach this?" |
| 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 # <- Ми перевірятимемо цей файл
models.py
analytics.py
CLAUDE.md
.claude/
agents/
code-reviewer.md # <- Наш кастомний агент
Без підагента (виконує напряму):
"Fix the bug in routes.py"
-> Claude виконує
"Add validation here"
-> Claude виконує
Створює підагента:
"Map the architecture"
-> агент Explore
"How should we refactor?"
-> агент Plan
> @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?

| Тип запитання | Що відбувається |
|---|---|
| "What does this function do?" | Claude відповідає напряму |
| "How does auth work across this codebase?" | Агент Explore досліджує |
| "What's the best approach to refactor this?" | Агент Plan досліджує |
| "code review @routes.py" | Обробляє кастомний агент |
Розробка ПЗ з Claude Code