What problem does it solve?
When investigating JavaScript or TypeScript stack traces, engineers often miss language-specific failure modes like async boundary issues, undefined property access, JSON parsing errors, or module resolution problems. This Skill provides a structured probe that produces targeted checks, reproduction commands, and patch targets for JS/TS traces.
Core Features & Use Cases
- Language-Specific Checks: Identifies async boundary, undefined property, JSON parsing, and module-resolution issues, plus TypeScript type-contract checks when .ts/.tsx files appear.
- Reproduction Guidance: Suggests minimal node, npm, vitest, jest, or ts-node reproduction commands based on the trace context.
- Patch Targets: Recommends fixes such as optional chaining, schema validation, discriminated unions, or error wrapping, along with verification commands like npm test or npx tsc --noEmit.
- Use Case: While triaging a TypeScript service crash, invoke this probe to get a checklist of likely causes, a minimal ts-node reproducer, and a tsc --noEmit verification step.
Quick Start
Ask the agent to analyze this JavaScript stack trace and produce npm-specific checks, a reproduction command, and patch targets.