MCPInstall
awslabs avatar

cdisc-compliance

Reason about CDISC SDTM and ADaM implementation for regulatory submissions. Use when the user asks about SDTM domain mapping, ADaM dataset design, controlled terminology versioning, define.xml completeness, FDA or PMDA submission requirements, query prioritization by clinical impact, SUPPQUAL usage, or CDISC compliance review. Triggers include "SDTM mapping", "ADaM dataset", "CDISC compliance", "controlled terminology", "define.xml", "FDA submission data", "PMDA submission", "SDTM domain", "ADSL", "ADAE", "ADLB", "BDS structure", "SUPPQUAL", "RELREC", "value-level metadata", "CDISC CT", "regulatory submission data standards", "eCTD datasets", "SDTM 3.3", "ADaM 1.1", "query prioritization", "clinical data review".

Installs
84
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/awslabs/hcls-agent-skills --skill cdisc-compliance
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads cdisc-compliance automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

CDISC Compliance — Reasoning Skill

Overview

You are an expert in CDISC data standards for regulatory submissions. When the user asks about SDTM/ADaM implementation, controlled terminology, define.xml, or submission requirements, apply the decision frameworks below.

Usage

  • Invoke when evaluating CDISC SDTM or ADaM compliance for regulatory submissions
  • Use when planning define.xml content, SUPPQUAL decisions, or domain mapping
  • Activate for FDA/PMDA submission data standards questions or Pinnacle 21 triage

Core Concepts

Response Format

  • Lead with the direct recommendation or classification (≤3 sentences)
  • Structure as: recommendation → justification (citing specific criteria/thresholds) → caveats
  • Use tables for comparisons; bullet points for criteria lists
  • Omit background the user already knows — they asked the question
  • Target: 200-400 words unless the user requests exhaustive detail The decision trees and frameworks in this skill are for internal reasoning only. Apply them to reach your conclusion, but do not reproduce them in your response. Present only the final recommendation with supporting evidence.

1. Tricky Domain Mapping Decision Tree

These are the non-obvious mappings where teams make mistakes:

Oncology tumor data?
├─ Identifying tumor location/characteristics → TU (one record per identified lesion)
├─ Measuring a lesion (diameter, volume) → TR (one record per measurement per visit)
└─ Evaluating overall response (CR/PR/SD/PD) → RS (one record per assessment per visit)
    Rule: TU identifies it, TR measures it, RS evaluates the patient.

Medication data?
├─ Is it the study drug or protocol-mandated therapy? → EX (Exposure)
├─ Is it a non-study medication taken during the study? → CM
└─ Ambiguous (e.g., rescue medication specified in protocol)?
   ├─ Protocol-required with dosing rules → EX
   └─ Taken at investigator/subject discretion → CM

Pre-existing condition that worsens on study?
├─ Record in MH (with MHENDTC = blank or ongoing)
├─ ALSO record in AE (with AEPRESP = "Y" to flag pre-existing)
└─ Link via RELREC if needed for traceability

Questionnaire / PRO / scale data?
├─ Uses a published validated instrument (e.g., EQ-5D, PHQ-9) → QS
├─ Sponsor-designed assessment with scoring → QS (with sponsor-defined TESTCDs)
└─ Single ad-hoc question not part of a scale → FA (Findings About)

2. SUPPQUAL Anti-Pattern Checklist

NEVER put in SUPPQUAL (move to parent domain or use standard variable):

  • Timing variables (--STDTC, --ENDTC, --DUR, --VISITNUM)
  • Result qualifiers (--LOC, --LAT, --DIR, --METHOD)
  • Standard identifiers (--GRPID, --REFID, --SPID)
  • Any variable defined in the current SDTM IG for that domain

ALWAYS appropriate for SUPPQUAL:

  • Free-text verbatim fields not fitting standard variables
  • Site-specific or country-specific collected fields
  • Non-standard data collected on CRF with no IG slot
  • Sponsor-defined flags needed for analysis traceability

