/nlsmdn:debug-log <topic or area to debug>from nlsmdn
Add debug logging to trace code execution. Use when debugging, tracing control flow, or investigating unexpected behavior. Any language (JS/TS, Python, Go).
Ships in nlsmdn. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add targeted debug logging to trace execution flow and variable state.
/debug-log authentication flow
/debug-log # Uses last topic from conversation
/debug-log the checkout process
One-Variable Rule:
Circuit Breaker:
If 3 sequential attempts fail to isolate the issue, STOP. Document findings and escalate to hard-fix for parallel investigation.
JavaScript/TypeScript:
console.log('[DEBUG][ModuleName] description:', variable);
Python:
print(f"[DEBUG][module_name] description: {variable}")
Go:
fmt.Printf("[DEBUG][PackageName] description: %v\n", variable)
Other languages: Adapt pattern - [DEBUG][Context] message
Place logs at these points:
| Location | What to log |
|---|---|
| Function entry | Function name, key parameters |
| Before async/await | What's about to happen |
| After async/await | Result or error |
| Conditionals | Which branch taken, why |
| Loops | Iteration count, current item |
| Error paths | Error details, state at failure |
For "debug the login flow":
async function login(email: string, password: string) {
console.log('[DEBUG][Auth] login called with email:', email);
const user = await findUser(email);
console.log('[DEBUG][Auth] findUser result:', user ? 'found' : 'not found');
if (!user) {
console.log('[DEBUG][Auth] early return - user not found');
return { error: 'User not found' };
}
const valid = await verifyPassword(password, user.hash);
console.log('[DEBUG][Auth] password valid:', valid);
if (!valid) {
console.log('[DEBUG][Auth] early return - invalid password');
return { error: 'Invalid password' };
}
console.log('[DEBUG][Auth] login successful, creating session');
return { success: true, user };
}
Instrument auth flow with entry/exit and state logs:
/debug-log authentication flow
Locates login, token validation, and session creation functions. Adds [DEBUG][Auth] logs at each function entry/exit, before/after async calls like findUser and verifyPassword, and logs key state such as token presence and user lookup results.
Trace intermittent checkout error:
/debug-log checkout process
Finds the checkout handler, payment processing, and cart validation code. Adds logs at each conditional branch and async boundary to capture the exact execution path and variable state when the intermittent error occurs.
Solution: Revert the last logging change immediately and re-test. Ensure log statements do not alter control flow (e.g., accidentally placed inside a ternary or before a return) and that string interpolation does not call methods with side effects.
Solution: Remove all but the entry/exit logs for the top-level function, then re-add logs one layer deeper at a time. Use distinct prefixes per module (e.g., [DEBUG][Auth] vs [DEBUG][Cart]) and filter output with grep to isolate the relevant trace.
What SKILL.md sets; muted values are Claude Code's defaults
mediumOther plugins' skills for the same job
65 skills in this plugin
/blind-spotsSurface consequential decisions a plan, design, or research brief left silently assumed, by interviewing the user in dependency order. Use when the user says "blind spots", "grill me", "stress-test this plan", "poke holes in this", "what am I missing", "interrogate this design", "what haven't I decided", or needs a loose idea or research brief clarified before work begins. Do NOT use for a clear factual lookup, to explain a previous reply in more detail (use `huh`), to generate ideas when it is unclear what to build (use `ideation`), or to review an already-written plan with agents (use `review-plan`)./brainstormWork out how to solve a problem the user can already name — interview them with `blind-spots` to understand it, generate structurally different approaches, validate each with an independent critic, then present the survivors with trade-offs and a recommendation. Use when the user says "brainstorm", "brainstorm approaches", "how should we solve/approach/tackle X", "what are our options", "compare approaches", "think this through with me", or wants solutions weighed before committing. Works on any topic, with codebase recon when a repo is involved; `--debate` adds external advisors for high-stakes calls. Do NOT use when stuck on what to build or what the problem is (use `ideation`), to probe an already-chosen plan (use `blind-spots`), or to pick a library or service (use `evaluate-tech`).npx claudepluginhub nielsmadan/skills --plugin nlsmdn