Skip to main content
Back to the directory
zhanghandong/rust-skillsSoftware EngineeringFrontend and Design

m05-type-driven

Compile-time state validation through type encoding, eliminating invalid states at the type level.

SkillJury keeps community verdicts, source metadata, and external repository signals in separate lanes so ranking data never pretends to be a review.

SkillJury verdict
Pending

No approved reviews yet

Would recommend
Pending

Waiting on enough review volume

Install signal
690

Weekly or total install activity from catalog data

Sign in to review
0 review requests
Install command
npx skills add https://github.com/zhanghandong/rust-skills --skill m05-type-driven
SkillJury does not have enough approved reviews to publish a community verdict yet. Source metadata and repository proof are still available above.
SkillJury Signal Summary

As of May 1, 2026, m05-type-driven has 690 weekly installs, 0 community reviews on SkillJury. Community votes currently stand at 0 upvotes and 0 downvotes. Source: zhanghandong/rust-skills. Canonical URL: https://skills.sh/zhanghandong/rust-skills/m05-type-driven.

Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Compile-time state validation through type encoding, eliminating invalid states at the type level. Layer 1: Language Mechanics How can the type system prevent invalid states? Before reaching for runtime checks: Before adding runtime validation: Can the type encode the constraint? When is validation possible? Who needs to know the invariant? When type design is unclear: From design to implementation: - Covers six core patterns: newtype for type-safe primitives, type state for state machines, PhantomData for variance tracking, marker traits for capability flags, builders for gradual construction, and sealed traits for closed impl sets - Emphasizes asking "can the compiler catch this?" before adding runtime validation, with decision guides mapping common needs to appropriate patterns - Includes anti-patterns section contrasting runtime approaches (boolean flags, string semantics, public fields) with type-driven alternatives - Provides trace-up and trace-down navigation to related skills for domain modeling, trait design, and error handling - Can the compiler catch this error? - Can invalid states be unrepresentable? - Can the type encode the invariant?

Source description provided by the upstream listing. Community review signal and install context stay separate from this narrative layer.

Community reviews

Latest reviews

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does m05-type-driven do?

Compile-time state validation through type encoding, eliminating invalid states at the type level.

Is m05-type-driven good?

m05-type-driven does not have approved reviews yet, so SkillJury cannot publish a community verdict.

Which AI agents support m05-type-driven?

m05-type-driven currently lists compatibility with Skills CLI.

Is m05-type-driven safe to install?

m05-type-driven has been scanned by security audit providers tracked on SkillJury. Check the security audits section on this page for detailed results from Socket.dev and Snyk.

What are alternatives to m05-type-driven?

Skills in the same category include review-management, conversation-memory, coverage, grimoire-aave.

How do I install m05-type-driven?

Run the following command to install m05-type-driven: npx skills add https://github.com/zhanghandong/rust-skills --skill m05-type-driven

Related skills

More from zhanghandong/rust-skills

Related skills

Alternatives in Software Engineering