Skip to main content
skill CX Codex

troubleshooting-application-failures — Claude Code skill

A skill that traces application failures through CloudWatch logs: it locates log groups, pulls error patterns and stack traces, then ranks fixes by priority.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aws/agent-toolkit-for-aws --skill troubleshooting-application-failures -a claude-code
Open on GitHub

What troubleshooting-application-failures does

The skill hands your agent a fixed procedure for diagnosing a broken application. It discovers the relevant log groups, searches them for error patterns and stack traces, works out the root cause, and returns remediation steps ordered by priority. The steps live in references/application-failure-troubleshooting.md, and the agent follows them in order.

Logs are the starting point, not the whole picture. When they point at a timeout, a throttle, a retry or a permissions problem, the skill reads the configuration behind it — an API Gateway integration timeout, a queue visibility timeout, a function timeout and its event source mapping. Describe and Get calls like these usually fit inside read-only access.

Your AWS credentials need logs:DescribeLogGroups, logs:DescribeLogStreams, logs:StartQuery and logs:GetQueryResults. Miss any of them and the queries come back as access denied, so check that first. If no log group turns up, the skill asks for exact names; typical ones are /aws/lambda/function-name, /aws/apigateway/api-name or your own application groups. Queries against very large groups can time out — narrow the window or cap the results and run several smaller queries instead.

What it helps with

  • locate the CloudWatch log group of a failing application
  • pull stack traces and recurring errors out of raw log output
  • separate the root cause from follow-on errors
  • connect a timeout or throttle to the setting that causes it
  • get a prioritized list of fixes to apply

Example prompts for the agent

  • The app is failing in production — check the CloudWatch logs and tell me why
  • Dig through the log group /aws/lambda/function-name and suggest what to fix first
  • We keep hitting API Gateway timeouts; inspect the logs and the integration config

How to install troubleshooting-application-failures

1Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill troubleshooting-application-failures -a claude-code

2Manually: put the files in place

~/.claude/skills/troubleshooting-application-failures/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/troubleshooting-application-failures/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about troubleshooting-application-failures

How do I install troubleshooting-application-failures in Claude Code?

Run npx skills add aws/agent-toolkit-for-aws --skill troubleshooting-application-failures -a claude-code. The skill lands at ~/.claude/skills/troubleshooting-application-failures/SKILL.md.

What does troubleshooting-application-failures do?

It diagnoses application failures from CloudWatch logs: finds the log groups, searches for errors and stack traces, identifies the root cause and returns remediation recommendations.

Which AWS permissions does the skill need?

logs:DescribeLogGroups, logs:DescribeLogStreams, logs:StartQuery and logs:GetQueryResults. Without them log queries fail with access denied.

Source text

SKILL.md · Apache-2.0
---
name: troubleshooting-application-failures
description: Troubleshoots failing applications by discovering and analyzing CloudWatch log groups to identify error patterns, root causes, and actionable solutions. Use when an application is experiencing failures and log-based diagnosis is needed.
version: 2
---

# Application Failure Troubleshooting

## Overview

Domain expertise for diagnosing application failures through CloudWatch log analysis.
Discovers relevant log groups, searches for error patterns and stack traces, performs
root cause analysis, and generates prioritized remediation recommendations.

Logs are where the investigation starts, not its boundary. When the logs point at a timeout,
throttle, retry or permission problem, read the configuration that sets it, for example the API
Gateway integration timeout, the queue's visibility timeout, or the function timeout and event
source mapping. Read-only access normally includes these Describe and Get calls.

## Troubleshoot a failing application

To diagnose and resolve application failures using CloudWatch logs, follow the
procedure exactly. See [Application failure troubleshooting procedure](references/application-failure-troubleshooting.md).

## Troubleshooting

### No log groups found

Ask the user for specific log group names. Common patterns: `/aws/lambda/function-name`,
`/aws/apigateway/api-name`, or custom application log groups.

### Access denied errors

Verify AWS credentials have `logs:DescribeLogGroups`, `logs:DescribeLogStreams`,
`logs:StartQuery`, and `logs:GetQueryResults` permissions.

### Query timeouts

Reduce the time window or limit results. Large log groups may require multiple smaller queries.

© aws · Apache-2.0 · aws/agent-toolkit-for-aws

Similar skills

Everything for Cloud: AWS, Azure, GCP →

From the same set133

creating-data-lake-table Creates managed Iceberg tables in Amazon S3 Tables: bucket, namespace, schema, partitioning and access. Useful when data needs an analytics-ready home. CX Codex +1 6,500installs aws-amplify Skill for building and deploying full-stack apps with AWS Amplify Gen2. Configure auth, databases, storage, and AI via TypeScript code — supports React, Next.js, Vue, Flutter, and more. CX Codex +1 6,600installs ingesting-into-data-lake Moves data from S3 files, JDBC databases, DynamoDB, BigQuery, or Snowflake into AWS data lake tables. Defaults to S3 Tables or Iceberg and configures Glue jobs. CX Codex +1 6,600installs connecting-lambda-to-api-gateway A skill that walks the agent through wiring an existing Lambda function into Amazon API Gateway: resources, methods, proxy integration, permissions and deploy. CX Codex +1 6,600installs connecting-lambda-to-dynamodb Connects AWS Lambda functions to DynamoDB tables. Guides IAM execution roles, DynamoDB stream event mappings, and troubleshooting. CX Codex +1 6,500installs troubleshooting-s3-files Diagnoses Amazon S3 Files issues, from mount timeouts and IAM permission errors to sync delays and file conflicts. CX Codex +1 6,300installs launching-ec2-instance-with-best-practices This skill launches EC2 instances with security and cost controls in place. Use it when deploying a new AWS instance and checking its setup after launch. CX Codex +1 6,300installs setting-up-cloudwatch-alarm-notifications Wires CloudWatch alarms to notification channels through SNS: encrypted topics, subscriptions, access policies and alarm actions. CX Codex +1 6,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor