timeline-trace-investigator
Skill8 starsChanged 6 months agoMITView on GitHub
Specialized investigator for reconstructing incident timelines from distributed traces, logs, deployments, and metrics. Produces structured TimelineEvidence for the debug conductor. NOT a standalone skill — dispatched by debug-conductor as part of forked debugging.
In this repository129 other files it gives its agents.
- AGENTS.mdAGENTS.md
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- gitlab-cliSkill
- hotfix-charterSkill
- implementation-trackerSkill
- incident-revert-reviewSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- providing-code-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requesting-code-reviewSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- skills-hierarchy-tuningSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- token-estimationSkill
- unified-commit-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
Time window: When was the incident first detected?
- Distinctive: line 80
Look for temporal correlations:
- Distinctive: line 121
No deployment or config changes in window → timeline can't explain the incident alone
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Timeline & Trace Investigator
Role: Reconstruct what happened and when across distributed services. Dispatched by:
debug-conductor— never invoked directly by user. Evidence type:TimelineEvidence(seeskills/_shared/evidence-schema.md)
When to Use
Dispatched by debug-conductor when the incident involves temporal causation — deployment correlations, cascading failures, or event ordering across services.
Investigation Protocol
Step 1: Scope the Timeline
From the incident packet, extract:
- Time window: When was the incident first detected? Add 30-minute buffer on each side.
- Affected services: Which services are in the failure path?
- Trace/correlation IDs: Any specific request IDs to follow?
Step 2: Gather Evidence (Ordered by Signal Strength)
| Source | Tool | Signal Strength | What to Look For |
| Distributed traces | Tracing queries (Jaeger, Zipkin, OTEL) | Highest | Request path, latency breakdown, span errors |
| Deployment history | Git log, CI/CD history | High | Deployments within time window → temporal correlation |
| Application logs | Log search (structured) | High | Error messages, warnings, state transitions |
| Metrics | Metric queries (Prometheus, Datadog) | Medium | Latency spikes, error rate changes, resource utilization |
| Git history | git log --since --until | Medium | Code changes that correlate with incident onset |
Step 3: Reconstruct Timeline
Build a chronological event sequence:
{
"events": [
{ "timestamp": "ISO-8601", "service": "call-router", "event": "deployment v2.3.1", "traceId": null },
{ "timestamp": "ISO-8601", "service": "call-router", "event": "first error logged", "traceId": "abc123" },
{ "timestamp": "ISO-8601", "service": "telephony-gw", "event": "SIP timeout spike", "traceId": null }
]
}Step 4: Identify Gaps
| Gap Type | Detection | Significance |
| Trace gap | Request enters service A, no trace in service B | High — something happened between A and B |
| Time gap | >5 seconds between related events | Medium — unusual delay worth investigating |
| Service gap | Known service in path has no events | High — service may be silently failing |
| Log gap | Expected log entries missing in window | Medium — logging may be broken or delayed |
Step 5: Correlate Events
Look for temporal correlations:
- Deployment timestamp vs. error onset (< 5 min gap = strong correlation)
- Config change vs. behavior change
- Metric spike vs. error spike
- Cross-service event ordering (A happens, then B happens — causal?)
Step 6: Produce Evidence
Return TimelineEvidence to conductor:
{
"events": [ /* chronological event list */ ],
"gaps": [
{ "from": "ISO-8601", "to": "ISO-8601", "service": "string", "explanation": "string | null" }
],
"correlations": [
{ "eventA": "deployment v2.3.1", "eventB": "first SIP timeout", "lagMs": 120000, "suspicious": true }
]
}Plus standard evidence wrapper:
- Supporting evidence: Events that point toward a hypothesis
- Disconfirming evidence: Events that contradict or complicate the hypothesis
- Confidence: Based on trace completeness (% of request path covered)
- Verdict: What the timeline suggests happened
Stop Conditions
- Complete timeline reconstructed (all services accounted for, no critical gaps)
- 3 evidence items collected (sufficient for conductor to work with)
- Token budget exhausted
- Wall-clock limit reached (5 minutes)
Escalation Conditions
- Trace gaps > 30% of expected request path → tell conductor "timeline is incomplete"
- Conflicting timestamps across services (clock skew?) → flag as suspicious
- No deployment or config changes in window → timeline can't explain the incident alone
Common Patterns This Investigator Detects
| Pattern | Evidence Shape |
| Deployment-correlated failure | Deployment event < 30 min before error onset |
| Cascading timeout | Service A timeout → Service B timeout → Service C timeout (each delayed) |
| Event ordering bug | Events arrive out of sequence (checked via trace timestamps) |
| Silent service failure | Service in path has zero events (gap in timeline) |
| Clock skew | Event in Service B "before" the event in Service A that triggered it |
Failure Modes
| Mode | Symptom | Recovery |
| Clock skew | Events appear out of order | Normalize timestamps across services |
| Missing spans | Gaps in trace data | Check sampling rate and instrumentation |
| Correlation error | Linking unrelated events | Verify trace ID propagation |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

