In short.
Define-variables is an AI assistant skill for research teams preparing observational-study protocols, but its definitions depend on complete codebooks and careful literature verification. Its four-tier procedure connects database meanings, published criteria and implementation rules in one table. The supplied files establish a detailed procedure and reusable template; accuracy, installation and downstream integration remain unassessed. A template exception for continuous variables also conflicts with the main dictionary requirements.
Researched and written by an AI model and checked by a second AI model. How it works
The supplied scope is complete for skills/define-variables: SKILL.md, skill.yml, references/common_definitions.md and templates/variable_operationalization.md, all at commit e0ea3b0be3bf529aa0b94ee5fd8450e78848932c. The root LICENSE and THIRD-PARTY-NOTICES.md provide related rights information. Other repository skills, third-party materials in other folders, original clinical publications and host installation files are outside this scope. Nothing was executed; installation, citation verification, clinical correctness, downstream interoperability and real-study outcomes remain unassessed.
The overview
Identity
Define-variables is an instruction-based skill in Aperivue's medsci-skills repository. Its purpose is variable operationalization: turning concepts such as an exposure or outcome into precise, documented rules that a dataset can support. The original folder is [https://github.com/Aperivue/medsci-skills/tree/main/skills/define-variables].
The folder contains SKILL.md, machine-readable metadata, a medical definitions index and a Markdown output template. Its metadata identifies variable operationalization as its domain and labels its maturity as official; that label is author-supplied.
Assessment
The strongest feature is traceability. Each proposed definition is meant to connect a published source with the actual meaning of database fields, making assumptions about coded values visible before protocol writing.
The skill is a useful structure for supervised research preparation. Its metadata describes manual comparison against dictionaries and sources, with no standalone demo. The supplied material does not establish how reliably an assistant follows the instructions or whether the process reduces research errors.
Who it is for
The clearest audience is clinician-researchers, epidemiologists and data analysts working with health-screening cohorts, claims, registries or similar observational databases.
Beginners receive a fixed structure for documenting definitions. Experienced users receive fields for exact column names, units, subgroup-specific criteria, source locations and SQL- or pandas-style pseudocode. Both groups need access to someone who can resolve undocumented database codes and review clinical definitions.
What it provides
The intended output documents exposures, outcomes, covariates and eligibility criteria. Table fields include dictionary locations and verbatim meanings, canonical sources, definitions, cutoffs, database columns, implementation logic and flags for unsupported or locally chosen definitions.
The bundled index covers several medical domains, including liver, metabolic, kidney, pulmonary and cardiovascular research. The template also records mapping gaps, proposed proxies, justifications and references. The instructions address structural zeros, such as distinguishing a never-smoker's zero pack-years from a genuinely missing measurement.
Using it
Requirements
Expected inputs are a research question, candidate variables, cohort type and an XLSX, CSV or Markdown data dictionary, or an explicit list of available columns. When a dictionary exists, the main instructions require recording its meanings before interpreting database values. Undocumented codes require clarification from the database owner or data steward.
Following the procedure requires an assistant able to read project files and write the output artifact. Targeted searching and final reference verification depend on the separately named search-lit and verify-refs skills and access to publication services such as PubMed or CrossRef. Those companion skills are outside this folder.
How it works
Tier 0 records exact codebook meanings and source locations. Tier 1 consults the bundled definitions index, recording the guideline, year, cutoff and citation key. Only that index lookup is explicitly described as requiring no API calls.
Tier 2 requests focused literature searches for missing definitions or subgroup questions. It prescribes one query per variable, stopping after one or two convergent papers, and asks for confirmation before continuing when more than five variables need searching. Tier 3 requires source verification and reference checks. Definitions without canonical support must be flagged, justified and approved before downstream use.
Setup
Keep SKILL.md with references/common_definitions.md and templates/variable_operationalization.md so its relative file references remain usable. The instructions recognize a dictionary path supplied directly or through project.yaml's db.dictionary_path field.
The skill is positioned after study design and literature discovery, before protocol writing. Its default output is variable_operationalization.md in the project root. The supplied folder gives no host-specific installation commands, supported-model list or runtime versions, so installation compatibility is unknown.
Example use
For a study using smoking status and pack-years, the procedure would first record the dictionary's exact smoking-status codes and their locations. The table would then document the published definition, available columns and implementation rule.
The skill's example requires explicitly representing never-smokers' pack-years as a structural zero while preserving genuinely missing measurements. Actual column names, codes and references would have to come from the study's own material. This is an illustrative walkthrough; no dataset was processed and no result was executed.
Assessment & evidence
Limitations
There is a material documentation inconsistency. SKILL.md requires verbatim dictionary information, including units or ranges for continuous variables, while the template permits BMI or blood pressure fields to be marked as not applicable because they are continuous. Users need to resolve this exception before treating dictionary coverage as complete.
Many index references are citation-key stubs, and the template includes one example bibliography entry rather than a complete bibliography. Checking that a citation exists would still leave its interpretation, subgroup applicability and chosen cutoff to be reviewed. The folder supplies no automated enforcement or measured accuracy results.
Why the approach can help
The design connects two distinct questions: what a database value means, and which published definition the study intends to use. Recording both beside the implementation rule could help reviewers identify mismatches and reproduce decisions.
Its instructions also address definition changes across guideline eras, subgroup-specific thresholds and missing database equivalents. These are plausible benefits of the structure; the supplied files provide no comparative evidence that the approach improves study outcomes.
Alternatives
A researcher and data steward could complete the supplied table manually, consulting the same dictionaries and original guidelines. This retains the documentation structure without requiring an assistant host; comparative speed and accuracy are unknown.
For narrower tasks, the instructions point to search-lit for finding papers and write-protocol or write-paper for drafting prose. They assign cleaning, statistical analysis and sample-size work to other skills. Those companion resources were not assessed.
Available evidence
The available material includes the complete four-file skill folder: its instructions, metadata, definitions index and output template. These support conclusions about the intended procedure, inputs, outputs and documentation gaps.
No completed study output, execution results or performance measurements are supplied. The original clinical publications cited by the index are also absent, so their summaries and current applicability have not been independently established.
Access & freshness
Costs
The MIT licence permits use of the covered documentation without a licence fee. Total operating cost is unknown: no assistant subscription price, model usage charge, publication-service price, time estimate or measured cost is supplied.
Index matches can avoid literature-search calls for those definitions. Other variables still require searching, citation verification and human review, whose costs depend on the chosen services and research team.
Rights and redistribution
The root MIT licence permits use, modification and redistribution of software and associated documentation, including commercial use, provided the copyright and permission notice are retained. It supplies the material without warranty.
The third-party notice lists separate terms for reporting checklists, official templates and citation styles elsewhere in the repository, including noncommercial and share-alike restrictions. It identifies no exception for the selected define-variables folder. Citations to medical publications do not establish permission to redistribute those publications.
Version and freshness
The supplied snapshot was captured on 16 November 2026 at commit e0ea3b0be3bf529aa0b94ee5fd8450e78848932c. That specific folder is available at [https://github.com/Aperivue/medsci-skills/tree/e0ea3b0be3bf529aa0b94ee5fd8450e78848932c/skills/define-variables]. Later repository changes are unknown.
The definitions index calls for annual review or updates after major guideline revisions. It includes dated sources and several competing or legacy definitions, but supplies no completed review date. The currency of each clinical entry at capture time is therefore unknown.
Before using it
Resolve the continuous-variable dictionary exception, confirm the dictionary's version and complete each variable's source mapping. Have the data steward clarify unknown codes before those fields enter an analysis rule.
Check each original guideline's version and applicability, complete the bibliography and verify references. Document mapping gaps and obtain study-team agreement on unsupported definitions or proxies before carrying the table into protocol writing or statistical analysis.