Red flags indicating domain redesign needed:

  • >5 SUPPQUAL records per subject per domain → consider a custom domain or FA
  • SUPPQUAL variable used in derivations → promote to parent domain
  • Same QNAM across >80% of subjects → this is a standard variable in disguise

SUPPQUAL rules:

  • QNAM ≤8 characters, unique within parent domain
  • QLABEL ≤40 characters
  • QORIG: CRF | DERIVED | ASSIGNED | PROTOCOL

3. SDTM Version Requirements

AgencyMinimum SDTMMinimum IGNotes
FDA3.33.3Required for NDA/BLA since 2017
PMDA3.23.2Accepts 3.3; 3.4 encouraged
EMA3.23.2Not yet mandatory but recommended
Health Canada3.33.3Aligned with FDA

4. ADaM Rules (Non-Obvious)

  1. Traceability is mandatory. Every derived variable must trace to SDTM via SRCDOM/SRCVAR/SRCSEQ.
  2. DTYPE flags derived records. Imputed/derived records (LOCF, WOCF) require DTYPE.
  3. AVAL and BASE must share units. CHG = AVAL − BASE is meaningless otherwise.
  4. Value-level metadata required for BDS where variable attributes differ by PARAMCD — define.xml must include where clauses for each parameter.
  5. Computational methods required for every derived variable in define.xml.

5. define.xml Value-Level Metadata

For BDS datasets, define.xml must specify per-PARAMCD:

  • Origin (CRF vs Derived) — may differ by parameter
  • Data type and length — AVAL is always numeric, but AVALC length varies
  • Codelist reference — only for parameters with categorical AVALC
  • Computational method — derivation algorithm specific to that PARAMCD
  • Where clause — the condition identifying which records the metadata applies to

Missing value-level metadata is a P21 Error for any BDS dataset with >1 PARAMCD.

6. Query Prioritization by Clinical Impact

PriorityData CategoryExamplesResolution SLA
P1 — CriticalSafety dataSAE dates, AE causality, death records24–48 hours
P2 — HighEfficacy endpointsPrimary/secondary endpoint values, visit dates3–5 business days
P3 — MediumKey demographicsRandomization data, stratification factors5–7 business days
P4 — LowAdministrativeInformed consent dates, site identifiers10 business days

Escalation rules:

  • Queries affecting multiple subjects → escalate one priority level
  • Systematic errors (wrong unit for all subjects at a site) → P1 regardless of data type
  • Safety queries block database lock — resolve before anything else

7. FDA vs PMDA Submission Differences

AspectFDAPMDA
SDTM requiredYes (NDA/BLA)Yes (since 2020 for new drugs)
ADaM requiredYesRecommended, not mandatory
define.xml2.0+ required2.0+ required
CT version policyLatest at time of submissionPin at study start
Dataset size limit5 GB per dataset (eCTD)No explicit limit
Blanking rulesPermissible nullPrefer explicit "NOT DONE"
Reviewer's GuideRequired (cSDRG, aSDRG)Required

Key gotcha: FDA accepts null for "not done" assessments; PMDA expects --STAT = "NOT DONE" with --REASND populated. Plan for PMDA requirements upfront if dual submission.

When NOT to Use This Skill

  • Pre-clinical or discovery-phase data not destined for regulatory submission — CDISC standards add overhead without value
  • Non-regulatory submissions (e.g., internal research databases, publications) — use domain-appropriate formats instead
  • eCTD module assembly or submission gateway mechanics — this skill covers data standards, not submission logistics

When to Escalate to Human Expert

  • Ambiguous domain mapping where the variable could legitimately belong to two SDTM domains — requires sponsor standards team decision
  • Novel endpoint types not covered by existing CDISC controlled terminology — requires CDISC SHARE consultation or sponsor extension request
  • Regulatory agency feedback contradicts CDISC Implementation Guide — requires regulatory affairs interpretation

