agents-debug
Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues.
Skill by aws-agentcoreOfficial
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/aws-agents-debug
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, cloud, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agents-debug
Tools it pre-approves 4
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
ReadGrepGlobBash
What's inside
- Skill name
agents-debug- Description
- 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.
- License
- Apache-2.0
- Allowed tools
- Read, Grep, Glob, Bash
- Metadata
- type: skill · author: aws-agentcore · version: 1.0.0 · requires-cli: >=0.9.0
- Instructions
- 699 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves any shell command
- Instructions call the network
Agent Skills spec issues
- body: 699 lines (spec recommends under 500)
- files: referenced but missing: references/vpc.md, references/limits.md, references/memory.md, references/integrate.md, references/multi-agent.md
Files (2)
- SKILL.md
- doctor.md · references/
SKILL.md (first lines)
# debug Diagnose why your AgentCore agent or environment isn't working correctly. ## When to use - Your agent is returning wrong answers or errors - Tool calls are failing or timing out - Agent works locally but fails after deploying - Logs aren't showing up in CloudWatch - The AgentCore CLI isn't working or environment seems broken - `agentcore` command not found or prerequisites are missing Do NOT use for: - Deploy failures (CDK errors, IAM during deploy) → use `agents-deploy` - Scaffolding a new project → use `agents-get-started` - Measuring quality or setting up monitoring → use `agents-optimize` ## Input `$ARGUMENTS` is optional: ``` /agents-debug # interactive — describe what's wrong /agents-debug traces # read and explain recent traces /agents-debug logs # search recent logs for errors /agents-debug memory # diagnose memory recall issues specifically /agents-debug doctor # check environment prerequisites ``` ## Process ### Step 0: Determine problem type If the developer's issue is about the CLI itself (command not found, prerequisites, environment setup), load [`references/doctor.md`](references/doctor.md) and follow its diagnostic checklist. If the issue is about agent behavior (wrong answers, errors, timeouts, tool failures), continue with Step 1 below. ### Step 1: Verify CLI version Run `agentcore --version`. This skill requires v0.9.0 or later. If the version is older, tell the developer to run `agentcore update` before proceeding. ### Step 2: Understand the symptom Ask (or infer from context): > "What's happening? > > 1. The agent returns an error message > 2. The agent returns a wrong or unhelpful answer > 3. A specific tool call is failing > 4. Memory isn't working (agent doesn't remember things) > 5. The agent is slow or timing out > 6. I want to understand what the agent did in a specific session" ### Step 3: Read traces and logs automatically Don't ask the developer to paste logs — read them directly. ```bash # List recent traces agentcore traces list --runtime <AgentName> --since 1h # Get the most recent trace ID agentcore traces list --runtime <AgentName> --since 1h --limit 1 # Download and read the trace agentcore traces get <traceId> --runtime <AgentName> # Search logs for errors agentcore logs --runtime <AgentName> --since 1h --level error # Search logs for a specific pattern agentcore logs --runtime <AgentName> --since 2h --query "timeout" agentcore logs --runtime <AgentName> --since 2h --query "model access" ``` **Important:** CloudWatch put-to-get latency is **~10 seconds end-to-end** — that's the delay from when a span is emitted to when it's readable by `agentcore traces get` or `agentcore run eval`. There is **no separate "trace ingested but eval not ready yet" window**; the same ingestion step unlocks both paths. Older skills and docs said 30–60s for traces and 2–5 minutes for evals — both are stale. If you just invoked the agent, wait ~15 seconds and both trace reads and evals will work. Read `agentcore/agentcore.json` to get the agent name if not provided. ### Step 4: Diagnose by symptom --- ## Symptom: "model access denied" or model error **Most common cause:** The model isn't enabled in the Bedrock console for your region. Fix: 1. Go to AWS Console → Amazon Bedrock → Model access 2. Enable the model your agent uses 3. Wait 1–2 minutes for access to propagate **Second cause:** The execution role is missing `bedrock:InvokeModel`. Check: ```bash aws iam simulate-principal-policy \ --policy-source-arn $(agentcore status --json | jq -r '.runtimes[0].executionRoleArn') \ --action-names bedrock:InvokeModel \ --resource-arns "arn:aws:bedrock:*::foundation-model/*" ``` **Third cause:** Cross-region inference profile requires model access in all regions. Model IDs starting with a geographic prefix are cross-region inference profiles that route requests within that geography: | Prefix | Geography | Example destination regions | |---|---|---| | `us.` | United States | us-east-1, us-east-2, us-west-2 | | `eu.` | Europe | eu-central-1, eu-west-1, eu-west-2, eu-west-3 | | `apac.` | Asia Pacific | ap-northeast-1, ap-southeast-1, ap-southeast-2, ap-south-1 | | `global.` | All commercial regions worldwide | All supported regions | The AgentCore CLI scaffolds `global.` by default (e.g., `global.anthropic.claude-sonnet-4-5-20250929-v1:0`). All prefixes require model access enabled in every destination region the profile covers. For `us.` profiles, enable in all US regions; for `eu.`, all EU regions; for `global.`, all supported regions. Not all models support all prefixes — `global.` is currently available for select models only. Use `global.` for maximum throughput when available, or a geographic prefix when data residency requirements constrain where inference can run. Check the Bedrock inference profiles docs for current model × prefix availability.
From aws/agent-toolkit-for-aws, Apache-2.0.
More from aws/agent-toolkit-for-aws
- 0.843score
agents-build
aws-agentcoreOfficial
Use to extend an existing agent project with memory, app integration, VPC, multi-agent, migration, model, browser, code interpreter, payments, or resource…
SkillAFreshness: A★ 3KClaude Code +9 - 0.782score
agents-pay
aws-agentcoreOfficial
Use when THIS agent needs to pay for x402-protected content at runtime: hitting a paywall mid-task, settling it via AgentCore Payments, and applying…
SkillBFreshness: B★ 3KClaude Code +9 - 0.739score
agents-optimize
aws-agentcoreOfficial
Use when measuring or improving agent quality and performance — set up evaluators, online monitoring, CI/CD quality gates, observability, or cost optimization.
SkillCFreshness: C★ 3KClaude Code +9 - 0.739score
agents-deploy
aws-agentcoreOfficial
Use when deploying your agent to AWS, or when a deploy has failed.
SkillCFreshness: C★ 3KClaude Code +9 - 0.734score
agents-get-started
aws-agentcoreOfficial
Use when a developer wants to create a new agent project or get started with AgentCore.
SkillCFreshness: C★ 3KClaude Code +9 - 0.724score
agents-harden
aws-agentcoreOfficial
Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate…
SkillCFreshness: C★ 3KClaude Code +9 - 0.724score
aws-transform
AWSOfficial
Performs code upgrades, migrations, and transformations using the AWS Transform (ATX) CLI.
SkillCFreshness: C★ 3KClaude Code +9 - 0.700score
agents-connect
aws-agentcoreOfficial
Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies.
SkillCFreshness: C★ 3KClaude Code +9 - 0.682score
knowledge-base-for-startups
awsOfficial
AWS Startups reference content — Activate FAQ, credits guide, programs, partner offers, sample architectures, and hundreds of learn articles spanning…
SkillAFreshness: A★ 3KClaude Code +9 - 0.682score
aws-sms-voice
awsOfficial
Onboards RCS Business Messaging and Notify OTP via the pinpoint-sms-voice-v2 AWS CLI.
SkillAFreshness: A★ 3KClaude Code +9 - 0.682score
agent-advisor
awsOfficial
Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one phased flow.
SkillAFreshness: A★ 3KClaude Code +9 - 0.682score
prompt-library-for-startups
awsOfficial
AWS-curated copy-paste prompts for AI coding agents (MVP scaffolding, RAG chatbot with Claude on Bedrock, security baseline evaluation, cost anomaly…
SkillAFreshness: A★ 3KClaude Code +9
Signals
- Stars
- 3,049
- Forks
- 394
- Open issues
- 40
- Last commit (this folder)
- May 4, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- Apache-2.0
- Repository
- github.com/aws/agent-toolkit-for-aws
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from aws-agentcore
- 0.843score
agents-build
aws-agentcoreOfficial
Use to extend an existing agent project with memory, app integration, VPC, multi-agent, migration, model, browser, code interpreter, payments, or resource…
SkillAFreshness: A★ 3KClaude Code +9 - 0.782score
agents-pay
aws-agentcoreOfficial
Use when THIS agent needs to pay for x402-protected content at runtime: hitting a paywall mid-task, settling it via AgentCore Payments, and applying…
SkillBFreshness: B★ 3KClaude Code +9 - 0.739score
agents-optimize
aws-agentcoreOfficial
Use when measuring or improving agent quality and performance — set up evaluators, online monitoring, CI/CD quality gates, observability, or cost optimization.
SkillCFreshness: C★ 3KClaude Code +9 - 0.739score
agents-deploy
aws-agentcoreOfficial
Use when deploying your agent to AWS, or when a deploy has failed.
SkillCFreshness: C★ 3KClaude Code +9 - 0.734score
agents-get-started
aws-agentcoreOfficial
Use when a developer wants to create a new agent project or get started with AgentCore.
SkillCFreshness: C★ 3KClaude Code +9 - 0.724score
agents-harden
aws-agentcoreOfficial
Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate…
SkillCFreshness: C★ 3KClaude Code +9
Cite this page
agents-debug skill. Agent Mart. https://agentmart.dev/skills/aws-agents-debug (last updated 2026-10-24)