Skills Explorer Add Skills

agents-debug

An agent skill by aws, from aws/agent-toolkit-for-aws. Tags: ai, cli, debugging, logs, troubleshooting.

What it does

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.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add aws/agent-toolkit-for-aws --skill agents-debug

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/aws/agent-toolkit-for-aws
cp -r agent-toolkit-for-aws/plugins/aws-agents/skills/agents-debug ~/.claude/skills/agents-debug

Safety box score

Grade D, elevated risk: 47 of 100 risk points, rated 2026-10-12. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill is a mostly read-only debugging helper for AgentCore, but it reaches into AWS traces, logs, IAM, and local process state to diagnose failures. The main risks are exposure of sensitive runtime data and a few fix commands that install software system-wide or run with elevated privileges, including one remote `curl | sh` installer.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution3 (high)The skill repeatedly runs shell and CLI commands, and `references/doctor.md` includes a high-risk remote installer pipeline: `curl -LsSf https://astral.sh/uv/install.sh | sh`.
Network access2 (moderate)It contacts external services for diagnostics (`agentcore traces/logs`, `aws logs tail`, `aws sts`, `aws bedrock`) and also downloads software from the internet, so data leaves the machine to AWS and public hosts.
Filesystem reach1 (low)It reads local project and CLI state such as `agentcore/agentcore.json` and `agentcore/.cli/logs/dev/*.log`, and suggests sourcing `~/.bashrc` or `~/.zshrc`.
Secrets & credentials2 (moderate)The core workflow reads traces and logs from AWS (`agentcore traces get`, `agentcore logs`, `aws logs tail`), which can contain prompts, tool inputs, tokens, or other sensitive runtime data.
Privilege & persistence3 (high)`references/doctor.md` includes system-wide installs and service control, such as `npm install -g @aws/agentcore` and `sudo systemctl start docker`, which can change machine-wide state.
Instruction hijack surface0 (none)There is no hidden prompt injection or instruction to ignore higher-level rules; the skill only directs the agent to inspect diagnostics and follow explicit CLI steps.
Irreversible actions0 (none)The skill diagnoses problems and suggests manual fixes, but it does not itself deploy, publish, delete, or message external systems.
Transparency0 (none)All shipped files are plain markdown and readable; there are no binaries, minified blobs, or decoded-at-runtime code.

Before installing

Rated 2026-10-12 by an automated review of 2 files from the skill's repository.

Source

Repository
aws/agent-toolkit-for-aws (all skills from this repository)
Path
plugins/aws-agents/skills/agents-debug/SKILL.md
Branch
main
Collection
aws-agents
Updated
2026-09-19