/dstack-core:type-drivenfrom DStack Core
Models domains as types so invalid states fail at compile time: ADTs, exhaustive state-machine matches, and parse-at-the-boundary constructors.
Ships in DStack Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Domain mistakes should fail at compile time, not in production. This skill encodes the domain as types, parses untrusted input once at the boundary, and matches state transitions exhaustively.
It fits modeling a domain, encoding a state machine, hardening an API boundary, making invalid states unrepresentable, or parsing instead of validating. For TypeScript style and strictness specifics, use typescript-best-practices instead. Skip this approach entirely and report when the language lacks sum types (ADTs, sealed hierarchies, or an equivalent). Per-language constructor and check commands live in references/patterns.md, with worked constructors in references/examples.md and dependent-type background in references/formal-tools.md.
parse constructor returning the new type. Never return bool and defer validity to callers. No scattered post-hoc validation remains outside the parse layer.match/switch/visit over the sum type. Treat incomplete-arm warnings as failures. Add the missing variant to the type; never add a wildcard arm to silence the checker, and never add runtime guards to cover a type-design failure.todo!(), any casts, TODO(), ... bodies, and equivalents in references/patterns.md) before proceeding.Local reversible writes only: domain types, public signatures, and affected callers and tests, with rollback through version control or undo. No remote mutation. Finished work means every algebraic constructor is present, invalid states are unconstructible, matches are exhaustive, boundaries parse, and the target build passes.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gosuda/dstack-skills --plugin dstack-core89 skills in this plugin
/abstract-wellUse when the user wants to classify abstractions as useful, bad, or busy and keep one shallow level. Not for tasks requiring source or remote-system changes./architectUse when non-trivial code needs a design, codebase architecture needs improving through survey and deepening, or one module needs targeted interface narrowing, seams, or testability. Not for rendered visual artifacts, deploy, or irreversible changes./architecture-simplificationUse when the user explicitly asks to simplify an architecture, collapse modules or crates, or cut a dependency graph within approved boundaries. Executes an approved layout direction slice by slice. Not for single-module cleanup: use code-simplification. Not for layout planning from nothing: use architect. Not for blind re-derivation: use breaking-driven.Other plugins' skills for the same job