From nostics
Walks through adding a new diagnostic code into a `nostics` catalog: selecting prefix, area letter, next free number, and writing the entry.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nostics:add-diagnosticThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. **Find the catalog.** Grep for `defineDiagnostics` to locate the `codes` object the new entry belongs in. With several catalogs, pick by area.
defineDiagnostics to locate the codes object the new entry belongs in. With several catalogs, pick by area.PREFIX_XNNNN: PREFIX is the project name uppercased (NUXT, I18N); X is the area letter (B build, R runtime, C config, D deprecation); NNNN is the next free number. Read existing codes to choose. Never rename or reuse a published code.LIB_R0001: {
why: (p: { hook: string }) => `${p.hook}() must run at the top of setup().`, // string or typed fn; becomes Error.message (required)
fix: 'Move the call into setup() or a composable it calls.', // optional, but add whenever the fix is known
docs: 'https://example.com/custom', // optional: overrides docsBase, or `false` to opt out
},
why is the only required field. Params from why and fix are intersected and required at the call site.cause, sources) are passed at the call site, never in the definition.diagnostics.LIB_R0001({ hook }) to report, throw diagnostics.LIB_R0001({ hook, cause: err }) to raise. Both run the reporters.Full API and reporter/formatter/plugin details: the nostics skill.
npx claudepluginhub vercel-labs/nostics --plugin nosticsStructured diagnostic code library for JavaScript/TypeScript. Turns errors into typed `Diagnostic` instances with stable codes, docs URLs, and actionable fields. Covers `defineDiagnostics`, reporters, formatters, Vite plugins, and migration from `console.warn`/`Error`.
Designs consistent error codes using the PREFIX_CATEGORY_NUMBER format with defined categories (VAL, BIZ, SYS, NET, AUTH) and HTTP status mapping. Useful when defining error codes, creating error handling, or designing APIs.
Detects LSP servers for 18 languages including TypeScript, Python, Go, Rust, Java; installs missing ones via npm, pip, go; integrates with Claude Code for real-time diagnostics during /cc-setup phase 7 or project setup.