SkillsReviewed · cursor

Type System Discipline

Type System Discipline is a Claude Code skill for developers using statically typed languages, but it provides design guidance rather than an automated type checker. It recommends distinct types for semantically different values, parsing external data before trusting it, and deriving types from authoritative schemas. Its required adapter and referenced TypeScript guide are outside the supplied files.

Researched 17 Nov 2026

In short.

Type System Discipline is a Claude Code skill for developers designing typed APIs and data models, but its concise instructions leave implementation and verification to the developer. It focuses on preventing invalid states, distinguishing values that share a primitive representation, parsing external inputs, handling every variant and deriving types from schemas. The supplied material contains no implementation examples or performance evidence. Nothing was executed, so installation, invocation and effects on generated code remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is harness/pstack/claude-code/skills/principle-type-system-discipline, represented by its complete supplied SKILL.md. The related notice is harness/pstack/claude-code/LICENSE, outside the selected folder. The referenced Claude Code adapter, typescript-best-practices skill and other repository contents are excluded and were not supplied. Nothing was executed. Installation, invocation, generated-code quality, compiler enforcement and runtime parsing behavior remain unassessed.

The overview

Identity

The resource is the principle-type-system-discipline skill in cursor/plugins, under harness/pstack/claude-code/skills/principle-type-system-discipline. Its selected content is one SKILL.md file containing metadata and instructions for type design and code review.

The original folder is [https://github.com/cursor/plugins/tree/main/harness/pstack/claude-code/skills/principle-type-system-discipline]. The supplied source is pinned to commit 3fa33bb0f927bea2ccacd48a3cfda95145fb6bae.

Assessment

This is useful as a compact design and review checklist for developers who already understand their language's type system. Its strongest feature is connecting type declarations to meaningful distinctions and validated inputs. It does not provide a tutorial, working implementation or evidence that an assistant reliably follows the guidance.

Intended users

The stated audience is developers designing types, reviewing function signatures or writing code in any statically typed language. Experienced developers can use it to prompt consistent review decisions. Beginners may need additional explanation of branded types, which distinguish values with the same underlying representation, and boundary parsing, which checks data as it enters a program.

Capabilities

The skill directs an assistant to distinguish semantically different primitive values, validate them when created, parse external inputs into typed models and derive types from the schema that owns their structure. It also calls for representing valid states and handling every declared variant. These are instructions for producing or reviewing code; the file supplies no executable enforcement.

Using it

Requirements

Applying the compiler-focused advice requires a statically typed project and suitable compiler tooling. The skill explicitly calls for reading its Claude Code adapter once per session and refers TypeScript users to a separate typescript-best-practices skill. Neither reference is supplied. Supported Claude Code versions, language versions and compiler configurations are unspecified.

How it works

The mechanism is prose guidance loaded by an assistant. Distinct semantic types are intended to let the compiler detect mismatched values. Boundary parsers establish a typed model from JSON, RPC payloads, command-line arguments, configuration, environment variables or database rows. Deriving types from authoritative schemas avoids maintaining a separate handwritten description of the same structure.

Setup

The documented preparation is to read ../../docs/harness/claude-code.md, which maps Cursor terminology to Claude Code. TypeScript syntax guidance is delegated to typescript-best-practices. The selected file gives no installation command or invocation example.

Its metadata sets disable-model-invocation to true, so automatic invocation should not be assumed. The supplied material does not explain the host's invocation behavior.

Illustrative use

A hypothetical purchase API could replace two plain string parameters with distinct UserId and OrderId types, validating values before constructing them. An incoming JSON request would pass through a parser before becoming the typed request model. This illustrates the skill's guidance; the supplied file contains no such implementation or verified compiler result.

Assessment & evidence

Limitations

The file does not demonstrate branded-type construction, parser failure handling, state modeling or exhaustive variant checks. It does not specify how to prevent unchecked conversions from undermining the intended guarantees. The referenced adapter and TypeScript guidance are absent, and compatibility, assistant adherence and compiler outcomes remain unassessed.

Design rationale

The design rationale is that sharing a primitive representation does not make two values interchangeable, and declaring a type does not establish that external input satisfies it. Separate semantic types and explicit parsing address those different problems. Schema-derived types provide one authoritative definition of a shape. These explain the intended value; the supplied material establishes no measured reduction in defects.

Alternatives and complements

The only named companion is typescript-best-practices, referenced for TypeScript syntax; its contents and suitability cannot be assessed here. Developers seeking automatic enforcement would need to evaluate compiler settings, validation tooling or language-specific checks separately. No particular competing resource or comparative result is established by the evidence.

Source evidence

The primary source is the complete supplied skill text at [https://raw.githubusercontent.com/cursor/plugins/3fa33bb0f927bea2ccacd48a3cfda95145fb6bae/harness/pstack/claude-code/skills/principle-type-system-discipline/SKILL.md]. It establishes the instructions and metadata, but contains no execution results.

The related licence is at [https://raw.githubusercontent.com/cursor/plugins/3fa33bb0f927bea2ccacd48a3cfda95145fb6bae/harness/pstack/claude-code/LICENSE]. No adapter, companion skill, runnable example or benchmark is included.

Access & freshness

Costs

The accompanying MIT licence grants permission without a licence fee. Claude Code access, model usage and any additional development tooling costs are not specified. Total operating cost is unknown.

Rights and licence

The parent claude-code directory includes an MIT licence naming Lauren Tan as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. The software is supplied without warranty.

Freshness

The supplied source was captured on 2026-11-17 at 01:12:04.622 UTC from commit 3fa33bb0f927bea2ccacd48a3cfda95145fb6bae. No release version, last-edit date or maintenance cadence is established. The current main branch may differ from this pinned source.

Before adopting

Read the referenced Claude Code adapter, establish the supported invocation method and obtain the companion guidance if working in TypeScript. To assess practical value, apply the advice to a small function signature and an external-data boundary, then check whether the compiler rejects swapped identifiers and whether parsing rejects malformed input. These are suggested evaluation steps; no such results are available.

Evidence for this report

harness/pstack/claude-code/LICENSEnotice · checked 2026-11-17