Individual skill
rust-domain-boundaries
Use when modeling, validating, refactoring, or reviewing Rust service domain boundaries, especially when replacing primitive String fields with newtypes, parse-don't-validate constructors, private invariants, TryFrom/FromStr parsers, request DTO boundaries, or property tests.
plugins/LVTD-LLC/skills/skills/rust-domain-boundaries/SKILL.md
Source commit d780783eba4ecc7c8b9429f95c9362df95f07c61
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,532
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-coding Repository topic
- awesome Repository topic
- awesome-list Repository topic
- codex Repository topic
- codex-plugins Repository topic
- openai Repository topic
- codex-skill Repository topic
- codex-skills Repository topic
- marketplace Repository topic
- codex-marketplace Repository topic
- rust,domain-modeling,newtypes,validation,property-testing Declared skill tag
- testing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 3,883 bytesagents/openai.yamlasset · 211 bytesreferences/newtype-patterns.mddoc · 2,931 bytesreferences/property-testing.mddoc · 2,080 bytes
Read excerpt
# Rust Domain Boundaries
Use this skill to keep invalid states out of Rust service internals. Parse raw
input once at the boundary, store validated values in narrow domain types, and
make unchecked construction difficult.
## Core Workflow
1. Find raw input boundaries: HTTP payloads, path/query parameters, config
files, environment variables, database rows, queues, and CLI flags.
2. Separate transport DTOs from domain types. Let `serde` deserialize incoming
shapes, then convert DTO fields into validated domain values.
3. Replace primitive strings with small types for ruled values: email addresses,
usernames, passwords, subscriber names, slugs, tenant IDs, idempotency keys,