alterlab-redcap-cdisc — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited alterlab-redcap-cdisc (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Designs validated electronic data capture (EDC) instruments in REDCap and aligns a study's variables to CDISC submission standards. It owns two jobs that overlap with sibling skills only at the edges:
REDCap data dictionary (the importable 18-column CSV), with correct field types, validation, branching logic, longitudinal events, and survey settings.
SDTM (tabulation) domains, and tie coded values to CDISC Controlled Terminology (NCI-EVS), so the data is submission- and reuse-ready.
This is design + standards work, not a live-API connector. Producing the CSV and the mapping is in scope; importing it into a running REDCap server is the instance owner's job (REDCap's own API/UI).
Build me a REDCap data dictionary for a 3-arm RCT screening + follow-up.
Add branching logic so the pregnancy question only shows when sex = female.
Lint this data_dictionary.csv before I import it.
Map my CRF variables to CDISC SDTM domains and CDASH fields.
Which SDTM domain and controlled-terminology codelist does "adverse event" go in?→ Draft or read the dictionary, run scripts/lint_data_dictionary.py to catch structural errors, then (for CDISC) produce a variable → CDASH → SDTM mapping table. Always state which facts are design conventions vs. instance-specific.
Use it when the request is about building the instrument or making it standards-compliant:
| The request is really about… | Route to |
|---|---|
| Bridging an ELN to REDCap; reading/writing LabArchives notebook entries or attachments via its REST API | alterlab-labarchive |
| Psychometrics — Likert scale construction, response-bias mitigation, sampling strategy, pilot testing, reliability/validity (Cronbach's α, factor analysis) | alterlab-survey-design |
| Picking or running the statistical test, assumptions, power/sample size, APA results | alterlab-statistical-analysis |
| KVKK / Turkish data-protection plan, anonymization, VERBIS, açık rıza | alterlab-kvkk-dmp |
| IRB / ethics application, informed consent, GDPR/HIPAA, human-subjects protocol | alterlab-research-ethics (or alterlab-tr-research-ethics for Turkish etik kurul) |
| Finding registered trials by condition/NCT ID on ClinicalTrials.gov | alterlab-clinicaltrials |
| ISO 13485 medical-device QMS documentation | alterlab-iso13485 |
Routing rule of thumb: survey-design owns the questions and their measurement properties; this skill owns the database that captures them and its standards mapping. If the user asks for both (e.g. "design a validated depression scale and the REDCap form for it"), do the scale work under alterlab-survey-design and the dictionary/mapping here.
REDCap projects are defined by a data dictionary — a CSV with 18 columns in a fixed order. Authoring or repairing this CSV is the core deliverable.
| # | Column header | Purpose | |
|---|---|---|---|
| 1 | Variable / Field Name | Lowercase machine name (export/analysis). | |
| 2 | Form Name | Instrument the field belongs to. | |
| 3 | Section Header | Visual section break above the field. | |
| 4 | Field Type | One of the values below. | |
| 5 | Field Label | Human-readable prompt shown on the form. | |
| 6 | Choices, Calculations, OR Slider Labels | `1, Yes \ | 0, No for choice fields; the equation for calc`. |
| 7 | Field Note | Helper text under the field. | |
| 8 | Text Validation Type OR Show Slider Number | Validation for text; slider display. | |
| 9 | Text Validation Min | Lower bound (integer/number/date). | |
| 10 | Text Validation Max | Upper bound. | |
| 11 | Identifier? | y marks PII/PHI (drives de-identified exports). | |
| 12 | Branching Logic (Show field only if...) | Show-field condition. | |
| 13 | Required Field? | y / blank. | |
| 14 | Custom Alignment | Layout. | |
| 15 | Question Number (surveys only) | Survey numbering. | |
| 16 | Matrix Group Name | Groups matrix fields. | |
| 17 | Matrix Ranking? | Matrix ranking flag. | |
| 18 | Field Annotation | Action tags / annotations (e.g. @HIDDEN). |
Field Type values: text, notes, dropdown, radio, checkbox, calc, sql, descriptive, slider, yesno, truefalse, file.
Text Validation Type values: date_ymd, date_mdy, datetime_ymd, time, integer, number, email, phone, zipcode.
Deeper field-by-field rules, the choice-string grammar, branching-logic operators, longitudinal/repeating-instrument design, and a worked dictionary are in [references/redcap_design.md](references/redcap_design.md).
uv run python skills/faculty-life/alterlab-redcap-cdisc/scripts/lint_data_dictionary.py \
path/to/data_dictionary.csvThe linter is stdlib-only (no network, no REDCap account). It checks the 18-column header, field-name syntax, field-type/validation legality, that choice fields carry a choices string, that calc/branching fields reference variables that exist, duplicate variable names, and PII fields left unflagged as Identifier?. It exits non-zero and emits a JSON report when issues are found. It is a structural linter — it does not validate against a live REDCap server, so always tell the user a clean lint still needs a test import.
CDISC defines complementary standards across the data lifecycle. Map a study so its collected data is regulator- and reuse-ready.
| Standard | Role | What you produce |
|---|---|---|
| CDASH | Collection — standard fields to collect on CRFs; traces into SDTM. | The CRF/REDCap fields named to CDASH conventions. |
| SDTM | Tabulation — organizes submitted data into domains. | A variable → domain mapping. |
| Controlled Terminology | Codelists of valid values (NCI-EVS). | Coded values tied to the right codelist. |
SDTM observation classes: Interventions, Events, Findings, and Findings About. Common domains and their two-letter codes: DM Demographics, AE Adverse Events, VS Vital Signs, LB Laboratory, EX Exposure, CM Concomitant Medications, MH Medical History.
Controlled Terminology is maintained with NCI's Enterprise Vocabulary Services (NCI-EVS) and updated quarterly; do not invent codelist values — cite the codelist and tell the user to pull the current quarterly release.
Versions are real but move — the skill records the latest it verified (SDTM v2.1, 2024-06-10; SDTMIG v3.4, 2021-11-29; CDASHIG v2.3, 2023-09-28, referencing CDASH Model v1.3). Confirm the current version with the user / cdisc.org before asserting one in a deliverable, because these are re-released. The mapping recipe, the CDASH↔SDTM traceability idea, and the worked AE/VS examples are in [references/cdisc_mapping.md](references/cdisc_mapping.md).
arms), the variables, value sets, PII fields, and whether it is a survey. If the measurement properties of the questions matter, hand the questionnaire design to alterlab-survey-design first.
types, choices, validation, Identifier? for every PII field, branching logic, and (longitudinal) the event/arm plan separately.
scripts/lint_data_dictionary.py; fix every error before theuser imports.
CDASH → SDTM table, flag value sets needing Controlled Terminology, and name the codelists — never fabricate codelist members.
that the lint is structural (a test import is still required), and that CDISC versions must be confirmed against the current release.
field type one of the legal values?
Identifier? = y?actually exist in the dictionary?
needs a real test import?
values, and flag that versions must be confirmed against the current release?
alterlab-survey-design and ELN bridging toalterlab-labarchive instead of doing them here?
field reference, choice-string grammar, branching-logic operators, validation types, longitudinal/repeating-instrument design, and a worked dictionary.
pipeline, SDTM observation classes and domains, controlled-terminology sourcing, and worked AE/VS/DM mappings, with verified versions and sources.
Part of the AlterLab Academic Skills suite.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.