principle-type-system-discipline
WHEN types permit invalid states or semantic mix-ups; NOT maximal type precision or runtime validation of untrusted input; make the compiler enforce useful…
от mintuz★ 38 звёзд на GitHub
Установить principle-type-system-discipline в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Type System Discipline
Make the compiler enforce the domain distinctions that prevent real errors.
Model alternatives as variants with required payloads, not contradictory flags and optional fields. Use exhaustive matching so new variants create compiler obligations.
Separate semantic primitives where confusion causes errors, such as UserId and InvoiceId at a risky API. Validate their construction. Strengthen types where a function is otherwise partial: head needs a non-empty sequence; sum remains total on ordinary sequences, including empty ones. Avoid wrappers that protect no meaningful invariant.
Derive types from the authoritative schema where one exists. Narrow, validate or refine the model instead of casting uncertainty away. Check rejected invalid inputs, intended runtime behaviour and compile-time rejection of wrong combinations. Static types do not substitute for runtime boundary validation.
Distinct from: principle-parse-at-the-boundary (untrusted or persisted data enters, or state is used after suspension), principle-model-the-domain (choosing legal states, transitions and ownership, with or without a type system).
Done: matching on variants is exhaustive; semantic types are distinct where confusion costs; partial functions get stronger inputs; no cast hides uncertainty.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл principle-type-system-discipline?
WHEN types permit invalid states or semantic mix-ups; NOT maximal type precision or runtime validation of untrusted input; make the compiler enforce useful domain distinctions.
Как установить скилл principle-type-system-discipline?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл principle-type-system-discipline запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…