AGENT SKILL
log-analysis
Tail, parse, search, and summarize local, containerized, or remote Rust application logs.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- log-analysis
- tags
- [ "backend", "audit", "rust" ]
- author
- François-Xavier Guillois
- version
- 0.5.2
- description
- Tail, parse, search, and summarize local, containerized, or remote Rust application logs.
- permissions
- [ "bash", "files" ]
- vibe_version
- >=1.0.0
02 资源文件 7
- 参考文档actions/01-tail.md2.1 KB
- 参考文档actions/02-parse-errors.md2.5 KB
- 参考文档actions/03-search.md2.3 KB
- 参考文档actions/04-summarize.md2.2 KB
- 参考文档evals/scenarios.json1.5 KB
- 参考文档references/environments.md2.7 KB
- 参考文档references/log-formats.md3.6 KB
03 SKILL.md 正文
Read host portability before resolving plugin files, invoking sibling skills, or persisting project guidance.
Log Analysis
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.
Available actions
| # | 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 |
Default flow
Non-sequential — dispatch based on user intent:
- "tail / show / last lines / recent logs / check logs" →
tail - "errors / panics / error list / backtraces" →
parse-errors - "find / search / grep / [specific pattern or span or status code]" →
search - "summary / digest / report / stats" →
summarize - Env not specified → ask:
local,docker, orprod? - No clear intent →
tailonapp, then offerparse-errors
Transversal rules
- Never print or log SSH credentials, passwords, or key paths.
- Always show timestamps in output.
- Truncate individual log lines to 300 chars to avoid flooding context.
- When errors are found, always suggest a likely fix or next investigation step.
- Default
envisdockerwhen Docker is detected in the project; otherwiselocal. - For
prod: if no SSH host is configured, ask user foruser@hostbefore proceeding. - Panic backtraces must be kept intact — never truncate mid-frame.
- JSON-format tracing output (from
tracing-subscriberJSON layer): parse as NDJSON before displaying.
References
references/environments.md— env detection, standard log paths, SSH config patternreferences/log-formats.md— tracing/env_logger/actix-web log formats and parsing patterns
04 同仓库更多 Skills
web-optimize
暂无简介
★ 1
data-optimize
暂无简介
★ 1
ap-optimize
暂无简介
★ 1
web-optimize
暂无简介
★ 1
data-optimize
暂无简介
★ 1
ap-optimize
暂无简介
★ 1