编写、修改或审查接口解析、字段适配、默认值、展示占位及缓存恢复逻辑时使用。依据已确认的数据契约区分合理默认值与无依据回退,避免猜测备用字段、混用展示与业务数据,或将异常伪装成成功结果;不因代码中仅出现空值运算符或异常捕获就触发。
Ships in development. 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.
禁止无依据的回退;允许有明确契约的默认值、协议兼容、业务选择和缓存恢复。先确定值用于最终展示、业务数据、边界解析还是恢复旧结果,再判断兜底是否合法,不仅根据运算符或写法作判断。
|| 与 ?? 等语义不同的运算符。以下使用 TypeScript 展示判断方式,不要求项目使用该语言或同名工具。
// 允许:模型明确约定 null 表示缺少数值
const value = record.value ?? null
// 允许:业务约定用户配置优先,0 是有效配置值
const limit = userSettings.limit ?? systemDefaults.limit
// 允许:已确认属于当前查询,刷新期间保留上次成功结果
const data = query.data ?? lastSuccessfulData
// 避免:没有契约依据地猜测备用键
const phone = response.phone_number ?? response.phoneNumber ?? null
// 避免:必需字段缺失也被当作正常空列表
const rows = response.rows ?? response.items ?? []
// 避免:未识别和校验合法结构,直接回退到整个响应
const result = response.data ?? response
// 避免:把解析异常变成成功的空结果
try {
return parseResponse(response)
} catch {
return []
}
// 避免:把最终展示占位写入业务请求
const payload = { phone: formatForDisplay(form.phone) }
What SKILL.md sets; muted values are Claude Code's defaults
/development:no-fallback-single-sourcefrom development
npx claudepluginhub bingwu-devkit/skills --plugin development6 skills in this plugin
/business-enums-display-config新增、重构或审查业务枚举及其文案、图标、颜色等静态展示映射时使用,统一编码定义、复用展示配置并保持协议兼容。普通文案或样式调整不触发。/grillingGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases./requesting-code-reviewUse when completing tasks, implementing major features, or before merging to verify work meets requirements/show-meHelp the user understand the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts.Other plugins' skills for the same job