From sc-rust
Analyzes Rust application logs across three environments: host filesystem (local), Docker containers (docker), and remote production server (prod via SSH). Works with tracing subscriber output (compact, pretty, JSON), env_logger output, actix-web/axum/tower-http request logs, and panic! backtraces. Auto-discovers Docker containers running the Rust binary. Use when the user says "check logs", "Rust errors", "find in logs", "log summary", "panics in prod", "analyze logs", "what's wrong in prod", "tracing output". Do NOT use for application debugging (use aidd-dev:08-debug), cargo build errors (run cargo check/clippy directly), or performance profiling.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sc-rust:log-analysisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Inspects Rust application logs from any environment — local filesystem, Docker containers, or a remote server via SSH. Produces a raw tail, filtered error list, pattern search, or period summary. Handles tracing subscriber output, env_logger, actix-web/axum request logs, and panic backtraces.
Inspects Rust application logs from any environment — local filesystem, Docker containers, or a remote server via SSH. Produces a raw tail, filtered error list, pattern search, or period summary. Handles tracing subscriber output, env_logger, actix-web/axum request logs, and panic backtraces.
| # | Action | Role | Input |
|---|---|---|---|
| 01 | tail | Display the last N lines from a log source | env, source, optional lines |
| 02 | parse-errors | Extract and group panics, ERROR-level events, and 5xx responses | env, source, optional since |
| 03 | search | Search for a pattern, span name, or HTTP status code | pattern, optional env, source |
| 04 | summarize | Period digest: error rate, top panics, span timing summary | optional env, optional since |
Non-sequential — dispatch based on user intent:
tailparse-errorssearchsummarizelocal, docker, or prod?tail on app, then offer parse-errorsenv is docker when Docker is detected in the project; otherwise local.prod: if no SSH host is configured, ask user for user@host before proceeding.tracing-subscriber JSON layer): parse as NDJSON before displaying.references/environments.md — env detection, standard log paths, SSH config patternreferences/log-formats.md — tracing/env_logger/actix-web log formats and parsing patternsnpx claudepluginhub rebellioussmile/my-claude-marketplace --plugin sc-rustGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.