Desarrollo de software con Claude Code
Dani Zysman
AI Curriculum Manager @ DataCamp

Los agentes son asistentes de IA especializados dentro de Claude Code:
| Agente | Propósito | Cuándo usar |
|---|---|---|
| Explore | Investigación de código en solo lectura | «Map this architecture» |
| Plan | Investigar y definir estrategia | «How should we approach this?» |
| General | Ejecutar tareas con todas las herramientas | Predeterminado para la mayoría |
Usa /agents para listar todos los agentes disponibles

.claude/agents/code-reviewer.mdname: Identificador del agentedescription: Qué lo activa___
# 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.
Revisa y aprueba el archivo generado.
music-analytics-api/
app.py
routes.py # <- Revisaremos este archivo
models.py
analytics.py
CLAUDE.md
.claude/
agents/
code-reviewer.md # <- Nuestro agente personalizado
Sin subagente (trabaja directo):
"Fix the bug in routes.py"
-> Claude lo gestiona
"Add validation here"
-> Claude lo gestiona
Lanza un subagente:
"Map the architecture"
-> Agente Explore
"How should we refactor?"
-> Agente 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?

| Tipo de pregunta | Qué ocurre |
|---|---|
| «What does this function do?» | Claude responde directamente |
| «How does auth work across this codebase?» | El agente Explore investiga |
| «What's the best approach to refactor this?» | El agente Plan investiga |
| «code review @routes.py» | Lo gestiona el agente personalizado |
Desarrollo de software con Claude Code