Skip to content
Back to skills

Type System

ASecurity

Apply when you design types or a signature, or write code in a typed language.

  • 225 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 25, 2026
toolsrust

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add NeverSight/skills_feed --skill type-system --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Type System?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Type System
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-type-system/badge)](https://www.skillsdirectory.com/skills/neversight-type-system)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: type-system
description: "Apply when you design types or a signature, or write code in a typed language."
disable-model-invocation: true
license: MIT
compatibility: "No tools needed."
---

# Type-system

Let the compiler reject wrong states, so that reviews and tests do not have to.

- Parse external data once, at the boundary, with the project's schema tool. Inside, trust the typed value.
- Derive a type from the schema that owns the shape. When two languages hold the same model, one is the source, and a test fails when the other differs.
- Give each state its own type. No optional field that is "set only when", no nullable value that cannot be null, no tuple where names say more.
- When two values have the same primitive type and different meanings, give each its own type.
- Use no cast, non-null assertion or `any` to silence a missing check.
- Let return types be inferred. Keep inputs read-only. Check a fixed mapping with a typed record, so that a missing case does not compile.
- Handle every variant, so that a new variant is a compile error.

Files in this skill

  • SKILL.md1 KB
  • description_en.txt79 B
  • stats.json69 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.