LogoClawIndex
CasesSkillsAbout
LogoClawIndex

principle-type-system-discipline - Type System Discipline

Guide type design and code review in statically-typed languages to eliminate illegal states, parse external data, and ensure exhaustive matching.

Tags

Updated: 2026-09-15

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Make illegal states unrepresentable
  • Brand semantic primitives
  • Parse external data at boundaries
  • Match sum types exhaustively
  • Derive types from authoritative schemas

Inputs

  • Type definitions and function signatures
  • Authoritative schemas and specifications
  • Unstructured external data payloads

Outputs

  • Refactored type definitions
  • Parsed domain data models
  • Exhaustive pattern match expressions
  • Type safety review recommendations

Requirements

  • Statically-typed language compiler or typechecker

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
type-system
code-review
refactoring
type-safety
Make illegal states unrepresentable
Brand semantic primitives
Parse external data at boundaries
Match sum types exhaustively
Type definitions and function signatures
Authoritative schemas and specifications
Unstructured external data payloads
Refactored type definitions
Parsed domain data models
Exhaustive pattern match expressions