Command Palette

Search for a command to run...

Назад к скиллам
скилл № 38213

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от 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), без исполняемых скриптов.

Похожие скиллы

Сравнить principle-type-system-discipline с