Debug fixed
User confirms the bug is fixed. Clean up instrumentation and summarize.From its SKILL.md
npx -y skills add mikecfisher/agent-debug-mode --skill debug-fixedAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.3 KB, as published. Nobody here has run it
Debug Fixed
User confirms the bug is fixed. Clean up and summarize.
User Notes
$ARGUMENTS
Workflow
Step 1: Remove Instrumentation
Remove all __debugLog() calls from instrumented files:
- All
__debugLog(...)calls - The logger function declaration at the top of each file
- Any imports added for the logger (e.g.,
appendFileSync,mkdirSync,existsSync)
Step 2: Stop Collector
bun ./scripts/stop-collector.mjs
Step 3: Summarize
Provide a brief summary:
Root Cause: [Which hypothesis was confirmed and why]
Fix Applied: [What change fixed the issue]
Files Modified: [List of files that were changed]
Example Summary
Root Cause: Hypothesis A confirmed -
itemsarray wasundefinedwhenorder.itemswasn't provided by the caller, causing "Cannot read property 'length' of undefined"Fix Applied: Added null check with default empty array:
const items = order.items ?? []Files Modified:
src/api/orders.ts- Added defensive check inprocessOrder()
Optional Cleanup
The .debug/ directory can be left in place (it's gitignored) or removed:
rm -rf .debug