timeline
Building the timeline section of an incident writeup from raw log files — every warning and error in time order, repeats collapsed, silences marked — by running the script this skill ships rather than reading the logs by eye.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- timeline
- description
- Building the timeline section of an incident writeup from raw log files — every warning and error in time order, repeats collapsed, silences marked — by running the script this skill ships rather than reading the logs by eye.
02 资源文件 1
- 脚本scripts/timeline.py5.1 KB
03 SKILL.md 正文
Timeline
When to use
A task asks for an incident's timeline, or for the first section of a postmortem, and the evidence is one or more log files.
Run the script
This skill ships a script, and running it is the procedure. It reads every line of every log you name and prints the warnings and errors in time order, each repeat collapsed into one line with a count, and every stretch in which no log said anything:
cd "$KINGFISHER_SESSION_ROOT" && python3 "$KINGFISHER_SKILLS/<folder>/scripts/timeline.py" inputs/api.log inputs/worker.log
<folder> is this skill's folder: the path the skill list gave for this file, without
/skills/ in front or /SKILL.md behind. Run it from the session root, as written, and name each log from there: each event
cites the path it was given, so inputs/api.log keeps the write-up free of host
paths. $KINGFISHER_SKILLS is where the shell finds this catalogue. If either is
unset, this deployment cannot run skill scripts — say so, and build the timeline
from grep over the same logs instead.
Add --gap 10 to mark only silences of ten minutes or more; the default is five.
Then
- Start from the first warning, not the first error. The script lists both. A trigger usually shows as a warning minutes before anything fails, and a timeline that opens at the first error hides the window in which somebody could have noticed.
- Treat every marked silence as a finding. A service that stopped logging was either down or unwatched, and the writeup should say which.
- Write each entry as time, what was observed, and where — the file and
line the script prints beside it. That is the shape the
postmortemskill asks for. - Quote from the output through
redactorwhere you have it. The script prints log text as it was logged, tokens included.
What it does not do
It reads lines that begin with a timestamp such as 2026-09-01T14:03:22. A log
in another shape produces no events, and the first line of the output says how
many lines were skipped — a large count means the format is wrong, not the
system quiet. It knows nothing of time zones, so logs from hosts on different
clocks interleave wrongly; check that before trusting the order.
04 同仓库更多 Skills
probe-skill
A skill that exists so seeding has a folder to copy.
semver
How to report versions once they are ordered, and what to do with a string that is not a version or a tie that precedence cannot break.
iso-8601
How to report a date once it has been read, and what to do with one that cannot be read unambiguously.
tabular-qa
Profiling and quality-checking a delimited data file — row and value counts, duplicate and blank detection, outlier rules, and normalising inconsistent categorical values before counting them.
release-notes
Turning a commit range or changelog into release notes written for the people who will read them, grouped by what changed for the user rather than by commit.
postmortem
Writing up an incident after it is resolved — assembling the timeline from logs and messages, separating what happened from why, and producing follow-up actions that name an owner and a trigger rather than an intention.