debug-root-cause
Systematically find and fix the root cause of bugs, errors, failing tests, and crashes in JavaScript/TypeScript and Python. Use whenever the user pastes an error or stack trace, says something is broken, "not working", "error", "kenapa gagal", "bug", a test fails, or behavior is unexpected — instead of guessing at a fix.
Target: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- Debug: Root Cause First
- 1. Reproduce
- 2. Read the error properly
- 3. Hypothesize, then prove
- 4. Fix at the root
- 5. Prevent regression
- 6. Report
The most common debugging failure is patching the symptom. This skill forces a reproduce → hypothesize → prove → fix loop. Get the exact failing command (test, script, request). Run it yourself and capture the full output. If it doesn't reproduce, stop and gather info: environment, versions (node -v, python --version, lockfile), input data, env vars. Don't fix what you can't see. Make the reproduction as small and fast as possible (a single test, pytest path::testname -x, npx vitest run file -t "name"). Read the whole stack trace. The first frame in the user's own code (not nodemodules / site-packages) is usually where to look. Read the actual code at those lines, plus callers. Common decoders: Cannot read properties of undefined (reading 'x') / AttributeError: 'NoneType' → something upstream returned nothing; find where the value came from. ERRMODULENOTFOUND, ModuleNotFoundError → path, ESM/CJS mismatch, virtualenv not active, missing dependency. UnhandledPromiseRejection, RuntimeWarning: coroutine was never awaited → missing await. Works locally, fails in CI → env vars, timezone, file ordering, node/python version, test isolation. Flaky → shared state between tests, time, randomn
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- KILN-skills/kiln
- Source file
- skills/debug-root-cause/SKILL.md
- Fixed revision
- 555d7ea59d05910b4ef6fb39780da5f906be832b
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: KILN-skills/kiln · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T04:00:15.422Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.