troubleshoot
Qué hace
Guía un diagnóstico paso a paso de errores en el código de Atomic Agents, relacionando los mensajes de error comunes con soluciones conocidas. Va dirigida a desarrolladores cuyo agente se cae o devuelve resultados incorrectos.
Cuándo usarla
- ✓Cuando un desarrollador recibe un error de validación del esquema de salida de un agente.
- ✓Cuando el agente de un desarrollador devuelve una salida vacía o mal formada.
- ✓Cuando un desarrollador recibe un error de importación después de actualizar el marco.
Link de la skill
https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/troubleshoot/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Mi app de Atomic Agents lanza un ValidationError en la salida. Aquí está el traceback. ¿Qué está mal?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill pide el error completo y el código que lo produce, relaciona el mensaje con una causa conocida, aplica la corrección y vuelve a ejecutar el ejemplo que falla para confirmarla.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Troubleshoot an Atomic Agents App
Diagnostic workflow for the "it's broken" moment. Most atomic-agents failures are one of a dozen known causes with mechanical fixes. Match the symptom, apply the fix, verify by re-running.
Workflow
- Capture the failure. Get the exact traceback or wrong-output sample plus the code that produces it (agent construction, schemas, client wiring). If the user pasted only a fragment of the error, ask for the full traceback before guessing.
- Match against the symptom table below. The quoted strings are the framework's real messages — match on them.
- Apply the fix and re-run the failing snippet. Do not declare the problem solved without a passing re-run.
- No match? Load the reference for the failing area (table at the bottom) and reason from there. For a whole-codebase audit rather than one failure, delegate to the
atomic-reviewersubagent instead.
Symptom table
Import and definition errors
| Symptom | Cause | Fix |
|---|---|---|
ImportError/ModuleNotFoundError on atomic_agents.lib.*, atomic_agents.agents.base_agent, or BaseAgent |
v1 import paths, removed in v2 | Import from the top level: from atomic_agents import AtomicAgent, AgentConfig, BaseIOSchema, BaseTool; context pieces from atomic_agents.context |
ValueError: <Name> must have a non-empty docstring to serve as its description at import time |
BaseIOSchema subclass without a docstring |
Add a docstring describing the schema — it flows into the LLM prompt, so write it for the model |
ValidationError when constructing AgentConfig, complaining about client |
Raw provider SDK client passed; AgentConfig.client requires an Instructor-wrapped client |
Wrap it: instructor.from_openai(...), instructor.from_anthropic(...), instructor.from_genai(...) |
TypeError about missing type parameters, or output typed as BasicChatOutputSchema when a custom schema was expected |
AtomicAgent instantiated without generics |
Write AtomicAgent[InputSchema, OutputSchema](config=...) — the type parameters carry runtime information (they drive Instructor's response_model) |
Provider errors at run time
| Symptom | Cause | Fix |
|---|---|---|
Anthropic error mentioning max_tokens is required |
Anthropic requires it per request | model_api_parameters={"max_tokens": 4096} on AgentConfig |
| Gemini error about invalid role / role ordering | Gemini names the assistant role model |
assistant_role="model" on AgentConfig; use instructor.from_genai(...) with mode=Mode.GENAI_TOOLS and match AgentConfig.mode |
Empty output, None fields, or JSON-parse noise on Groq / Ollama / MiniMax |
Provider needs JSON mode; factory and config modes disagree | Create the client with Mode.JSON and set mode=Mode.JSON on AgentConfig — the two must always match |
| Works on OpenAI, breaks on another provider with no code change | Provider quirks live in AgentConfig, not the agent |
Check the per-provider matrix in framework/references/providers.md |
Wrong or degraded behavior (no exception)
| Symptom | Cause | Fix |
|---|---|---|
Pydantic ValidationError from inside run() after retries |
Model can't satisfy the output schema | Improve field description=s and the schema docstring first; loosen over-tight constraints; only then consider a stronger model. Inspect attempts via the parse:error hook |
| Agent "forgets" earlier turns | Fresh ChatHistory created per call, or none passed |
Create one ChatHistory and reuse it across run() calls |
| Context/cost grows without bound in long sessions | Unbounded history | Set max_context_tokens on AgentConfig — oldest turns are trimmed automatically |
Every run() is slow before the LLM call even starts |
Blocking I/O in a context provider's get_info() |
get_info() runs on every run(); move fetching out, cache, or make the provider hold precomputed state |
history.load(...) "doesn't work" |
Called as a classmethod | load is an instance method that mutates in place: history = ChatHistory(); history.load(saved). dump() returns a JSON string |
MCP interop
| Symptom | Cause | Fix |
|---|---|---|
AttributeError: STREAMABLE_HTTP |
No such member | MCPTransportType.HTTP_STREAM (others: SSE, STDIO) |
| MCP tools fetch but calls fail | Transport/endpoint mismatch | See MCP section of [framework/references/tools.md](../framework/referen |
Preguntas frecuentes
¿Necesita el mensaje de error completo?
Sí. La skill pide el traceback completo antes de adivinar una causa.
¿Confirmará que la corrección funciona?
Sí. La skill dice que hay que volver a ejecutar el fragmento que falla antes de dar el problema por resuelto.
¿Qué pasa si el error no está en su lista?
La skill dice que hay que consultar la referencia del área que falla y razonar a partir de ahí.
Detalles
Descripción original del autor
Diagnose and fix a failing or misbehaving Atomic Agents app — import errors, schema validation failures, empty or malformed LLM output, provider role/mode errors, history and context problems, MCP transport errors. Use when the user reports an error, traceback, or wrong behavior in atomic-agents code, asks "why is my agent not working / crashing / returning garbage", or pastes a `ValidationError`, `ImportError`, or provider API error from an atomic-agents project.
repo: Eigenwise/atomic-agents
Popularidad
- Estrellas en GitHub
- 6,3 mil
- Posición en el ranking
- #14243
- Licencia
- MIT
- Actualizada
- 29/10/2026
Comentarios
- …
Más skills de este repositorio
create-atomic-agent
6,3 milAyuda a tu agente a crear un nuevo agente de Atomic Agents con entrada y salida tipadas, un prompt de sistema y el proveedor de IA elegido.
create-atomic-context-provider
6,3 milAyuda a tu agente a añadir un proveedor de contexto a un agente de Atomic Agents, para que datos recientes como la hora o los documentos recuperados aparezcan en su prompt.
create-atomic-schema
6,3 milAyuda a tu agente a diseñar esquemas tipados de entrada y salida para agentes y herramientas de Atomic Agents, con descripciones claras de los campos.
create-atomic-tool
6,3 milAyuda a tu agente a crear una herramienta tipada para una app de Atomic Agents, como un envoltorio de API o una calculadora que el agente pueda llamar.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.