본문으로 건너뛰기
Skillpedia
일반 코딩6.3k · #14243

troubleshoot

하는 일

Atomic Agents 코드의 오류를 단계별로 진단하는 방법을 안내하며, 흔한 오류 메시지를 알려진 해결책과 연결합니다. 에이전트가 충돌하거나 잘못된 결과를 내는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓개발자가 에이전트의 출력 스키마에서 검증 오류를 받을 때.
  • ✓개발자의 에이전트가 빈 출력이나 잘못된 형식의 출력을 반환할 때.
  • ✓개발자가 프레임워크를 업그레이드한 뒤 가져오기 오류를 받을 때.

스킬 링크

https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/troubleshoot/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/troubleshoot/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Atomic Agents 앱에서 출력에 대해 ValidationError가 납니다. 트레이스백은 아래와 같습니다. 무엇이 잘못됐나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 전체 오류와 그것을 만드는 코드를 요청하고, 메시지를 알려진 원인과 맞춘 뒤 수정을 적용하고, 실패한 예제를 다시 실행해 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

  1. 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.
  2. Match against the symptom table below. The quoted strings are the framework's real messages — match on them.
  3. Apply the fix and re-run the failing snippet. Do not declare the problem solved without a passing re-run.
  4. 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-reviewer subagent 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
자주 묻는 질문

전체 오류 메시지가 필요한가요?

네. 스킬은 원인을 추측하기 전에 전체 트레이스백을 요청합니다.

수정이 작동하는지 확인해 주나요?

네. 스킬은 문제가 해결되었다고 말하기 전에 실패한 스니펫을 다시 실행하라고 말합니다.

오류가 목록에 없으면 어떻게 하나요?

실패한 영역에 대한 참고 자료를 보고 그에 따라 추론하라고 스킬은 말합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
6.3k
순위
#14243
라이선스
MIT
업데이트
2026. 10. 29.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