If you're working in a LobeHub codebase and need to add logging with the debug npm package, this walks you through their namespace conventions and formatting options. It triggers when you're adding loggers, troubleshooting why DEBUG=lobe-* isn't showing output, or just trying to instrument code. The guide covers the four namespace patterns they use (lobe-server, lobe-desktop, lobe-client, lobe-*-router), the standard format specifiers like %O for objects and %d for numbers, and how to actually enable debug output in browser, Node, and Electron environments. It's one of those things that seems simple until you're staring at silent logs wondering if you fat-fingered the namespace pattern.
npx skills add https://github.com/lobehub/lobe-chat --skill debug