8. Common Compliance Mistakes (Severity-Ranked)

  1. Wrong: Submitting a dataset without USUBJID Right: Include USUBJID as a required variable in every SDTM and ADaM dataset Why: Missing USUBJID breaks all cross-dataset joins — Critical severity

  2. Wrong: Creating DM domain without populating RFSTDTC Right: Always populate RFSTDTC (reference start date) in DM from the first dose or randomization date Why: All study day (--DY) calculations depend on RFSTDTC — Critical severity

  3. Wrong: Building ADSL without TRT01A/TRT01P variables Right: Always include TRT01A (actual treatment) and TRT01P (planned treatment) in ADSL Why: No treatment assignment means no analysis population can be defined — Critical severity

  4. Wrong: Creating a non-standard (custom) domain without documenting it in define.xml and the Reviewer's Guide Right: Document all non-standard domains with full metadata in define.xml and explain rationale in cSDRG Why: Reviewers cannot interpret undocumented domains, causing review delays — High severity

  5. Wrong: Placing standard SDTM variables (timing, result qualifiers, identifiers) in SUPPQUAL Right: Use the parent domain's standard variables (--STDTC, --LOC, --METHOD, --GRPID, etc.) as defined in the IG Why: Triggers P21 Error and signals poor domain mapping knowledge — High severity

  6. Wrong: Omitting value-level metadata for BDS datasets with multiple PARAMCDs Right: Include where-clause-based value-level metadata in define.xml for every PARAMCD in BDS datasets Why: Missing value-level metadata is a P21 Error; define.xml is incomplete without it — High severity

  7. Wrong: Using codelist values not present in the pinned controlled terminology version Right: Pin one CT version at study start and use only values from that version (or document sponsor extensions for extensible codelists) Why: Triggers P21 Warning CT2003 and may delay regulatory review — Medium severity

  8. Wrong: Recording dates with inconsistent precision across records (mixing full dates with partial dates without clear rules) Right: Define date precision rules in the SAP and apply consistent imputation logic documented in define.xml Why: Inconsistent precision complicates imputation and introduces errors in study day calculations — Medium severity

9. Date Handling Gotchas

Study Day Calculation

--DY = date − RFSTDTC + 1  (if date ≥ RFSTDTC)
--DY = date − RFSTDTC      (if date < RFSTDTC)

There is no Day 0. Day −1 is the day before RFSTDTC; Day 1 is RFSTDTC itself. This off-by-one is the #1 date calculation error in submissions.

Date Imputation Rules for ADaM

ScenarioImputation RuleDTYPE Flag
Missing day, AE startImpute to 1st of monthSet ASTDT, document imputation
Missing month and dayImpute to January 1stDocument in define.xml
Missing end date, ongoing AEUse data cutoff dateFlag as ongoing (AENDY missing)
Partial date comparisonConservative: earliest for start, latest for endDocument algorithm

Rule: Every imputed date requires a corresponding imputation flag variable (e.g., ASTDTF, AENDTF) with values Y (imputed) or blank (not imputed).

10. Pinnacle 21 Triage Decision Tree

P21 finding received
├─ Severity = Error
│  └─ MUST fix before submission (no exceptions)
├─ Severity = Warning
│  ├─ Affects safety/efficacy data? → Fix
│  ├─ Cosmetic or structural only? → Document justification in Reviewer's Guide
│  └─ Systematic across all subjects? → Fix (reviewer will notice)
└─ Severity = Notice
   ├─ Easy fix (<1 hour)? → Fix
   └─ Complex or low-impact? → Skip, document if asked

Top P21 Rules by Fix Priority

Rule IDDescriptionSeverityAction
SD0009USUBJID not consistent with DMErrorFix immediately — breaks traceability
SD0083Missing required variableErrorFix — submission will be rejected
SD1001Invalid date/time formatErrorFix — ISO 8601 non-negotiable
CT2001CT mismatch (value not in codelist)WarningFix if non-extensible codelist; document if sponsor extension
CT2003CT version inconsistencyWarningUsually fix — indicates mixed CT versions
SD1020Value not found in external codelistWarningFix if standard term exists; extend if legitimate
AD0252ADSL missing required variablesErrorFix — ADSL completeness is critical
AD0322BDS record without PARAMCDErrorFix — BDS is unusable without PARAMCD
SD0070Duplicate recordsWarningInvestigate — may be valid (e.g., bilateral findings)
SD1015Inconsistent values across datasetsWarningFix if traceability broken; document if by design

