From sc-python
Analyzes Python application logs across three environments: host filesystem (local), Docker containers (docker), and remote production server (prod via SSH). Works with Django request logs, uvicorn/gunicorn access logs, Python tracebacks, structlog JSON output, and Celery task logs. Auto-discovers Docker containers. Use when the user says "check logs", "Python errors", "find in logs", "log summary", "500 errors", "traceback in prod", "analyze logs", "what's wrong in prod". Do NOT use for application debugging (use aidd-dev:08-debug), DB queries (use data-optimize), or performance profiling.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sc-python:log-analysisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Inspects Python 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 Python tracebacks, Django request logs, uvicorn/gunicorn access logs, structlog JSON, and Celery task logs.
Inspects Python 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 Python tracebacks, Django request logs, uvicorn/gunicorn access logs, structlog JSON, and Celery task logs.
| # | Action | Role | Input |
|---|---|---|---|
| 01 | tail | Display the last N lines from a log source | env, source, optional lines |
| 02 | parse-errors | Extract and group Python exceptions and HTTP errors | env, source, optional since |
| 03 | search | Search for a pattern, status code, or time range | pattern, optional env, source |
| 04 | summarize | Period digest: error rate, top exceptions, 5xx count | optional env, optional since |
Non-sequential — dispatch based on user intent:
tailparse-errorssearchsummarizelocal, docker, or prod?tail on app + web-server, 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.references/environments.md — env detection, standard log paths, SSH config patternreferences/log-formats.md — Python/Django/uvicorn log formats and parsing patternsnpx claudepluginhub rebellioussmile/my-claude-marketplace --plugin sc-pythonGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.