michael-denyer/pstack-claude

principle-type-system-discipline

Apply when designing types, reviewing a function signature, or writing code in any statically-typed language. Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, exhaust variants, derive from authoritative schemas.

1.2K installs 5.2K stars

Before you install

Last update
Files in folder
2
Scripts
No script files found
SKILL.md size
1.0 KB (about 257 tokens of context each time it loads)
License
MIT

Skills are plain text instructions the agent follows, sometimes with scripts. Check the source, prefer repositories with many installs and stars, and read any script it ships.

Install

npx skills add michael-denyer/pstack-claude@principle-type-system-discipline

Runs in a terminal with Node.js 18 or newer. Add -y to skip the prompts and -g to install for every project instead of this one.

Install for your agent

npx skills add michael-denyer/pstack-claude@principle-type-system-discipline --agent claude-code -y
Project install writes to
.claude/skills/principle-type-system-discipline
Global install writes to
~/.claude/skills/principle-type-system-discipline

Start a new session afterwards so the agent picks the skill up. In Claude Code you can also call it directly with /principle-type-system-discipline.

What it does

Type System Discipline Make the compiler reject impossible states, mismatched primitives, and unhandled variants. - Brand semantic primitives. If two arguments share a primitive type but mean different things, give each its own type. Validate once at creation. - External data is untyped until parsed. JSON, RPC payloads, CLI args, config, environment variables, and database rows go through a parse function at the boundary that returns the typed model. - Derive types from authoritative schemas. When a schema file owns a shape, derive the type from it instead of hand-rolling a parallel one. For…

Excerpt from the skill's own SKILL.md. Read the full file on GitHub before installing: skills run with your agent's permissions.

Categories

Related skills

  • poteto-mode

    michael-denyer/pstack-claude

    poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.

    1.5K installs 5.2K scriptsAI & agentsGit & GitHub
  • unslop

    michael-denyer/pstack-claude

    Cut AI tells from any writing.

    1.5K installs 5.2KWriting
  • architect

    michael-denyer/pstack-claude

    Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape.

  • arena

    michael-denyer/pstack-claude

    Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape.

  • blast-radius

    michael-denyer/pstack-claude

    Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', reviewing a small diff you don't trust, or a brief that asserts something about existing code ('make X public', 'X already handles Y') before you design against that assertion.

  • create-verification-skill

    michael-denyer/pstack-claude

    Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform. Use for /create-verification-skill, \"make a control skill for this repo\", \"make a driver skill for this repo\", or when a project has no scripted way to prove UI/CLI/service behavior.

← Search skills

/skills/michael-denyer/pstack-claude/principle-type-system-discipline/