11. Controlled Terminology Rules

RuleDescription
Pin CT version at study startOne CT version for entire study
Document in define.xmlSpecify package version (e.g., 2024-03-29)
Never mix versionsMixing CT within a study → P21 Warning CT2003
Non-extensible codelistsUse ONLY CDISC-defined values (e.g., SEX, AEOUT)
Extensible codelistsSponsor values allowed but must be documented
Map legacy terms on upgradeCreate mapping table; never silently change coded values

FAQ

What does the cdisc-compliance skill do?

Reason about CDISC SDTM and ADaM implementation for regulatory submissions. Use when the user asks about SDTM domain mapping, ADaM dataset design, controlled terminology versioning, define.xml completeness, FDA or PMDA submission requirements, query prioritization by clinical impact, SUPPQUAL usage, or CDISC compliance review. Triggers include "SDTM mapping", "ADaM dataset", "CDISC compliance", "controlled terminology", "define.xml", "FDA submission data", "PMDA submission", "SDTM domain", "ADSL", "ADAE", "ADLB", "BDS structure", "SUPPQUAL", "RELREC", "value-level metadata", "CDISC CT", "regulatory submission data standards", "eCTD datasets", "SDTM 3.3", "ADaM 1.1", "query prioritization", "clinical data review".

How do I install cdisc-compliance?

Run npx skills add https://github.com/awslabs/hcls-agent-skills --skill cdisc-compliance in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/cdisc-compliance/ (personal) or .claude/skills/cdisc-compliance/ (project).

Which AI agents can use cdisc-compliance?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is cdisc-compliance safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains cdisc-compliance?

It is published by awslabs in awslabs/hcls-agent-skills. It has 84 recorded installs.

More from awslabs/hcls-agent-skills

View all →
awslabs avatar

ml-researcher

awslabs/hcls-agent-skills

Reason about ML experiment design for healthcare and life sciences data. Use when the user asks to design an ML study, choose a model for clinical/biomedical data, set up cross-validation, pick evaluation metrics, audit fairness, plan a regulatory submission, or critique an ML pipeline on EHR, medical imaging, genomics, molecules, or clinical text. Triggers include "design an ML experiment", "which model for this clinical data", "how should I split", "nested CV", "class imbalance", "AUROC vs AUPRC", "calibration", "decision curve", "net benefit", "TRIPOD+AI", "PROBAST", "CLAIM", "FDA SaMD", "PCCP", "GMLP", "site generalization", "temporal leakage", "scaffold split", "foundation model evaluation", "subgroup fairness", "is this model ready for deployment".

AI & Agents92 installs
awslabs avatar

clinical-data-standards

awslabs/hcls-agent-skills

Reason about clinical data terminology standards — MedDRA hierarchy (LLT→PT→HLT→HLGT→SOC), ICD-10 code structure and grouping, SNOMED CT concept model, LOINC panel relationships, and mapping decisions between systems. Use when the user asks to code adverse events, map diagnoses to ICD-10, choose a coding granularity level, group AEs by SOC or PT, interpret SNOMED CT relationships, select LOINC codes for lab panels, convert between terminology systems, or decide when to aggregate at HLT vs PT level. Triggers include "MedDRA coding", "ICD-10 grouping", "SNOMED CT", "LOINC panel", "adverse event coding", "terminology mapping", "SOC table", "preferred term", "code hierarchy", "clinical coding", "AE frequency table", "diagnosis grouping", "lab code selection", "cross-walk between terminologies".

AI & Agents91 installs
awslabs avatar

dicom-processing

awslabs/hcls-agent-skills

