debug

Create scoped debug loggers with namespace prefixes using the debug library.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/Chenm4/VoiceChatAssistant --skill debug-chenm4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug
Source: https://github.com/Chenm4/VoiceChatAssistant/tree/main/lobehub-main/.agents/skills/debug
Command: npx skills add https://github.com/Chenm4/VoiceChatAssistant --skill debug-chenm4

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers adopt and implement consistent debugging practices using the debug library, enabling organized namespaces and clearer visibility into runtime behavior.

Core Features & Use Cases

  • Namespace conventions: Adopt standardized prefixes like lobe-server, lobe-desktop, and lobe-client to categorize logs.
  • Usage examples: Shows how to import debug and log messages with formatting.
  • Best practices: Guidance for enabling/disabling verbose logs across environments to balance visibility and performance.

Quick Start

Install the debug package and initialize a logger for your module. Then emit example messages such as log('Initialization complete') and log('User action: %O', action). Configure environment variables or localStorage settings to filter namespaces as needed.

Frequently Asked Questions about debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement traceable debug logging across Node.js modules?

You can implement traceable debug logging by using the debug library to create scoped loggers with standardized namespace prefixes like lobe-server or lobe-client, which categorize logs across modules and provide clear visibility into runtime behavior.

What are the best practices for organizing debug namespaces in an Electron application?

Organizing debug namespaces in an Electron application involves adopting standardized prefixes such as lobe-desktop, lobe-server, and lobe-client to categorize logs and maintain structured, traceable runtime messages across different application layers.

Does the debug library work in both Node.js and browser-based environments?

Yes, the debug library works in Node.js, Electron, and browser-based environments. You can configure environment variables or localStorage settings to filter namespaces as needed, balancing log visibility and performance across platforms.

How do I filter and enable verbose logs in different environments?

You can filter and enable verbose logs by configuring environment variables in Node.js or localStorage settings in browser-based environments, allowing you to balance log visibility and application performance dynamically during runtime.

Why should I use namespace prefixes for diagnostic logging?

Namespace prefixes for diagnostic logging provide structured categorization for your traceable messages, allowing you to selectively enable or disable specific module outputs and maintain organized visibility into complex runtime behaviors.