From aws
Tail or search CloudWatch Logs for a discovered role (Lambda or ECS) in a given environment. Use when debugging errors, tailing live logs, or searching log history for an incident.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aws:logsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Retrieve and summarize CloudWatch Logs for a service role in a target environment. Resolve the live log group via the dispatcher before running any AWS command.
Retrieve and summarize CloudWatch Logs for a service role in a target environment. Resolve the live log group via the dispatcher before running any AWS command.
Read .claude/aws-stack.md to identify the correct role name for the service the user is asking about (Lambda function name or ECS task family).
Resolve the role to a live log group and profile. Run:
node ${CLAUDE_PLUGIN_ROOT}/scripts/awsx.mjs resolve <role> --env <env> --json
Parse the JSON output for logGroup, profile, and region.
Print the exact AWS command you are about to run before executing it.
For live tail (default when no search pattern is given), run:
aws logs tail <logGroup> --follow --since 1h --profile <profile> --region <region>
Stop after collecting enough output (30-60 lines) or when the user interrupts.
For log search (when the user provides a pattern or time range), run:
aws logs filter-log-events \
--log-group-name <logGroup> \
--filter-pattern "<pattern>" \
--start-time <epoch-ms> \
--profile <profile> \
--region <region>
Use --end-time when the user specifies a closed window.
Summarize findings in plain language. Report: error count, first and last occurrence timestamps, and the 3 most representative log lines. Do not dump raw log output unfiltered.
--profile and --region on every aws command; never rely on ambient credentials.aws logs tail and aws logs filter-log-events are read-tier. The PreToolUse guard hook classifies them automatically.resolve returns a non-zero exit code, report the error and stop. Do not attempt a fallback profile.awsx discover --env <env> --check to refresh the stack map.npx claudepluginhub rcrsr/awsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.