DICOM and NIfTI medical image processing pipeline. Triggers on DICOM, NIfTI, dcm2niix, de-identification, pydicom, DICOM header, conversion, anonymization, BIDS, DICOM tags, medical image format conversion, "DICOM to NIfTI", "burned-in PHI", "SeriesInstanceUID", "nibabel", "DICOM anonymization".

Marketing & SEO90 installs
awslabs avatar

radiology-preprocessing

awslabs/hcls-agent-skills

Structural MRI/CT preprocessing pipeline for radiology workflows covering skull stripping, bias field correction, registration, and intensity normalization. Triggers on skull stripping, bias correction, registration, ANTs, FSL, HD-BET, N4, brain extraction, normalization, FLIRT, FNIRT, SyN, fslreorient2std, MNI registration, T1 preprocessing.

AI & Agents89 installs
awslabs avatar

medical-device-software-compliance

awslabs/hcls-agent-skills

Reason about SaMD (Software as a Medical Device) regulatory compliance for FDA, EU MDR, and global submissions. Use when the user asks about IEC 62304 safety classification, ISO 14971 risk management, 21 CFR 820/QMSR quality system requirements, Design History File structure, 510(k)/De Novo/PMA pathway selection, SOUP/OTS assessment, verification and validation planning, cybersecurity for medical devices, PCCP for AI/ML devices, design reviews, traceability matrices, or post-market surveillance. Triggers include "SaMD", "medical device software", "IEC 62304", "ISO 14971", "ISO 13485", "21 CFR 820", "QMSR", "510(k)", "De Novo", "PMA", "design history file", "DHF", "software safety classification", "SOUP list", "risk management", "hazard analysis", "design review", "V&V protocol", "FDA submission", "EU MDR", "clinical evaluation", "PCCP", "predetermined change control", "GMLP", "cybersecurity premarket", "Part 11", "design controls", "design inputs", "design outputs", "traceability matri

awslabs avatar

ehr-data-parsing

awslabs/hcls-agent-skills

Parse and extract clinical data from HL7v2 messages and FHIR R4 resources using Python. Use when the user mentions HL7v2, HL7, FHIR, PID segment, OBX segment, MSH segment, Patient resource, Observation resource, Condition resource, MedicationRequest, EHR data extraction, clinical message parsing, FHIR bundle, HL7 to FHIR conversion, ADT message, ORU message, lab result extraction, or clinical data quality checks. Triggers include "parse HL7", "extract FHIR", "HL7v2 message", "FHIR resource", "PID segment", "OBX segment", "Patient resource", "Observation resource", "EHR parsing", "clinical data extraction", "HL7 to CSV", "FHIR to DataFrame".

Data & Databases88 installs

Popular security skills

View category →
microsoft avatar

azure-compliance

microsoft/azure-skills

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

OfficialSecurity755.8K installs
lllllllama avatar

minimal-run-and-audit

lllllllama/rigorpilot-skills

Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized reprooutputs/ files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.

Security503.3K installs
coreyhaines31 avatar

seo-audit

coreyhaines31/marketingskills

When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," "indexing issues," "stuck on page 2," "striking distance keywords," "title tag rewrite," "low CTR," "local SEO," "Google Business Profile," or "map pack." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema. For AI search optimization, see ai-seo.

Security262.5K installs
firebase avatar

firebase-security-rules-auditor

firebase/agent-skills

Audits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing/reviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.

OfficialSecurity152.2K installs
cloudflare avatar

security-audit

cloudflare/security-audit-skill

Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

Security121.1K installs
coreyhaines31 avatar

competitors

coreyhaines31/marketingskills

When the user wants to create competitor comparison or alternative pages for SEO and buyer-facing use. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'competitor teardown,' 'audit our competitor pages,' 'are our comparison pages out of date,' or 'competitive asset audit.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For auditing existing claims (not researching competitors from scratch, which is competitor-profiling; not technical SEO on these pages, which is seo-audit), use the asset audit here. For internal battle cards and sales-specific competitor docs, see sales-enablement.

Security93.6K installs