Vývoj softwaru s Claude Code
Dani Zysman
AI Curriculum Manager @ DataCamp

Agenti jsou specializovaní AI asistenti v Claude Code:
| Agent | Účel | Kdy použít |
|---|---|---|
| Explore | Prozkoumání kódové báze jen pro čtení | „Zmapuj tuhle architekturu" |
| Plan | Výzkum a strategie | „Jak bychom to měli řešit?" |
| General | Provádí úkoly se všemi nástroji | Výchozí pro většinu úkolů |
Příkazem /agents zobrazíš všechny dostupné agenty

.claude/agents/code-reviewer.mdname: identifikátor agentadescription: co ho spouští___
# 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.
Zkontroluj a schval vygenerovaný soubor.
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
Bez sub-agenta (pracuje přímo):
"Fix the bug in routes.py"
-> Claude handles it
"Add validation here"
-> Claude handles it
Spouští sub-agenta:
"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?

| Typ dotazu | Co se stane |
|---|---|
| „Co dělá tahle funkce?" | Claude odpoví přímo |
| „Jak funguje autentizace v tomhle kódu?" | Prozkoumá to agent Explore |
| „Jaký je nejlepší postup refaktoringu?" | Prozkoumá to agent Plan |
| "code review @routes.py" | Zpracuje to vlastní agent |
Vývoj softwaru s Claude Code