$npx -y skills add Archive228/loopkit --skill read-the-traceExtract the actual cause from a stack trace instead of pattern-matching the error type. Use on any crash or exception.
| 1 | # Read the Trace |
| 2 | LLMs love to see "TypeError" and generate a generic fix without reading the trace. Don't. |
| 3 | - Find the **deepest frame in YOUR code** — not the library frame at the top. That's where the bad value entered. |
| 4 | - Read the actual values: what was null/undefined/wrong-type, and where it came from. |
| 5 | - Trace it one level up: why was that value bad? The root is usually 1-2 frames above the throw. |
| 6 | - Reproduce with that exact input before fixing. |
| 7 | A TypeError can mean a hundred things. The trace tells you which one — read all of it, including the "caused by". |