Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues. Reads traces and logs to diagnose root causes. Also checks prerequisites when the CLI itself isn't working. Triggers on: "agent not working", "wrong answer", "agent error", "tool call failing", "debug agent", "check logs", "read traces", "broken", "500 error", "424 error", "model access denied", "command not found", "stuck in DELETING", "maxVms exceeded", "cold start diagnosis", "cold start slow", "agentcore create error", "create failed", "exit code 7", "connection refused local dev". Not for deploy failures — use agents-deploy. Not for performance tuning without errors — use agents-optimize. Not for VPC configuration — use agents-build. Not for observability setup or missing logs — use agents-optimize.
$npx -y skills add aws/agent-toolkit-for-aws --skill agents-debugInstalls into the current project.
Run `npx skills use "https://github.com/aws/agent-toolkit-for-aws" --skill "aws/agent-toolkit-for-aws/agents-debug"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/aws/agent-toolkit-for-aws" that are relevant to the current task. Run `npx skills add "https://github.com/aws/agent-toolkit-for-aws"` and select the relevant skills, then follow their instructions.