SKILL.md
Validate CDISC Domain
Run comprehensive CDISC validation on the specified domain.
Usage
/validate-domain <domain-code> (e.g., /validate-domain DM)
Workflow
- Identify the domain in the codebase (check tss-submit/src/validate/)
- Understand the validation checks for this domain type
- Run the test suite:
cargo test --package tss-submit validate - Analyze any validation failures in CDISC context
- Report findings with severity levels (Error/Warning/Informational)
Key Files
crates/tss-submit/src/validate/mod.rs- Validation entry pointscrates/tss-submit/src/validate/ct.rs- Controlled Terminology validationcrates/tss-submit/src/validate/cross_domain.rs- Cross-domain checkscrates/tss-standards/src/ct/- CT registry
Validation Categories
- CT: Controlled Terminology compliance
- Required/Expected: SDTM variable requirements
- Data Types: Numeric/string compliance
- ISO 8601: Date/datetime formats
- Sequence: Uniqueness per USUBJID
- Text Length: Character limits per spec
- Identifiers: Primary key null checks
- Cross-Domain: USUBJID consistency, RDOMAIN references