用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vercel-labs/nostics --skill add-diagnostic命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | add-diagnostic |
| description | Add a new diagnostic code following the defineDiagnostics() conventions from nostics |
| user-invocable | true |
| allowed-tools | Read Grep Glob Edit Write |
| license | MIT |
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.
基于 SOC 职业分类