debugging-log-analyser
$
npx mdskill add mohitagw15856/pm-claude-skills/debugging-log-analyserParses raw error logs, stack traces, and crash reports into a structured diagnosis with probable root cause, affected code path, and specific next steps — no hand-waving.
SKILL.md
.github/skills/debugging-log-analyserView on GitHub ↗
--- name: debugging-log-analyser description: "Parse error logs, stack traces, and crash reports into a structured root cause diagnosis. Use when sharing a log, stack trace, error output, or crash dump. Produces a structured diagnosis with probable root cause, affected code path, suggested fix, and next debugging steps." --- # Debugging Log Analyser Skill Parses raw error logs, stack traces, and crash reports into a structured diagnosis with probable root cause, affected code path, and specific next steps — no hand-waving. ## Required Inputs Ask for these if not provided: - **The log / stack trace / error output** (paste directly or describe the error) - **Language and framework** (e.g. Node.js + Express, Python + Django, Java Spring, Go) - **Context** (what changed before this started — e.g. recent deploy, config change, increased traffic, new input data; or "nothing changed" is also useful) - **Frequency** (one-off / intermittent / consistent / regression after a specific change) - **Environment** (local dev / staging / production) - **What they've already tried** (if anything) ## Output Format --- # Debugging Report: [Service/App Name] ### 1. Error Classification **Error type:** [Runtime exception / Build error / Config error / Network error / Memory error / Unknown] **Severity:** [Fatal / Critical / Warning / Informational] **Recurrence pattern:** [One-off / Intermittent / Consistent / On-startup / Under load] ### 2. Stack Trace Analysis Walk the stack frame by frame, starting from the origin: - **Origin frame:** [File, line, function where it started] - **Propagation path:** [How it travelled through the call stack] - **Crash point:** [Where it ultimately threw/panicked/exited] For each significant frame, note whether it is: - User code (fixable here) - Framework/library code (usually a misuse issue) - System/runtime code (usually a config or environment issue) ### 3. Root Cause Assessment **Probable root cause:** [1–2 sentence plain English statement] **Confidence:** [High / Medium / Low — and why] **Alternative causes to rule out:** [If confidence is not high] ### 4. Affected Code Path **Entry point:** [Where the triggering call began] **Key function(s) involved:** [Specific functions/methods named in the trace] **Data that triggered it:** [If inferable from the log — e.g. null value, malformed JSON] ### 5. Suggested Fix Provide a concrete, code-level suggestion: - What to change (the minimal fix) - Why this fixes the root cause - Any trade-offs or risks in the fix - A short code snippet if helpful ### 6. Next Debugging Steps If the root cause is uncertain, provide an ordered list of 3–5 specific debugging actions: 1. [Specific thing to check — file, log line, config value] 2. [Specific reproduction step or isolation test] 3. [Specific tool command — e.g. `strace`, `pprof`, `--verbose`, add logging at X] ### 7. Prevention One or two concrete things that would prevent this class of error recurring: - Better input validation at [point] - Add monitoring/alerting for [condition] - Test that covers [scenario] --- ## Quality Checks - [ ] Root cause is specific (not "there might be a null pointer issue") - [ ] At least one concrete code-level fix is suggested - [ ] Next steps are actionable commands, not vague advice - [ ] Suggested fix references the actual language/framework in the input (not a generic fix that could apply to any language) - [ ] Confidence level includes a stated reason (not just "High" or "Low" with no explanation) - [ ] Prevention is proactive (not just "add error handling") ## Usage Examples - "Why is this crashing?" + [paste log] - "Can you analyse this stack trace?" - "I'm getting this error, what does it mean?" - "Debug this log for me" - "What's causing this exception?"
More from mohitagw15856/pm-claude-skills
- 360-feedback-templateDesign a 360-degree feedback survey or write a structured 360 feedback report. Use when asked to build a 360 feedback process, write 360 feedback for a colleague, design a feedback survey, or produce a feedback report. Produces either a complete survey instrument with rating scales and open-ended questions, or a structured narrative feedback report with themes, strengths, and development areas.
- ab-test-plannerDesign statistically rigorous A/B tests for product features, UI changes, onboarding flows, and pricing experiments. Use when asked to set up an experiment, design an A/B test, calculate sample size, or interpret test results. Produces a complete test plan with hypothesis, variant definitions, sample size, duration estimate, guardrail metrics, and a results interpretation guide.
- accessibility-auditGenerate a WCAG 2.2 accessibility audit checklist and remediation suggestions for any UI or design. Use when asked to audit for accessibility, check WCAG compliance, review a design for a11y issues, or create an accessibility remediation plan. Produces a prioritised checklist with pass/fail assessments and specific fixes.
- account-planBuild a structured account plan for any key customer or target account. Use when asked to create an account plan, key account strategy, strategic account review, or territory plan. Produces a complete account plan with relationship map, growth opportunities, risks, and 90-day action plan.
- aeo-optimizerOptimize an article for Answer Engine Optimization (AEO) — restructuring content so AI engines like ChatGPT, Perplexity, and Claude can extract, quote, and cite it. Rewrites headings as questions, drops 50-80 word answer capsules, audits paragraph length, and flags trust signals. Use when asked to AEO-optimize, make content AI-readable, improve AI citation chances, or adapt an article for answer engines.
- ai-ethics-reviewConduct an ethical review of an AI or ML feature, model, or product. Use when asked to run an AI ethics review, assess AI risks, audit a model for bias, or produce an AI impact assessment. Produces a structured ethics review covering fairness, transparency, privacy, safety, accountability, and societal impact with prioritised mitigations.
- ai-product-canvasStructure AI and ML product decisions with the rigour of any product decision. Use when building AI-powered features, evaluating LLM integrations, designing AI products, or assessing AI readiness. Produces a complete AI product canvas covering problem definition, model approach, data requirements, evaluation framework, UX design, responsible AI checklist, and launch monitoring plan.
- ambiguity-resolverStructure vague opportunities and unclear briefs into actionable one-page problem statements. Use when asked to clarify a vague brief, frame an undefined problem, make sense of an unclear opportunity, or when the user says 'we need to figure out what to do about X' or 'I've been asked to look into Y'. Produces a structured problem brief with reframed questions, scoped boundaries, and a minimum viable research plan.
- api-docs-writerWrite clear, developer-facing API documentation. Use when asked to document an API endpoint, write API reference docs, create a developer guide, or turn a raw spec/Postman collection into documentation. Produces endpoint documentation with descriptions, parameters, request/response examples, and error codes.
- api-versioning-strategyWrite an API versioning strategy document for a service or API platform. Use when asked to define versioning policy, plan API deprecation, classify breaking changes, or document version lifecycle. Produces a complete versioning strategy with breaking-change classification table, deprecation timeline, migration guide template, and client communication template.