mcpField
D
diagnostic-logs

diagnostic-logs

github.com/editframeDevelopment1979 installsUpdated 2w ago
Repository

About diagnostic-logs

A small coding skill for making diagnostic console logs consistent and easy to filter. It specifies purpose labels, JSON-stringified data, and removing temporary logs after debugging.

Key features

  1. 01Purposeful log messages
  2. 02Filterable uppercase identifiers
  3. 03JSON-stringified objects
  4. 04Remove logs after debugging

Use cases

  1. 01Add searchable logs during debugging
  2. 02Make console data easy to copy
  3. 03Clean up temporary diagnostics

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/editframe/skills --skill diagnostic-logs

After installing, type/diagnostic-logsin Claude Code to confirm it loaded.

Details

From the project README

Diagnostic Logs

Format

console.log('[IDENTIFIER] Clear purpose message', JSON.stringify({ object: data }));

Requirements

  1. Clear purpose - What is this log telling you?
  2. Single filterable identifier - [UPPER_CASE] prefix (e.g., [THUMB_STRIP], [RENDER])
  3. Stringified objects - Use JSON.stringify() for easy copying from browser console
  4. Remove when done - Delete diagnostic logs after debugging is complete

Examples

// ✅ Good
console.log('[THUMB_STRIP] Starting animation', JSON.stringify({ 
  loadingCount: 3,
  totalSlots: 10 
}));

// ❌ Bad - no identifier, object not stringified
console.log('Starting animation', { loadingCount: 3 });

Comments

Markdown supported