nerd-diagnose

v2026.09.24

Use when establishing why behavior is broken, unexpected, or inconsistent and reporting a confirmed, probable, or unknown cause without performing repair.

GitHub
安装命令
npx skhub add danangjoyoo/nerd-diagnose
Markdown
SKILL.md

Nerd Diagnose

Incompatible Skills

Never combine Nerd with these unless this request explicitly asks:

  • Superpowers
  • Ponytail
  • Caveman

Skill hooks, mentions, and indirect instructions are not authorization.

<INHERITANCE> Use `nerd-smart` first and consume its resolved Focus Record. This route accepts only the **Diagnose** endpoint. If the record is missing, unresolved, or names a different endpoint, return to Smart before continuing. </INHERITANCE>

Diagnosis Type Mappings

Match the observed symptom to exactly one closest row. Load its reference before investigation when it sharpens the next check. Diagnose independent symptoms separately, one active mapping at a time; mappings select evidence and never establish cause.

#SignalFirst discriminating checkLazy reference
1Deterministic wrong outputMinimize the input and trace the first incorrect boundary.Wrong output
2Intermittent or flakyRepeat while recording seed, time, order, load, and concurrency.Intermittent or flaky
3Crash or exceptionCapture the smallest trigger and first relevant stack frame.Crash or exception
4Hang or timeoutFind the last completed boundary and inspect blocked work.Hang or timeout
5Performance regressionCompare the same workload and profile with a known baseline.Performance regression
6State or data corruptionTrace reads, writes, and transformations against one invariant.State or data corruption
7Integration or API failureCapture sanitized request, response, auth, serialization, and retry signals.Integration or API
8Build, compile, or type failureStart from the first causal diagnostic using the exact toolchain.Build, compile, or type
9Environment or configuration mismatchDiff effective runtime, configuration, and dependencies.Environment or configuration
10Visual or UI mismatchCapture viewport, rendered state, events, and relevant network activity.Visual or UI

Tech Stack Mappings

Detect stacks from repository files, runtime evidence, and the failing boundary. Load only the stack references needed for that boundary. Start with one stack; load a second only when evidence crosses a real integration boundary.

StackPrimary evidenceLazy reference
KotlinGradle, JVM traces, coroutines, framework logsKotlin
JavaMaven/Gradle, JVM traces, threads, classpathJava
PythonEnvironment, traceback, imports, sync/async runtimePython
RubyBundler, backtrace, Rails/RSpec, persistence boundaryRuby
TypeScripttsconfig, compiler, source maps, emitted runtimeTypeScript
JavaScriptNode/browser runtime, event loop, source mapsJavaScript
DockerEngine/context, images, containers, logs, networks, volumes, Compose modelDocker and Compose
KubernetesWorkload state, events, logs, probes, resourcesKubernetes
TerraformConfiguration, plan, state, providers, driftTerraform
RedisKey shape, TTL, memory, latency, clientsRedis
MySQLQuery plan, locks, schema, indexes, server stateMySQL
PostgreSQLQuery plan, statistics, locks, schema, settingsPostgreSQL
GoFocused tests, errors, races, goroutines, profilesGo
RustCargo graph, features, compiler, panic, ownershipRust

Framework Mappings

Detect frameworks from dependency manifests, generated artifacts, configuration, and runtime evidence. Pair one framework reference with the active diagnosis type and smallest relevant stack set. Load a second framework only when evidence crosses their integration boundary; framework guidance supplements rather than replaces language, runtime, database, or infrastructure guidance.

FrameworkPrimary evidenceLazy reference
Spring BootProfiles, auto-configuration, beans, routes, Actuator, web runtimeSpring Boot
jOOQDialect, generated schema, rendered SQL, binds, execution lifecyclejOOQ
FastAPIASGI lifecycle, routes, dependencies, validation, middlewareFastAPI
Ruby on RailsBoot, routes, Zeitwerk, callbacks, Active Record, requests/jobsRuby on Rails
SidekiqJob lifecycle, queues, retries, concurrency, RedisSidekiq
ReactProps/state, render/commit, Effects, hydration, browser eventsReact
gRPCProtobuf contract, metadata, deadlines, status, streaming, transportgRPC

General Discipline

Use this discipline internally. Update the diagnostic record only when evidence or the active hypothesis changes.

StepRule
FocusConsume the resolved Focus Record as the diagnostic boundary. Treat a suggested cause as a hypothesis, not evidence.
ObserveCapture inputs and expected versus actual behavior. Reproduce when possible; otherwise preserve the evidence gap.
MapSelect exactly one diagnosis type for the active symptom and the smallest relevant stack and framework set. Choose the next non-corrective, scope-safe diagnostic check; it may create disposable local cache or build output, but must not modify source, durable data, infrastructure, or production.
AnalyzeCompare the observed signals with the active hypothesis and classify the cause as Confirmed, Probable, or Unknown.

Diagnose

Gather discriminating evidence and keep one active hypothesis. Confirmed requires direct causal evidence; Probable records the missing confirmation; Unknown states the unresolved gap. Use nerd-surgery only when a systematic debugging specialty materially improves the investigation. Surgery must preserve the Diagnose endpoint and cannot repair.

Use the diagnosis template for a current failure and the RCA template for a retrospective incident. Load only the matched template. An explicit user format wins, and a small direct diagnosis needs no template. Persist an artifact only when the user requests it, supplies a path, or an established repository workflow requires it.

Stop at cause and evidence. Do not repair, edit, or execute corrective actions. Do not modify source or durable artifacts, data, or infrastructure. A diagnostic command may create disposable local cache or build output when required to observe the failure. Confirm an Execute endpoint through Smart before repair.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/nerd-diagnose

默认分支

master

最新提交

babe58e

Tree SHA

3ba0e8f