/nlsmdn:hard-fix <description of the persistent problem>from nlsmdn
Escalation workflow for stubborn bugs. Use when a bug persists after multiple fix attempts, you've tried several approaches, or you're stuck.
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.
Read when SKILL.md points to them.
Comprehensive investigation workflow for bugs that resist normal debugging.
/hard-fix login keeps failing after auth changes
/hard-fix race condition in checkout - tried 3 fixes already
/hard-fix # Uses recent conversation context
Do NOT shortcut this workflow:
Circuit Breaker Rule: If 3 sequential fix attempts have failed for the same issue:
2>/dev/null on docs/log/ — if the directory doesn't exist, the search silently returns nothing and gives false confidence there are no prior known issues.Before full investigation, check internal docs for known issues and gotchas:
Check past issues:
grep -ri "<keywords>" docs/log/ 2>/dev/null | head -10
ls -la docs/log/ 2>/dev/null | grep -i "<related_terms>"
Check project documentation:
grep -ri "<keywords>" docs/ *.md 2>/dev/null | head -10
Look for documented gotchas, known issues, or patterns related to the problem area.
If a matching past issue is found:
If relevant documentation is found:
If no match or user wants fresh investigation, continue.
Ask clarifying questions if needed:
Keep questions minimal - only ask what's essential.
Launch ALL of these simultaneously using the Task tool:
| Agent | Skill/Tool | Focus |
|---|---|---|
| Research | research-tech | External solutions, known issues, library bugs |
| Debug | debug-log | Add logging to trace the actual execution path |
| History | review-history | Git blame, recent changes, past issue logs |
| Library Source | Read library code | Undocumented behavior, actual implementation |
| Opinion 1 | second-opinion | Fresh perspective on the problem |
For detailed agent prompt templates, see references/templates.md.
Wait for all Phase 2 agents. This synthesis is the reasoning crux of the whole workflow, so it runs in a fresh subagent pinned to Opus rather than inline: dispatch one read-only subagent to produce the root-cause theory.
subagent_type: Plan — read-only by construction (no Edit/Write/NotebookEdit), retains Read/Grep/Glob for confirming evidence against real files.model: opus.The Plan agent starts fresh (not a fork), so its prompt MUST contain:
It returns a root-cause theory with corroborating evidence from multiple sources (debug timing, git history, library source, research). See references/templates.md for BAD/GOOD synthesis examples — hold its output to the GOOD bar.
Run second-opinion with your synthesis and proposed fix. Check for blind spots.
For the presentation template, see references/templates.md.
Ask: "Should I proceed with the recommended fix?"
Do NOT remove debug logs until user confirms the fix is working. If the fix fails, the logs are essential for the next investigation round. Do NOT proceed to Phase 7 until user confirms the fix is working.
Only after user confirms fix works, write to docs/log/YYYY-MM-DD-{Issue}.md.
For the log template, see references/templates.md.
Token refresh bug after multiple failed fix attempts:
/hard-fix auth token refresh fails silently after 3 fix attempts
Launches parallel agents: research finds a known axios issue with token queuing, debug-log traces the refresh timing, history reveals the bug started after PR #234 moved refresh to background, and library source confirms axios doesn't queue requests during refresh. Synthesizes a root cause (race condition) with a concrete fix using axios-auth-refresh.
Race condition traced to library update via git history:
/hard-fix race condition in order processing since last deploy
History agent pinpoints a dependency bump that changed default concurrency behavior. Debug logging captures the interleaved execution order, and library source inspection confirms the breaking change in the new version. Presents the version diff and a targeted fix to restore the previous behavior.
Solution: Run second-opinion with a consolidated summary of all agent findings and the conflicting theories. If agents still disagree, prioritize the evidence from the debug-log agent (actual runtime behavior) over static analysis, and test the most likely theory first.
Solution: Pin the dependency to the last known working version as an immediate fix, then file an issue upstream with reproduction steps. If a patch is needed sooner, fork the dependency or apply a local patch using patch-package (JS) or the equivalent for your ecosystem.
What SKILL.md sets; muted values are Claude Code's defaults
maxOther plugins' skills for the same job
npx claudepluginhub nielsmadan/skills --plugin nlsmdn65 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`)./check-agent-logsSearch past Claude Code, Codex, Cursor CLI, Devin CLI, Droid, and Pi session logs to recover context from earlier work across the current project and sibling checkouts. Use when a bug, topic, or decision was handled in a previous session but its agent or checkout is unknown; when the user says "we fixed/discussed this before", "find the session where", "recover prior context", "check agent logs", "check Claude projects", "search past sessions/transcripts", or "which checkout was that in". Do not use for aggregate failure-pattern analysis; use review-logs for that./codebase-reviewReview a whole codebase aspect by aspect, with aspects fitted to the project type (mobile, desktop, web frontend, static site, CLI, backend, library) — docs truth-check, architecture, tests, security, the type's foundations, feature deep dives, consistency, roadmap — writing a doc per aspect and a verified findings ledger that doubles as the TODO. Plans first (recon, `blind-spots`, `review-plan`, plan approval), then walks the plan with the user aspect by aspect — agents review and verify in the background, the user confirms rulings and decides judgment calls one at a time. `--auto` runs independently after the gate, with decision waves at the end. `--fix` hands settled findings through `crew` to worker sessions, integrated locally, never pushed. Use for "codebase review", "review the whole codebase", "onboard me to this repo", "deep dive this app", "audit the code base", "review and fix everything". Not for a diff or PR (code-review), a CLI release pass (release-review), or building a feature (longshot)./codebase-review-typescriptSupply TypeScript and JavaScript structural evidence to codebase-review using dependency-cruiser, ESLint complexity, and Git churn. Use for whole-codebase import-cycle and complexity-hotspot investigation, or when discovered as a project-local codebase-review extension. Does not replace review-typescript's type-design checks or review a diff./code-guideCoach the user through writing a feature themselves, one small step at a time, the way an experienced developer would build it. Each step comes with the code to type and a checkpoint that proves it works, such as logging the endpoint's response shape before typing it, or rendering a hardcoded value before wiring the real one. After each step the agent reads the user's diff and verifies it. The happy path comes first and edge cases come last. Use when the user says "code-guide", "guide me to write", "help me write this myself", "I want to code it myself", "coach me through implementing", "walk me through building this feature", "don't write it for me", or wants to learn by typing the code. Do NOT use for console or dashboard setup (use guide), explaining existing code (use code-tour), or when the agent should implement the change itself (use plan or longshot).