@lobehub/debug

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

View in AI SkillSafe app
374742 downloads
0 stars
0 demos
SKILL.md
namedebug-package
descriptionLobeHub debug package and log namespace guide. Use when adding debug() logging, choosing lobe-* namespaces, troubleshooting DEBUG output, localStorage.debug, or log format specifiers.
user-invocablefalse

Debug Package Usage Guide

Basic Usage

import debug from 'debug';

// Format: lobe-[module]:[submodule]
const log = debug('lobe-server:market');

log('Simple message');
log('With variable: %O', object);
log('Formatted number: %d', number);

Namespace Conventions

  • Desktop: lobe-desktop:[module]
  • Server: lobe-server:[module]
  • Client: lobe-client:[module]
  • Router: lobe-[type]-router:[module]

Format Specifiers

  • %O - Object expanded (recommended for complex objects)
  • %o - Object
  • %s - String
  • %d - Number

Enable Debug Output

Browser

localStorage.debug = 'lobe-*';

Node.js

DEBUG=lobe-* npm run dev
DEBUG=lobe-* pnpm dev

Electron

process.env.DEBUG = 'lobe-*';

Example

// apps/server/src/routers/edge/market/index.ts
import debug from 'debug';

const log = debug('lobe-edge-router:market');

log('getAgent input: %O', input);

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@lobehub/debug/verified)](https://skillsafe.ai/skill/@lobehub/debug/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@lobehub/debug/installs)](https://skillsafe.ai/skill/@lobehub/debug/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@lobehub/debug/scan)](https://skillsafe.ai/skill/@lobehub/debug/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@lobehub/debug/eval)](https://skillsafe.ai/skill/@lobehub/debug/)