stacktrace-log-triage
Skill15 starsChanged 9 months agoMITView on GitHub
Diagnose Kotlin + Spring failures from stack traces, startup logs, runtime logs, and related metric anomalies, then separate root cause from wrapper exceptions and propose safe next steps. Use when the application fails to start, an endpoint crashes, logs are noisy or deeply nested, or the agent must produce both a quick mitigation and a proper long-term fix without guessing.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- JetBrains/skillsedited, first seen Apr 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- JetBrains/skills★ 38696% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- ci-cd-containerization-advisorSkill
- configuration-properties-profiles-kotlin-safeSkill
- dependency-conflict-resolverSkill
- domain-decomposition-api-design-advisorSkill
- error-model-validation-architectSkill
- gradle-kotlin-dsl-doctorSkill
- integration-resilience-engineerSkill
- jackson-kotlin-serialization-specialistSkill
- java-kotlin-migration-assistantSkill
- jpa-spring-data-kotlin-mapperSkill
- kotlin-idiomatic-refactorer-spring-awareSkill
- kotlin-spring-proxy-compatibilitySkill
- observability-integratorSkill
- performance-concurrency-advisorSkill
- production-incident-responderSkill
- project-context-ingestionSkill
- schema-migration-plannerSkill
- spring-context-di-reasoningSkill
- spring-kotlin-code-reviewSkill
- spring-mvc-webflux-api-builderSkill
- spring-security-configurator-auditorSkill
- test-suite-builderSkill
- transaction-consistency-designerSkill
- upgrade-breaking-change-navigatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 17 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Always distinguish symptom, proximate cause, and true root cause.
- Distinctive: line 17
Read the full stack trace, not only the top frame.
- Distinctive: line 18
Read the surrounding log lines before and after the first failure.
- Distinctive: line 20
Read recent relevant code or config changes if they are available.
- Very specific: line 42
Treat BeanCreationException, InvocationTargetException, and similar wrappers as transport, not diagnosis.
- Distinctive: line 43
Treat the first user-code frame after framework wrappers as high-signal evidence.
- Distinctive: line 44
Use log chronology, not stack depth alone.
- Distinctive: line 45
If the logs are truncated, say so and lower confidence.
- Distinctive: line 46
Prefer an explanation grounded in the observed code path or configuration over pattern-matching from memory.
- Distinctive: line 50
Check suppressed exceptions, root-cause logging one or two lines above the stack trace, and companion failures on adjacent threads.
- Distinctive: line 56
If metrics exist, correlate the first error spike with latency, pool saturation, or downstream dependency degradation rather than treating …
- Distinctive: line 57
If the symptom appears in reactive or coroutine code, verify whether context propagation broke logging correlation before dismissing …
- Distinctive: line 62
If several candidate causes fit, rank them by evidence, blast radius, and reversibility of the proposed mitigation.
- Distinctive: line 63
If the trace points to a framework wrapper, move outward to code and config that changed recently, then inward again through the causal …
- Distinctive: line 64
Always state what evidence would falsify the leading hypothesis.
- Distinctive: line 80
Do not recommend risky schema changes, version upgrades, or broad refactors as a hotfix unless the incident truly leaves no safer option.
- Distinctive: line 81
Do not claim certainty when the logs are incomplete.
- Distinctive: line 82
Do not ignore alerting or monitoring implications after the fix.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Stacktrace Log Triage
Source mapping: Tier 1 critical skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-15).
Mission
Turn noisy failure evidence into a ranked diagnosis with explicit confidence. Always distinguish symptom, proximate cause, and true root cause.
Gather Evidence First
- Read the full stack trace, not only the top frame.
- Read the surrounding log lines before and after the first failure.
- Capture timestamps, correlation ids, request ids, thread names, and active profiles when available.
- Read recent relevant code or config changes if they are available.
- Reuse repository constraints from
project-context-ingestionwhen possible.
Triage Workflow
- Find the earliest meaningful failure signal.
- Walk the
Caused by:chain until it stops getting more specific. - Classify the incident:
- DI and context startup
- configuration binding
- serialization or validation
- SQL or migration
- HTTP or timeout
- security
- concurrency or locking
- classpath or version mismatch
- Separate what failed from why it failed.
- Rank hypotheses when evidence is incomplete.
- Propose a quick mitigation and a proper fix separately.
Diagnostic Rules
- Treat
BeanCreationException,InvocationTargetException, and similar wrappers as transport, not diagnosis. - Treat the first user-code frame after framework wrappers as high-signal evidence.
- Use log chronology, not stack depth alone.
- If the logs are truncated, say so and lower confidence.
- Prefer an explanation grounded in the observed code path or configuration over pattern-matching from memory.
Advanced Signal Patterns
- Check suppressed exceptions, root-cause logging one or two lines above the stack trace, and companion failures on adjacent threads. The most useful clue is often not in the main stack at all.
- Distinguish hard failures from saturation patterns: connection pool exhaustion, thread pool starvation, event-loop blocking, retry storms, and deadlock retries often show up as secondary symptoms first.
- For SQL failures, inspect vendor codes and SQL state when available. They are often more actionable than the wrapper exception type.
- For startup failures after version or deploy changes, compare classpath and configuration drift before assuming a code bug.
- For intermittent failures, weigh time correlation and concurrency context heavily. A race rarely leaves a clean single-thread narrative.
- For OOM or GC-related incidents, plain stack traces are weak evidence. Thread dumps, heap symptoms, and allocation context matter more.
- If metrics exist, correlate the first error spike with latency, pool saturation, or downstream dependency degradation rather than treating logs in isolation.
- If the symptom appears in reactive or coroutine code, verify whether context propagation broke logging correlation before dismissing missing IDs or misleading thread names.
Expert Heuristics
- The first fix after triage should reduce uncertainty as well as reduce pain. Prefer mitigations that also sharpen diagnosis.
- If several candidate causes fit, rank them by evidence, blast radius, and reversibility of the proposed mitigation.
- If the trace points to a framework wrapper, move outward to code and config that changed recently, then inward again through the causal chain.
- Always state what evidence would falsify the leading hypothesis.
Output Contract
Return these sections:
Root cause: confirmed or most likely cause in plain language.Confidence: confirmed, high, medium, or low.Evidence: the log line, exception, config fact, or code path supporting the diagnosis.Hotfix: the safest immediate containment or unblocking step.Long-term fix: the proper code or configuration correction.Reproduction and verification: how to reproduce, test, and monitor the fix.
Safety Rules
- Label hypotheses as hypotheses.
- Do not recommend risky schema changes, version upgrades, or broad refactors as a hotfix unless the incident truly leaves no safer option.
- Do not claim certainty when the logs are incomplete.
- Do not ignore alerting or monitoring implications after the fix.
Kotlin-Specific Checks
- Watch for platform-type
NullPointerException. - Watch for coroutine stack traces that obscure the original call path.
- Watch for missing Kotlin compiler plugins causing runtime behavior gaps.
- Watch for Jackson plus Kotlin constructor issues that surface as generic deserialization errors.
Quality Bar
A good run of this skill gives the user a path from failure evidence to safe remediation.
A bad run repeats the top exception, ignores the Caused by: chain, or offers a dangerous hotfix without explaining the risk.
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.

