Dezvoltare software cu Claude Code
Dani Zysman
AI Curriculum Manager @ DataCamp

Agenții sunt asistenți AI specializați în Claude Code:
| Agent | Scop | Când se folosește |
|---|---|---|
| Explore | Investigare codebase doar pentru citire | "Mapează această arhitectură" |
| Plan | Cercetare și strategie | "Cum ar trebui să abordăm asta?" |
| General | Execută sarcini cu toate instrumentele | Implicit pentru majoritatea sarcinilor |
Folosește /agents pentru a lista toți agenții disponibili

.claude/agents/code-reviewer.mdname: identificatorul agentuluidescription: ce îl declanșează___
# 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.
Verifică și aprobă fișierul generat.
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
Fără sub-agent (lucrează direct):
"Fix the bug in routes.py"
-> Claude handles it
"Add validation here"
-> Claude handles it
Generează un sub-agent:
"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?

| Tipul întrebării | Ce se întâmplă |
|---|---|
| "Ce face această funcție?" | Claude răspunde direct |
| "Cum funcționează autentificarea în acest codebase?" | Agentul Explore investighează |
| "Care e cea mai bună abordare pentru refactorizare?" | Agentul Plan cercetează |
| "code review @routes.py" | Gestionat de agentul personalizat |
Dezvoltare software cu Claude Code