Skip to main content

typescript-strict

Rust-style strict TypeScript discipline for silkdown — branded types, exhaustive discriminated unions over enums, `assertNever` exhaustiveness checks, `as const` and `satisfies` for literal preservation, parse-don't-validate at boundaries, Result-style explicit errors over throws where it pays off, and type-level tests. Auto-trigger when adding or modifying types in packages/*/src/**/*.ts, when introducing a switch on `node.name` or any other discriminated union, when defining or extending the public API in packages/*/src/index.ts, when validating untrusted input (URL policy, options objects, parse callbacks), when writing `as` casts, or when reviewing PRs for `any`/unchecked `unknown`. Also fires on: "branded type", "newtype", "discriminated union", "exhaustive", "assertNever", "Result type", "neverthrow", "ts-pattern", "ts-reset", "type guard", "satisfies", "as const", "type-level test", "expect-type".

跳到安装

来源信息

仓库
magarcia/silkdown
最近来源活动
2026年5月5日 23:23
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。