agentsclimarketplace

Debug fixed

Skill mikecfisher/agent-debug-mode/skills/debug-fixed

User confirms the bug is fixed. Clean up instrumentation and summarize.From its SKILL.md

Install
npx -y skills add mikecfisher/agent-debug-mode --skill debug-fixed

Assembled 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 - items array was undefined when order.items wasn'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 in processOrder()

Optional Cleanup

The .debug/ directory can be left in place (it's gitignored) or removed:

rm -rf .debug

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.